Exact.
Areas and reachability are computed, not estimated; the same text gives the same drawing, byte for byte.
| Room | Area | Net | Reachable |
|---|---|---|---|
| Living / Kitchen | 27.3 m² | 25.52 m² | yes |
| Bath | 8.25 m² | 7.4 m² | yes |
| Bedroom | 13.2 m² | 12.13 m² | yes |
Floor plans as code. Your AI writes ArchLang; the compiler draws a precise, dimensioned plan and tells it what's wrong.
1. Run: npx -y skills add ChanMeng666/archlang --yes
2. Run: npx -y @chanmeng666/archlang spec (read it before writing anything)
3. Write my floor plan as plan.arch from this brief: <describe rooms, areas, adjacencies>
4. Run: npx -y @chanmeng666/archlang compile plan.arch -o plan.svg --json
then describe plan.arch --json, validate plan.arch --strict --json (same prefix); fix, recompile
5. Run: npx -y @chanmeng666/archlang finish plan.arch, then compile again to export.
Starting from a photo or PDF? Read https://archlang.uk/from-an-image. To change one room without moving the others, use `impact --lock` (https://archlang.uk/edit-one-room).New here? Get a floor plan from your AI →Or open a plan in the playground ↗claude.ai, VS Code and the rest ↓
35 example plans, every one compiled and checked in CI · SVG · PDF · DXF · PNG · MIT
Design a studio flat of about 35 m² for one person. It needs one main living/sleeping room, a separate bathroom, and a small entrance hall with the front door. Put a kitchenette along one wall of the main room. The main room needs at least one window.
plan "Studio 35" {
units mm
grid 50
paper A3 landscape
scale 1:50
north up
dims auto overall
schedule rooms
legend
# Rooms (centreline dimensions): 25 + 4 + 6 = 35 m²
room id=r_main at (0,0) size 5000x5000 label "Living / Sleeping" uses living bedroom kitchen
room id=r_hall at (5000,0) size 2000x2000 label "Hall" uses hall entry
room id=r_bath at (5000,2000) size 2000x3000 label "Bath" uses bath
# Exterior shell as four named straight walls, plus two partitions.
wall id=w_north exterior thickness 200 { (0,0) (7000,0) }
wall id=w_east exterior thickness 200 { (7000,0) (7000,5000) }
wall id=w_south exterior thickness 200 { (0,5000) (7000,5000) }
wall id=w_west exterior thickness 200 { (0,0) (0,5000) }
wall id=w_part partition thickness 100 { (5000,0) (5000,5000) }
wall id=w_hb partition thickness 100 { (5000,2000) (7000,2000) }
# Front door into the hall; hall -> main room; hall -> bath.
door id=d_front on w_north at 6000 width 900 hinge near end swing into r_hall
door id=d_main on w_part at 1000 width 900 hinge near start swing into r_main
door id=d_bath on w_hb at 1000 width 800 hinge near end swing into r_bath
# Windows: two for the main room, one for the bath.
window id=win_w on w_west at 50% width 1500
window id=win_s on w_south at 2500 width 1500
window id=win_b on w_east at 4400 width 600
# Kitchenette along the north wall of the main room: sink, counter, stove, fridge.
# (`offset` is the piece's centre along the wall.)
furniture kitchen_sink against wall w_north offset 600 size 800x600 in r_main
furniture counter against wall w_north offset 1300 size 600x600 in r_main
furniture stove against wall w_north offset 1900 size 600x600 in r_main
furniture fridge against wall w_north offset 2600 size 700x650 in r_main
# Living / sleeping furniture, clear of the door swing from the hall.
furniture bed in r_main anchor bottom-left inset 300 size 1500x2000 label "Bed"
furniture sofa in r_main anchor bottom-right inset 300 size 2000x900 label "Sofa"
furniture wardrobe in r_main anchor right inset 300 size 600x1800 label "Wardrobe"
# Bathroom: basin and WC on the east wall, shower in the south-west corner,
# leaving the strip inside the door clear.
furniture basin against wall w_east offset 2500 size 600x450 in r_bath
furniture wc against wall w_east offset 3300 size 400x700 in r_bath
furniture shower in r_bath anchor bottom-left flush size 900x900
title {
project "Studio flat, 35 m²"
drawn_by "ArchLang"
date "2026-10-09"
}
}
The 3D preview is extruded from the same .arch file by the separate archlang-3d package, and checked against the plan: every 3D element comes from the plan's elements, and every solid is closed.

3D preview: walls, openings, floors, stairs, furniture, outdoor surfaces and fences in flat colours; the ground is a backdrop the viewer draws, not part of the building and not in the file; no pitched roofs or balcony railings yet, and no sections, elevations or BIM.
Areas and reachability are computed, not estimated; the same text gives the same drawing, byte for byte.
| Room | Area | Net | Reachable |
|---|---|---|---|
| Living / Kitchen | 27.3 m² | 25.52 m² | yes |
| Bath | 8.25 m² | 7.4 m² | yes |
| Bedroom | 13.2 m² | 12.13 m² | yes |
Edit a number and only what depends on it moves; impact --lock proves the rest didn't.
BEDROOM = 3300BEDROOM = 3900impact: 8 elements moved, 8 held. --lock r_live,r_hall,d_front: nothing locked moved. An unreachable room or an opening off its wall comes back as a message with a code and a fix your AI can apply; checks other than reachability and area are advisory.
W_BEDROOM_NO_WINDOW Bedroom "Bedroom" has no window. window on an exterior wall of the room.Rooms, walls, doors and windows have names, so the compiler can measure each room and check how the rooms connect. Some mistakes — an unreachable room, an opening off its wall — come back as a message with a code that points at the exact place in the text, often with a fix your AI can apply; other checks are advisory. The same text gives the same bytes every time, and impact shows which parts of the drawing a change moved.
Describe the plan in a sentence or a paragraph: the rooms, their sizes, what opens onto what.
Your AI writes a short text file, compiles it, reads the areas and messages the compiler returns, and fixes what they point at.
A dimensioned drawing in SVG, PDF or DXF, or PNG with one optional download; the same text gives the same file every time.
Ask ChatGPT. Add the ArchLang app in ChatGPT, then describe the plan you want. ChatGPT writes ArchLang, the compiler draws the plan and reports what is wrong, and ChatGPT can fix it from that message. Nothing to install; you need a ChatGPT account.
Then ask, for example:
Draw a two-bedroom flat of about 75 m² as an ArchLang plan, and check it.What comes back: the compiled plan, each room labelled with its area, and any problems the compiler found.
Ask your coding agent. Paste this prompt into Claude Code, Codex, Cursor or any agent that can run commands. It adds the ArchLang skill, reads the language, writes your plan, compiles and checks it, and fixes what the compiler reports, or shows you the message.
1. Run: npx -y skills add ChanMeng666/archlang --yes
2. Run: npx -y @chanmeng666/archlang spec (read it before writing anything)
3. Write my floor plan as plan.arch from this brief: <describe rooms, areas, adjacencies>
4. Run: npx -y @chanmeng666/archlang compile plan.arch -o plan.svg --json
then describe plan.arch --json, validate plan.arch --strict --json (same prefix); fix, recompile
5. Run: npx -y @chanmeng666/archlang finish plan.arch, then compile again to export.
Starting from a photo or PDF? Read https://archlang.uk/from-an-image. To change one room without moving the others, use `impact --lock` (https://archlang.uk/edit-one-room).Claude Code, connected to the hosted server:
claude mcp add --transport http archlang https://mcp.archlang.uk/mcpThe skill on its own: skills.sh ↗
npx -y skills add ChanMeng666/archlang --yesAsk Claude on claude.ai. Add the hosted ArchLang server as a custom connector in claude.ai's settings, then ask for a plan. Nothing to install; you need a claude.ai account.
claude.ai connector · no install; add as a custom connector
https://mcp.archlang.uk/mcpThese are the steps on Pro and Max. On Team or Enterprise, an Owner adds it under Organization settings > Connectors (see the help page).
Write it in VS Code. The extension highlights .arch files, shows the compiler's errors and warnings as you type, offers its quick fixes, and draws an arch fence in the Markdown preview.
Open a plan in your browser. Nothing to install. Pick a plan, drag one of its numbers and hover a room for its area. Source shows the ArchLang text behind the drawing, and you can edit it there.
Every way in, one screen each: Get a floor plan from your AI.
Selected examples, not a benchmark. Every one is a text file in the repository; all the examples · plans written by AI agents.
A two-bedroom flat with every room furnished, each piece standing against its wall.
furnished-flat.arch · 7 rooms · 90.72 m²
A suburban bungalow with the street to the south and the garden to the north.
bungalow.arch · 8 rooms · 102 m²
A single-storey house whose rooms ring an open courtyard.
courtyard-house.arch · 11 rooms · 163 m²
The ground floor of a two-storey villa with an attached garage.
hillside-villa.arch · 11 rooms · 196.54 m²
A neighbourhood cafe: a dining room for eighteen, a servery, a kitchen, a store and a WC.
corner-cafe.arch · 6 rooms · 150 m²
A public library around a circular reading room, issued with its room schedule and legend.
library.arch · 14 rooms · 1545.06 m²
3D preview: walls, openings, floors, stairs, furniture, outdoor surfaces and fences in flat colours; the ground is a backdrop the viewer draws, not part of the building and not in the file; no pitched roofs or balcony railings yet, and no sections, elevations or BIM.
| What it is | What it isn't |
|---|---|
| A text language for floor plans: rooms, walls, doors, windows and furniture in millimetres, in a file you can diff. | Not CAD software: the compiler draws plans, and the 3D preview is a separate package's flat-colour preview. Heights draw nothing in the plan; there are no sections or elevations. |
| A 3D preview from the same source (the separate archlang-3d package): walls, openings, floors, stairs, furniture, outdoor surfaces and fences in flat colours. | Not a renderer, not BIM: no pitched roofs or balcony railings yet, no sections or elevations. |
| A compiler from that text to SVG, PDF and DXF offline; PNG with one optional download. The same text gives the same bytes. | Not a CAD interchange tool: DXF is a one-way export. There is no DXF or DWG import. |
| A checker: describe reports areas and reachability, and lint returns messages, each with a code and, where there is one, a fix. | Not a permit or compliance product: every check other than reachability and area is advisory. |
| The format an agent emits when it needs a floor plan: a CLI with JSON output, an MCP server and a skill. | Not an image reader: your AI reads a photo or a PDF and writes ArchLang from it. |
| Open: MIT licensed, zero runtime dependencies, and it runs in Node, in the browser and in CI. | Not BIM: there is no IFC import or export. |
| Explicit about edits: finish fills what a plan left empty, and runs when you ask it to. | Not a layout solver: the compiler draws what the source says. No optimiser, no auto-layout. |
Limits. Plan drawings only (no 3D in the core, no BIM/IFC, not permit drawings); it does not read images (your AI can: /from-an-image); clearances are advisory.
Starting from a photo or a PDF · Change one room, keep the rest · How it compares with Mermaid
describe() & lint
A plan compiles to a drawing and to facts: describe() returns rooms, areas, adjacency and an access graph, and lint() says what is wrong. An agent reads them without an image.
| Room | Use | Area | Adj. |
|---|---|---|---|
| Living / Kitchen | living, kitchen | 21 m² | 2 |
| Bedroom | bedroom | 8.96 m² | 2 |
| Bath | bath | 5.04 m² | 2 |
| Total | 3 rooms | 35 m² | 7 |
3 doors · 4 windows · an entrance · every room reachable
// built for agents
Every archlang command takes --json and returns a deterministic exit code; archlang context prints the language, the workflow and the error catalog as one bundle for a system prompt (llms-full.txt); and SKILL.md is the write → compile → describe → repair loop an agent follows.