Skip to content

Introduction

Astroladb is a language-agnostic database migration tool that lets you define your schema once in JavaScript and automatically generates migrations, API specifications, and type definitions for multiple languages.

No ORM. No framework lock-in. Just clean migrations and type exports.

Your schema becomes the single source of truth for your entire stack.

ProblemAstroladb Solution
ORMs tie you to one languageDefine schema once, export to any language
Manual migration writing is error-proneAuto-generate migrations from schema changes
Keeping API docs in sync is tediousOpenAPI/GraphQL generated from your schema
Type definitions drift from databaseTypes always match your actual schema

From a single schema definition, Astroladb exports:

  • Database migrations (PostgreSQL & SQLite)
  • OpenAPI specifications
  • GraphQL schemas
  • TypeScript types
  • Go structs
  • Python dataclasses
  • Rust structs
Terminal window
# Export everything with one command
alab export -f all