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
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.
Read the language spec
Run the spec command first so you know the syntax before writing anything.
npx -y @chanmeng666/archlang specWrite a plan file
Create a file named plan.arch describing your rooms, areas and adjacencies in ArchLang.
# plan.arch <describe rooms, areas, adjacencies>Compile to SVG
Compile the plan to an SVG and request JSON output.
npx -y @chanmeng666/archlang compile plan.arch -o plan.svg --jsonDescribe 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 --jsonFinish 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.