Skip to content

The advanced data fetching tool for web applications

Notifications You must be signed in to change notification settings

belukha/farfetched

 
 

Repository files navigation

Farfetched

The advanced data fetching tool for web applications

minified and gzipped size badge

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.2%
  • JavaScript 4.4%
  • Other 0.4%