Skip to content
Search

Fate

lastmod 2025-12-26created 2025-12-261 edits

A modern data client for React and tRPC

About

  • A tool that applies Relay and GraphQL concepts to tRPC, simplifying data fetching and state management in React applications into a declarative, predictable form
  • Through View Composition, each component declares the data it needs, and requests are merged into one per screen to minimize network calls
  • Maintains a Normalized Cache to prevent data duplication and inconsistency, and supports action- and mutation-based updates
  • Data Masking automatically blocks fields that were not requested, reducing coupling between components and preventing over-fetching
  • Uses Async React features (Suspense, Actions, use) for concurrent rendering and natural loading handling
  • Built-in list management for cursor-based pagination and infinite scrolling
  • Optimistic Update refreshes the UI immediately before the server responds, and rolls back the cache on failure
  • AI-Ready design provides explicit data selection and a predictable API, which favors type-safe code generation
  • View-centric design: each component declares the fields it needs, and data is collected in a single request at the top of the tree
    • Simplifies GraphQL's Fragment concept into plain JavaScript objects
  • The server side runs on tRPC + Prisma
  • Future plans: Drizzle support, offline cache, real-time updates (useLiveView), improved code generation, garbage collection, and more

See also

Favorite site

author Zer0 sitemap