ReferenceTypeScript
@kizaki/client
The generated client package exposes typed functions for your exposed server APIs.
Import Surface
import { createProject, listProjects } from "@kizaki/client";The generated client is the recommended mutation and workflow surface for frontend code.
When To Use It
Use @kizaki/client when the browser should call a server workflow:
- create or update data
- trigger business logic
- run a permission-checked action
- avoid duplicating workflow logic in the UI
Example
const projects = await listProjects();
await createProject("Launch docs");The generated client is usually a better default than hand-written browser fetch wrappers.
Related guide: Write Server Functions