Kizaki
ReferenceTypeScript

TypeScript Overview

Kizaki generates and exposes distinct TypeScript surfaces for schema types, client calls, server workflows, and browser reads.

Most apps use all of these together:

  • @kizaki/schema
  • @kizaki/client
  • @kizaki/sdk
  • @kizaki/sdk/browser
  • @kizaki/react
  • use @kizaki/schema anywhere you need typed entity objects
  • use @kizaki/client for browser-to-server workflows
  • use @kizaki/sdk inside server code
  • use @kizaki/sdk/browser and @kizaki/react in frontend code

Use the generated client for mutations and workflows, and use browser query objects for live reads.

A Simple Mental Model

If you are not sure which package to reach for:

  • “I am writing server logic.” Use @kizaki/sdk.
  • “I am writing browser UI that needs data.” Use @kizaki/sdk/browser and @kizaki/react.
  • “I need to call a server workflow from the browser.” Use @kizaki/client.
  • “I need a typed entity object.” Use @kizaki/schema.

That division keeps application code understandable as the app grows.

On this page