# Zerotal Documentation

Zerotal is a Bun-native, full-stack TypeScript framework. You write plain classes,
drop them in convention-named folders, and the framework wires them together at
boot — no build step, no manual registration.

## New here?

Three pages, in order, and you'll be productive:

1. **[Getting Started](/docs/getting-started)** — scaffold a project, run it, add a
   route, a model, and a [service provider](/docs/providers). Fifteen minutes.
2. **[About Zerotal](/docs/about)** — the whole framework on one screen: the four
   ideas it rests on, and a runnable example of every major feature.
3. **[Conventions](/docs/conventions)** — what gets auto-discovered, and the naming
   rules that make it happen. This is the page that stops the surprises.

Then build something: **[Build Your First App](/docs/tutorial)** takes the starter from
scaffold to deploy in nine milestones — a model, pages, validation, a policy, queued
mail, tests and teams — each ending in something you can run.

Before building something an app commonly needs — tenancy, roles, an audit log,
backups — check **[What Ships](/docs/what-ships)**. It lists everything the framework
already does, with the page for each.

Reading these docs with a coding agent? Every page is also plain Markdown at its URL
with `.md` added — this one is `/docs.md`. [`/llms.txt`](/llms.txt) lists
them all, and [`/llms-full.txt`](/llms-full.txt) is the whole guide in one file.
Inside an app, the agent surface serves the same pages for the installed version
through `search_docs` — see [Agent Surface](/docs/arch).

```bash
# in your project's parent directory
bun create zerotal my-app
cd my-app && bun dev
```

## Find your way around

| If you want to…                    | Read                                                                                                                                                  |
| ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| Handle a request                   | [Routing](/docs/routing) · [Controllers](/docs/controllers) · [Middleware](/docs/middleware) · [Requests Context](/docs/context)                      |
| Talk to a database                 | [Database](/docs/database) · [ORM](/docs/orm) · [Migrations](/docs/migrations) · [Query Builder](/docs/query-builder)                                 |
| Build a UI                         | [Views](/docs/view) · [Flow](/docs/flow) · [Inertia](/docs/inertia) · [Assets](/docs/assets)                                                          |
| Give staff a back office           | [Admin Panel](/docs/admin) · [Components](/docs/components)                                                                                           |
| Sign users in                      | [Authentication](/docs/authentication) · [Authorization](/docs/authorization) · [Two-Factor Auth](/docs/roles-and-2fa) · [Social Login](/docs/social) |
| Do work in the background          | [Queue](/docs/queue) · [Scheduler](/docs/scheduler) · [Broadcasting](/docs/broadcasting)                                                              |
| Understand how the framework boots | [The Application](/docs/application) · [Lifecycle](/docs/lifecycle) · [Container](/docs/container) · [Providers](/docs/providers)                     |
| Test what you built                | [Testing](/docs/testing) · [HTTP Tests](/docs/testing/http) · [Database Tests](/docs/testing/database)                                                |
| See what's running in production   | [Logger](/docs/logger) · [Monitor](/docs/monitor) · [Telemetry](/docs/telemetry) · [Health](/docs/health)                                             |
| Debug what it just did             | [DevTools](/docs/devtools) · [Errors](/docs/errors)                                                                                                   |
| Work with a coding agent           | [Agent Surface](/docs/arch)                                                                                                                           |
| Ship it                            | [Deployment](/docs/deployment) · [Site gate](/docs/site-gate) · [Commands](/docs/commands)                                                            |

## Choosing a frontend

Zerotal doesn't pick for you, and the choice is per project rather than per
framework:

- **[Views](/docs/view)** — server-rendered JSX. No client runtime at all. Right for
  content sites, forms, and anything that doesn't need live updates.
- **[Flow](/docs/flow)** — reactive components rendered on the server, updated
  over a WebSocket. You write TypeScript classes, not client state. Right when you
  want interactivity without a separate frontend codebase.
- **[Inertia](/docs/inertia)** — a React or Vue SPA that talks to your controllers
  directly, with no API layer to maintain. Right when you already know React or Vue
  and want the full client-side experience.

## Reference

- **[API Reference](/docs/api)** — generated from source, every exported symbol.
- **[Commands](/docs/commands)** — every `bun zt` command.
- **[Release Notes](/docs/changelog)** · **[Upgrade Guide](/docs/upgrade)**
- **[Package Development](/docs/package-development)** — build your own `@zerotal`-style package.
- **[Contribution Guide](/docs/contributing)** · **[Inspirations](/docs/inspirations)**
