Vertz uses file conventions to detect what kind of app you’re building and how to run it. No configuration needed — just place files in the right locations.Documentation Index
Fetch the complete documentation index at: https://docs.vertz.dev/llms.txt
Use this file to discover all available pages before exploring further.
App type detection
When you runvertz dev, the CLI inspects your src/ directory and determines the app type:
| Files present | App type | What vertz dev does |
|---|---|---|
src/app.tsx only | UI-only | Dev server with SSR + HMR, no API |
src/server.ts only | API-only | API server with watch mode, no UI compilation |
src/app.tsx + src/server.ts | Full-stack | API server + UI dev server with SSR + HMR |
| Neither | Error | Throws: “No app entry found in src/” |
src/entry-server.ts also triggers UI detection. A project with only src/entry-server.ts (no
src/app.tsx) enters UI-only mode. This is a backward-compatibility path — new projects should
use src/app.tsx.Full-stack project layout
A full-stack Vertz project typically looks like this:Server entry (src/server.ts)
The API server entry is auto-detected by file convention. The canonical path is:
src/server.ts(preferred)src/server.tsx(also supported)
createServer():
src/server.ts is present, vertz dev creates a persistent isolate that handles /api/* requests through your server’s handler.
Use
src/server.ts or src/server.tsx for best compatibility. The runtime also scans
src/api/server.ts and .js extensions as alternative paths.What if src/server.ts is absent?
If no server entry is found but src/app.tsx exists, the app runs in UI-only mode — the dev server handles SSR and HMR but doesn’t mount any API routes.
UI entry (src/app.tsx)
The UI application entry is auto-detected at:
src/app.tsx(preferred)src/app.ts(also supported)
Convention over configuration
All entry points are discovered by file convention. There is no config option to set the server entry or the codegen scan target — both usesrc/server.ts automatically:
- Runtime discovers
src/server.tsand creates a persistent isolate for API requests - Codegen scans all files in
src/for entity and access definitions — no entry file config needed
vertz.config.ts has zero entry-point configuration. The compiler options (sourceDir, outputDir, etc.) control where to look and where to write, but the specific entry files are always convention-based.
- One canonical path.
src/server.tsis predictable for developers and LLMs alike. No config to read, no indirection to trace. - Re-export for unusual layouts. If your server logic lives at a non-standard path, create a
src/server.tsthat re-exports from that location:
Next steps
Server Overview
Entity-driven backend with auto-generated CRUD and access control.
Code Generation
Generate typed client SDKs from your server configuration.
Quickstart
Scaffold a full-stack app in under 5 minutes.
Installation
Add Vertz to an existing project manually.