One room — an ArchLang floor plan example
The smallest complete plan: one room, one door, one window and a dimension chain.
This plan compiles to 1 room, 20 m² of floor area and 1 window; every room is reachable from the entrance.
What this plan uses
The parts of the language this plan's source writes, each linked to its section of the language reference.
The source
This is the whole plan. The drawing above is what the compiler produced from it — nothing was drawn by hand.
# The smallest complete ArchLang plan: one room, one door, one window, one dimension chain.
# Every other example is this file with more of it — a shell you can walk into, a room that
# knows what it is for, and openings pinned to the wall by position rather than coordinate.
plan "One Room" {
units mm
grid 50
north up
dims auto overall
wall id=shell exterior thickness 200 { (0,0) (5000,0) (5000,4000) (0,4000) close }
room id=r_main at (0,0) size 5000x4000 label "Room" uses living
door id=d_in on shell at 60% width 900 swing in # 60% of the loop's run: the south wall
window id=w_n on shell at 10% width 1500 # 10%: the north wall
title { project "One Room" drawn_by "ArchLang" date "2026-08-16" }
}
More in Start here
- Laneway House: A 49 m² one-bedroom cottage where nothing is positioned by hand: every opening and fixture resolves against a wall or a room.
- Garden Loft: A 35 m² loft: three rooms, a kitchen run with a wall behind it, a bath with real fixtures, and a door into every one of them.
- Tiny House: A 7.2 x 3.0 m micro-home that argues over millimetres: barn and bifold doors, and the clearances they need.
- Studio (1BR): The canonical example: a compact studio flat. No warning under the default lint rules; the bath opens off the hall, not through the bedroom.