Skip to Content
DevelopmentDevelopment guide

Development guide

Resources for contributing to AlignTrue and understanding the codebase.

Prerequisites

  • Node >=20 and pnpm >=9 (see package.json engines)
  • Install dependencies once at repo root with pnpm install before running commands

Getting started

  • Setup - Local development environment setup
  • Workspace - Monorepo structure and package organization
  • Commands - Build, test, and development commands
  • Architecture - System design and technical decisions

Development workflow

  1. Clone and setup: Follow the setup guide
  2. Make changes: Edit code in the relevant package
  3. Fast test loop: Use pnpm test:fast during iteration
  4. Lint and types: Run pnpm lint then pnpm typecheck
  5. Build: Run pnpm build to verify compilation
  6. CI parity: See CI checks for full validation before PRs

Package structure

AlignTrue uses a pnpm workspace with the following packages:

  • packages/cli - Command-line interface
  • packages/core - Core sync engine and configuration
  • packages/schema - IR validation and canonicalization
  • packages/exporters - Agent-specific exporters (see agent support for the current list)
  • packages/sources - Multi-source pulling (local, git)
  • apps/docs - Documentation site (Nextra)

See workspace guide for detailed package descriptions.

Last updated on