Learn / Quickstart

Quickstart

In a growing web app, state splinters across UI hooks, URL parameters, a server-query cache, a form library, and handlers for AI agent tools. Copying updates between them adds glue code and causes bugs when two copies disagree.

Foldkit is a TypeScript framework built on Effect that keeps all application state in one place. One typed Model holds your state, one union of Message events lists what can happen, and one pure update function computes the next Model. Foldkit Plus plugs server data, offline sync, forms, sign-in, permissions, AI agent tools, and UI widgets into that same Model and update, and embeds inside React apps when needed.

See it running in the live demos: a blog studio, an offline-capable data grid, and collaborative pages running in your browser.

Install

Run the setup command in your project folder to print the exact install command, version pins, and project setup steps for your package manager:

bash
npx --legacy-peer-deps foldkit-plus setup

Or install foldkit-plus alongside foldkit and effect directly:

bash
pnpm add foldkit-plus foldkit effect
# or with npm:
npm install foldkit-plus foldkit effect