Getting Started
Create a new fate app from a template, or install it in an existing React or Vue project. For an overview of the ideas behind fate, read Why fate?.
Template
Create a new fate app with Vite+:
vp create fateExplore the fate stack to see the tools included in your new project.
Choose a backend in the template selector: Void, tRPC with Drizzle or Prisma, GraphQL with Prisma, or a client for an existing GraphQL server. React is the default. Choose Vue in the selector or pass --framework vue.
If you want to build an app entirely with client state, choose Client Only or pass --template client-only. This template includes Void Pages Routing and a task list saved in IndexedDB. Try editing a task and reloading the page to see persistence in action. See Client State.
Manual Installation
For a React client, install react-fate. It requires React 19.2+:
npm add react-fatepnpm add react-fateyarn add react-fateFor a Vue client, install vue-fate:
npm add vue-fatepnpm add vue-fateyarn add vue-fateIf your server is a separate package, install @nkzw/fate there as a runtime dependency too. Install @nkzw/fate on the client only for a barebones integration without a framework adapter:
npm add @nkzw/fatepnpm add @nkzw/fateyarn add @nkzw/fate