Core Concepts
The conceptual tour of the framework. Read these in order if you’re new to Tiny.
Architecture
- MVC architecture — how Tiny implements Model-View-Controller, and the request lifecycle.
Request handling
- Routing — the filesystem-based router, 3-segment URL resolution, and the fallback algorithm.
- Controllers —
TinyController, HTTP-verb dispatch, request/response helpers.
- Request & Response — the full
TinyRequest / TinyResponse API reference.
- Middleware — pre-controller hooks (auth, CORS, logging, rate limiting).
Views
- Views — templates, components, layouts, asset helpers.
- HTMX & React — built-in HTMX awareness and React SSR/SPA rendering via
tiny::renderReact().
Data
- Models —
TinyModel, schema validation, caching patterns.
- Database — raw-SQL helpers for MySQL, PostgreSQL, SQLite.
Testing
- Testing — built-in zero-ceremony test harness,
tiny::swap(), tiny::test(), TinyTestResponse, :memory: SQLite.
See also
- Extensions — first-party modules (cache, CSRF, SSE, scheduler, CMS, ClickHouse, …)
- Helpers — integration catalog (Stripe, Mailgun, OAuth, S3, …)
- Architecture & vision — the design philosophy behind Tiny