Bicycle

Bicycle

  • Docs
  • Blog

Project LogoA data fetching and synchronisation library for JavaScript

Getting Started (JavaScript)
Getting Started (TypeScript)

Secure

Bicycle only expose data you explicitly include in your schema, and validates all requests.

Strongly Typed

Bicycle offers a TypeScript API that's genuinely strongly typed, from server to client.

Easy To Use

Bicycle figures out what changed for you, making mutating data a breeze

Automatic Mutations

There is no need to manually specify how your cache should be updated after a mutation. Bicycle tracks what data is on your client, so that it can simply re-run the query to find out waht changed.

Bring Your Own Database

Bicycle is not tied to any one database or storage system. In fact, you can use one Bicycle Schema to combine search results from elastic search, SQL queries from Postgres, images from Amazon S3, and anything else you can think of. Because of Bicycle's tree structure for querying data, you can do all this with only a single round trip from the client to the server, making Bicycle a great fit for mobile web apps.

Strongly Typed

Bicycle supports TypeScript all the way from defining your schema, to querying it on the client. When we say we support TypeScript, we don't just mean our API has a .d.ts definition file, we mean you can rely on TypeScript to know what type the data returned from query has, and what type the arguments to a mutation need to be.

Request What You Need

Bicycle lets you query exactly what you need, and even combine multiple partial queries. Because you can specify what data you require along with the components that require that data, it's easy to avoid fetching data you don't need. Using TypeScript, you can further improve the refactoring experience, by ensuring you get immediate type errors if you remove a field that a component depended on.

Who is Using This?

This project is used by all these people

Save WillpowerCanoe Slalom EntriesJepso
Bicycle
Docs
Getting StartedAPI Reference (JavaScript)
More
BlogGitHubStar
Copyright © 2020 ForbesLindesay