The higher layer
for modern apps

Framework-agnostic TypeScript packages for the features every app needs. Type-safe, tested, zero lock-in.

Built for production

154GitHub Stars
3Open Issues
23Releases
4Packages

Built with

TypeScriptTypeScript
Standard Schema
tsdown

Packages

Everything you need, nothing you don't

Modular packages that work independently or together.Install only what you need.

Philosophy

Built for the
way you work

Developer tools should adapt to your stack — not the other way around.

Core + Adapters

Business logic is framework-agnostic. Adapters connect to your stack. Switch from Next.js to Remix without rewriting.

Type-safe by default

Full TypeScript coverage with Standard Schema. Validate at runtime with Zod, Valibot, or ArkType — your choice.

Tested extensively

Comprehensive test coverage ensures reliability. Not toy examples — real solutions built for production.

Developer experience

Clean APIs, complete workflows

Validate input and call your API with end-to-end typed data.

example.ts
import { createFetch } from "@zap-studio/fetch";
import { standardValidate } from "@zap-studio/validation";
import { checkoutInputSchema, paymentSchema } from "./schemas";

// Configure a reusable API client once
const { api } = createFetch({ baseURL: "/api" });

export async function checkout(input: unknown) {
  // 1) Validate input
  const payload = await standardValidate(checkoutInputSchema, input, {
    throwOnError: true,
  });

  // 2) Create payment with typed response
  return api.post("/payments", paymentSchema, {
    body: { accountId: payload.accountId, amount: payload.amount },
  });
}

Fully composable APIs

Ready to build faster?

Get started in minutes. Fully documented, fully typed, fully tested.

Open Source · Zero Lock-in · TypeScript Native

Standard Schema · Tree-shakeable · ESM First · JSR Compatible