English
Introduction
This guide covers atlas, the SQL ORM:
- Recommended path
- Design principles
Atlas is Ream's Data Mapper ORM.
It combines:
- explicit entities/repositories in TypeScript,
- SQL compilation in Rust (N-API),
- strict identifier validation and dialect-aware query generation.
Status: production-ready core. The API below matches the current codebase.

Recommended path
- Getting Started
- Relations
- Query Builder
- Advanced ModelQuery
- Lifecycle Hooks
- Repository Patterns
- Migrations
- Schema Builder
- Schema Dump & Verify
- Seeders
- Factories
- Connections
- SQL Security
- Performance
- Observability
- API Reference
- Error Handling
- Troubleshooting
Design principles
- No hidden global model state: repositories own data access.
- Strong defaults, explicit escape hatches (
whereRaw,joinRaw) marked unsafe. - Multi-dialect support:
sqlite,postgres,mysql. - Transactions and migration atomicity are first-class concerns.
Atlas is Ream's Data Mapper ORM. Entities are pure TypeScript classes decorated with metadata. Queries compile to SQL through Rust via NAPI. Domain events accumulate on entities and dispatch through the event bus after a successful save.
Next Steps
- Rune (Validation) — Validate input before saving entities
- Event Bus — Dispatch domain events after save