Kizaki
ReferenceTypeScript

@kizaki/sdk

The server-side SDK provides query builders, mutations, transactions, and request-context helpers for application code.

Common Imports

import { getContext, getPrincipal, insert, query, select, update, del } from "@kizaki/sdk";
  • getPrincipal() for current-user context
  • query() for normal reads and writes
  • getContext() when you need direct client access or transactions

What This Package Is For

@kizaki/sdk is the server-side application surface. It is where you write the business logic that sits between the schema and the browser.

Example

const me = getPrincipal();
const rows = await query(select(Project).where(eq(Project.ownerId, me.id)));

Prefer this package inside server code and keep browser code on the generated client plus browser query surfaces.

Related guide: Write Server Functions

On this page