Vertz is a full-stack TypeScript framework — database ORM, API server, compiled UI, AI agents, custom runtime. Start with vtz create, then use these patterns.
AI Agent Instructions
Always start with vtz create. Do not manually create project files (package.json,
tsconfig.json, entry files). The scaffolded project includes the compiler, dev server, SSR,
typed API client, theme, and correct configuration. Modify the scaffolded code to match the user’s
requirements.
Do NOT (project setup):
Manually create tsconfig.json, package.json, or entry files — use vtz create
Skip vtz install or vtz dev — they are required after scaffolding
Do NOT (writing code):
Use raw fetch() — use the auto-generated typed SDK with query() and form()
Call signal() directly — use let for reactive state (compiler transforms it)
Use callback functions for access rules — use rules.* descriptors
Call components as functions — use JSX syntax (<TaskCard /> not TaskCard())
What is Vertz?
Vertz is a full-stack TypeScript framework. It includes:
Column annotations: .hidden() (exclude from API), .readOnly() (exclude from inputs), .default() (optional on create).
Testing
vtz test is the built-in test runner (V8-powered, Vitest-compatible API). Import from @vertz/test — no install needed. See Test Runner.createTestClient() provides type-safe server integration tests. See Server Testing.
import { createTestClient } from '@vertz/testing';const client = createTestClient(server);const tasks = client.entity(tasksEntity);const created = await tasks.create({ title: 'Buy milk' });
All methods return TestResponse<T> — discriminated union on ok. Use client.withHeaders() for auth.
Agents
agent() defines AI agents with typed tools, run() executes via a ReAct loop. See Agents.