Baton

Articles

Articles

The long version. One essay per choice, with the numbers, the alternatives, and what was refused.

  • Relay without the read sideBaton keeps Relay's compiler and the write side of its store, and drops the read side. Observation and snapshot state already know which view read which field.
  • What Meta built, and what you can downloadMeta's native apps run a GraphQL client you cannot download. What its engineers have said, where Baton agrees, and where Baton goes further.
  • Materialization is the billBaton is faster than Apollo on the same data because it skips three steps, not because the store is cleverer. The numbers, on a Mac and on a phone, with the caveats.
  • The first frame has the dataA warm cache that still shows a spinner is a design. Reads are synchronous, the image on disk feeds the first body, and a phone measured it.
  • Two runtimes, no bridgeThe compiler is Rust. The runtimes are Swift and Kotlin, written twice on purpose. A shared core would cost the read path this design exists for.
  • A compiler, not a configurationEvery operation is known at build time. The runtime has no parser and no policy object. That matters more now that agents write the screens.
  • How a fast store stays honestA fast store is a chain of clever steps, and every step can drop a value. The fixtures, Relay's own tests, and the benches that keep the answer equal to the server's.
  • Twelve words, and why the list is closedGraphQL clients die of configuration. Baton's vocabulary is twelve words and Relay's directives. What that refuses, and what it buys.
  • Baton beside fatefate takes Relay's insights and removes GraphQL. Baton takes them and keeps the compiler. Where they agree, where they part, and a proof against fate's own server.
  • The small lies a client tellsSix small ways a GraphQL client lies about data, and the mechanism that refuses each one.
  • Settled stays settledHow the library is built. Research first, a mechanism for each principle, a condition that reopens each decision, and a release when there is something to use.