Skip to main content

Get started here

Use the reference toolchain from the monorepo today. Packages are not on the public npm registry yet — clone the repo and run the CLI locally. Requirements: Node.js 20+, Git.

1. Clone and install

This builds @aiparlance/parser, validator, cli, and the Preview emitters (sql, openapi, typescript, go, mysql, workers, python, php, docs, tests).

2. Run the CLI

The binary lives at packages/cli/dist/cli.js after build:

Try the minimal example

Write output to a file:
Full CRUD walkthrough (entities, policies, API, seeds, emit): CRUD walkthrough.

3. Write your own .aip

Every v0.1 spec needs one app block first, then entity / crud / validation (Core). See Syntax and examples/.
Save as my-app.aip, then:
Richer examples (blog-crud.aip, crm-reference.aip, ops-reference.aip, inventory-crud.aip) include Infra / Security / Behavior and parse + validate with the full v0.1 toolchain. Use mysql-minimal.aip for aip emit mysql.

4. Run the test suite

From the repo root:
This typechecks/builds workspaces and runs Vitest (parser, validator, emitters, CLI, and examples CI). Examples-only:
Typecheck without tests:

5. What ships vs what is preview

Read more: First emitters · CRUD walkthrough · Examples · Specification § Transpiler matrix · ROADMAP · CONTRIBUTING

Optional: docs and site locally