Skip to main content
Version: 57.2.0

Terreno Documentation

Terreno is Django/Rails for TypeScript — with universal app support.

Terreno is Django/Rails for TypeScript — a batteries-included, full-stack framework where the undifferentiated 80% of an app is already written. On the backend you get Mongoose models, auto-generated REST APIs, permissions, an admin panel, authentication, and an AI service. On the frontend you get one universal app — a single React Native codebase that ships to iOS, Android, and web. It is built to be driven by AI coding agents from the first prompt to a production deploy.

  • Batteries included — auth, CRUD APIs, admin, permissions, AI, realtime, feature flags, and consent are already built, so your code is business logic.
  • Universal by default — one React Native codebase ships to iOS, Android, and web. Not a web framework with a mobile bolt-on.
  • AI-native — agents are a first-class client of the framework, not an afterthought.

Canonical copy, language rules, and the Django/Rails comparison: Positioning.

Structure

Packages

PackageDescription
@terreno/apiREST API framework for Express/Mongoose (modelRouter, auth, OpenAPI)
@terreno/testShared Bun test helpers, MongoDB preload utilities, and HTTP fixtures
@terreno/uiReact Native UI component library for iOS, Android, and web
@terreno/syncdbLocal-first data layer with TinyBase, durable outbox, and delta sync
@terreno/aiProvider-agnostic AI service with streaming chat, request logging, and admin tools
@terreno/admin-backendAdmin panel backend plugin for @terreno/api
@terreno/admin-frontendAdmin panel frontend screens for @terreno/api backends
@terreno/admin-spaStandalone admin SPA (Expo Router web) plus Express serve plugin
@terreno/api-healthHealth check plugin for @terreno/api
@terreno/commsPluggable communications providers
@terreno/feature-flagsFeature flags and A/B testing plugin for @terreno/api
@terreno/mcpMCP server that gives coding agents Terreno docs, codegen tools, and prompts

Legacy

PackageDescription
@terreno/rtk (deprecated for data sync)OpenAPI SDK, Better Auth Redux, and feature flags for Terreno frontends

Migrating from RTK? See How to migrate from @terreno/rtk to @terreno/syncdb.