Skip to main content

Documentation Index

Fetch the complete documentation index at: https://kubo-47e69177.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Full CRUD Example

Repository path

workspace
examples/next-app/

What this example demonstrates

  • Contract-first actions with defineAction.
  • Client reads with useActionQuery.
  • Client writes with useActionMutation.
  • Error boundaries around client components.

Start locally

terminal
pnpm install
pnpm --filter @zapaction/example-next-app dev

Main files

  • examples/next-app/app/actions.ts
  • examples/next-app/app/providers.tsx
  • examples/next-app/components/todo-panel.tsx

Quick health checks

terminal
pnpm --filter @zapaction/example-next-app test
pnpm --filter @zapaction/example-next-app exec next lint