thezakuloGet the newsletter
← All setup guides

Setup guide · 6 steps · about 10 minutes

How to start using ChanMeng666/archlang

ArchLang is an open-source (MIT) DSL for floor plans that compiles .arch source into dimensioned SVG/DXF/PDF drawings with linting and geometric validation.

Built from the official docs: GitHub - ChanMeng666/archlang: 【Every star you give feeds a hungry developer's motivation! ⭐️】Floor plans as code. Your AI writes ArchLang; the compiler draws a precise, dimensioned plan (SVG, DXF, PDF) and tells it what's wrong. Open source, MIT. · raw.githubusercontent.com · checked 18 November 2026

Through the npx CLI

  1. Have Node.js with npx

    The commands below all run through npx, which ships with Node.js. No separate install of the package is required.

  2. Read the language spec

    Run the spec command first so you know the syntax before writing anything.

    npx -y @chanmeng666/archlang spec
  3. Write a plan file

    Create a file named plan.arch describing your rooms, areas and adjacencies in ArchLang.

    # plan.arch
    <describe rooms, areas, adjacencies>
  4. Compile to SVG

    Compile the plan to an SVG and request JSON output.

    npx -y @chanmeng666/archlang compile plan.arch -o plan.svg --json
  5. Describe and validate

    Inspect the computed plan and run the strict checks; fix any findings and recompile.

    npx -y @chanmeng666/archlang describe plan.arch --json
    npx -y @chanmeng666/archlang validate plan.arch --strict --json
  6. Finish and export

    Run finish, then compile again to produce the final export.

    npx -y @chanmeng666/archlang finish plan.arch
    npx -y @chanmeng666/archlang compile plan.arch -o plan.svg --json

Check it worked

The compile command writes plan.svg, and validate --strict reports no outstanding findings.

Try these first

Get every issue by email

One email a week with the written issue. Free, one-click unsubscribe

Subscribe