gormonn / farfetched

The advanced data fetching tool for web applications

Home Page:https://farfetched.pages.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Farfetched

The advanced data fetching tool for web applications

Quick Features

  • Transport/protocol/backend agnostic (REST, GraphQL, promises, whatever!)
  • Framework-agnostic (React, Solid, Vue, Svelte, Angular, whatever!)
  • Declarative — expresses the logic of a computation without describing its control flow
  • First class TypeScript support out of the box
  • Focused to improve both developer and user experiences

Documentation

Continue reading about Farfetched in the documentation. It covers integration with the most popular UI-frameworks (such React and Solid), error handling, dependent queries, advanced contracts and other great tools.

Maintains

Getting started

  • clone repo
  • install deps via pnpm install
  • make changes
  • make sure that your changes is passing checks:
    • run tests via pnpm test
    • run type tests via pnpm test:types
    • run linter via pnpm lint
    • try to build it via pnpm build
    • format code via pnpm format
  • fill in changes via pnpm changes
  • open a PR
  • enjoy 🎉

Release workflow

Releases of Farfetched are automated by changesets and GitHub Actions. Your only duty is creating changeset for every PR, it is controlled by Changes-action.

After merging PR to master-branch, Version-action will update special PR with the next release. To publish this release, just merge special PR and wait, Release-action will publish packages.

Repository management

New package creation

pnpm nx generate @nrwl/js:library --name=NAME --importPath @farfetched/NAME

Graph

Run this command to see a diagram of the dependencies of projects.

pnpm nx graph

Credits

Farfetched powered by Aviasales.

Special thanks to all contributors and especially Alexandr for endless patience during our debates about this library.

Some of external libraries were inlined to Farfetched due to bundle size and custom features requirements:

About

The advanced data fetching tool for web applications

https://farfetched.pages.dev

License:MIT License


Languages

Language:TypeScript 94.9%Language:JavaScript 4.8%Language:HTML 0.2%Language:CSS 0.1%