Atlas Forms is a 17-package pnpm monorepo built on a strict 3-tier architecture. Core packages have zero external dependencies. Every layer can only depend downward.
Packages are organized by responsibility. No upward dependencies — Layer N can only import from Layer N-1 or below.
Central form state machine. Manages all value changes, dirty/touched state, validation lifecycle, and form events. Framework-agnostic — works without React.
HTTP integration layer with built-in caching, retry logic, and memory leak prevention. Four client classes cover all form API operations.
Transparent storage layer with automatic fallback. Drafts and form records persist across sessions with quota management and auto-cleanup.
Extensible validation framework. Six built-in validators cover the common cases. Custom validators are registered by name and referenced in form schema.
Singleton plugin registry for all 89+ controls plus any custom ones. Observer pattern notifies components when controls are registered or removed.
Theme management with OS preference detection. Register custom themes alongside built-in light and dark. All tokens cover colors, typography, spacing, radius, shadows, and transitions.
The HTML control is the highest-risk control in any form system. Atlas Forms blocks 28+ confirmed XSS attack vectors through 6 independent security layers — all enforced by default.
Every control has per-mode visibility settings. Show different fields to users vs admins. Present read-only data in view mode. Let designers configure in design mode.
| Mode | Editable | Primary use | Typical users |
|---|---|---|---|
| edit | Yes | Normal form filling | End users entering data in a workflow or standalone form |
| view | No | Read-only display | Reviewers, approvers checking a submitted record |
| design | Yes | Form building | Form designers and developers creating or editing form schema |
| admin | Yes | Administrative operations | Admins managing tenant forms, overriding values, audit review |
| preview | No | Testing with sample data | Designers and QA testing form appearance before publish |
From user input to backend persistence — every step typed, validated, and tracked.
Follow the get-started guide or explore real-world examples.