Schema Documentation
Define your entire application — data models, authentication, pages, themes, analytics — in a single YAML or JSON file. This is the complete reference for the Sovrium app schema.
Overview
A Sovrium app is a declarative configuration object with 10 root properties. Only name is required — everything else is optional, enabling progressive complexity from a minimal app identifier to a full-stack application.
Configuration files can be written in YAML or JSON. Run sovrium start app.yaml to launch a dev server, or sovrium static app.yaml to generate a static site.
Quick Start
Create an app.yaml file and start building. Here is a minimal example that grows from the simplest valid config to a small but complete app:
Then run the development server:
Root Properties
The app schema has 10 root properties. Only name is required.
App identifier following npm naming conventions. Lowercase, max 214 chars, supports scoped format (@scope/name).
Semantic Versioning 2.0.0 string (e.g., 1.0.0, 2.0.0-beta.1). Supports pre-release and build metadata.
Single-line app description. No line breaks allowed. Unicode and emojis supported.
Data models with 41 field types, relationships, indexes, permissions, and views.
Design tokens: colors, fonts, spacing, shadows, animations, breakpoints, and border radius.
Server-rendered pages with 63 component types, SEO metadata, and i18n support.
Authentication strategies (email/password, magic link, OAuth), roles, and two-factor authentication.
Multi-language support with $t: translation syntax, browser detection, and language persistence.
Reusable UI templates with $ref referencing and $variable substitution.
Privacy-friendly, cookie-free, first-party analytics. Set to true for defaults or configure with options.