Expand description
what-core - An HTML-first web framework
Build websites with semantic HTML components and server-side rendering. No JavaScript frameworks. No build steps. Just HTML.
Modules§
- auth
- Authentication module for the What framework
- cache
- Caching system for What framework
- components
- Component registry and rendering system
- data
- Data Store - Central state management for What framework
- database
- Database Adapter — unified interface for SQLite, Cloudflare D1, and Supabase backends
- datasource
- Named datasources — connect to multiple backends via
dsn:namein fetch directives. - egress_
guard - SSRF egress guard for template-driven
fetchdirectives. - Email sending for What projects.
- jobs
- Background job queue for non-blocking operations.
- parser
- HTML parser for custom tags
- policy
- Declarative collection authorization policies.
- prelude
- Prelude for common imports
- server
- HTTP Server for What framework
- sessions
- Session management for What framework
- uploads
- Upload storage backends — local filesystem and Cloudflare R2
- validation
- Form validation for What
Structs§
- Auth
Config - Authentication configuration
- Collection
Policy Config - Raw per-collection authorization policy — one per
[collections.name]in what.toml. Semantic validation (reserved words, invalid combinations) happens when the PolicyRegistry is built at startup, so errors fail loud with the collection name. - Config
- Main configuration structure parsed from what.toml
- Datasource
Config - Email
ApiConfig - API-based email provider configuration (e.g. Resend)
- Email
Config - Email configuration
- Field
Rules Config - Field-level policy rules for a collection
- Rate
Limit Config - Rate limiting configuration
- Session
Config - Session configuration
- Smtp
Config - SMTP transport configuration
- Upload
Config - Upload configuration
Enums§
- Datasource
Type - Named datasource configuration — one entry per
[datasources.name]in what.toml - Error
- Main error type for what-core
Functions§
- parse_
size_ string - Parse human-readable size strings into bytes
- resolve_
config_ path - Resolve the config file path for a project directory.
Type Aliases§
- Result
- Result type alias for What operations