CyLith

This is great if you are designing a house, but less useful for reconstructing an as-built. The main frustration I have is that it's not easy to translate physical measurements into the quantities needed. It's odd to me that rooms are measured from the centerline of the wall, rather than edge to edge, which is what you'd measure with a tape measure or a laser ruler.

I have been trying to vibe code a proof of concept house-to-cad system where you feed it measurements and it uses a SLAM-like process to reconcile your measurements into a coherent house model. If anyone knows of something, let me know. Or please make it!

show comments
tomaytotomato

If you could apply this to Blender and remove the need for BPY (Blender Python scripting) this would be awesome

origini

Very nice.

I will check it out for my current project:

Personal digital twin.

Designing and building a virtual twin of my flat and my future house i want to be able to plan my dream farm before i can afford it and it will allow me to priotize things like a greenhouse over a forge etc.

And depending if i will ever have the money or have to rebuild something: it should be possible to autogenerate random layouts of a perfect house. Like if your test case is waking up, dressing then going outside and coming in dirty for lunch, all of them have pathes and costs etc. and depending on how often you do, you might be able to plan and get a bauhaus style idea out of it.

sondr3

Huh, this seems very cool indeed. I've used Sweet Home 3D to model the house we bought last year but that was an exercise in frustration trying to make things line up properly. This looks like something that'd be fun to try to use to replicate the full layout of the house in.

show comments
brudgers

Landing page for archlang, https://archlang.uk/

anentropic

I have used SketchUp MCP/Claude connector before

and the other week here there was a vibecoded open clone of SketchUp

this looks worth a try

hk1337

This would be nice in collaboration with an app that can create floor plans from images. Looks like there’s an mcp ability so that is likely.

Hasz

This is cool.

A couple thoughts:

- 3d render seems borked, windows/doors show as flat void floating in space.

- I am personally much more interested in the mechanicals and structural design than things like rugs. US standards are going to be quite different than the UK, eg cavity walls frammed 24-16" OC vs whatever the UK uses.

- units :)

- it would be cool to have your integrated ide highlight the render, eg if I click on

``` furniture sofa in r_live anchor bottom-left flush inset 250 size 900x2000 label "Sofa" ```

I see that object highlighted.

- electrical, plumbing, hvac penetrations planning is imo quite important, along with a DRC system to check you comply with xyz code.

- multiple floors would be cool

Anyways, 2c driveby comments, cool project.

pwarner

I presume an LLM can write this code? I've got similar ideas for adjacent domains.I think you is the path to LLMs helping in more domains. Message me if you are also thinking of this.

show comments
wm44821

would be nice if cursor placement in the source highlighted the respective part of the rendering.

jstanley

FYI chanmeng I think the reason your comment is dead is because it is LLM-generated.

hard_times

Can it do something like an auditorium with concentric seat arrangement, I wonder?

asibahi

I expected this to be a bit more substantial than it is.

I expected some sort of solver where you list the rooms and their sizes and their requirements (window/no window) and it would give you a floor plan.

This is just good old drawing by text.

js8

Funny, like half of my coworkers vibecoded their own home planning application; must be the most popular use case.

gwt4life

Cool. I just wish Claude wouldnt make all websites default to looking like he Anthropic website.

arendtio

Pretty cool! Is it possible to have multiple floors on top of each other?

bttf

Why isn't IKEA using this? For instance, I could convert my empty house into code and then have IKEA send me suggestions.

jiggunjer

Interesting applications for game design too perhaps. I was looking for a way to design terrain maps using a 2d plan language.

DrNosferatu

So now LLMs will be able design floor plans!

larodi

Love it, hope it gets good adoption!

dolmen

Stairs?

show comments
Code__Block

huh, very cool indeed !

chanmeng

Hi HN. I'm the solo maintainer of ArchLang, an open-source DSL and compiler for floor plans.

You write plain-text `.arch` source describing walls, rooms, doors, windows and furniture, and it compiles — deterministically — to SVG, DXF and PDF. Same source in, byte-identical bytes out. It isn't a renderer that draws a nice picture: it's a compiler with a linter and a geometric validator, and `compile()` never throws. Errors come back as data, each with a byte span and, where the fix is mechanical, the edit that fixes it. This is what the library's `compile()` returns:

  {
    "code": "E_ATTACH_POS_RANGE",
    "severity": "error",
    "message": "Door \"d1\" attachment position 30000 mm is outside the wall run (0…18000)",
    "fixes": [{
      "title": "clamp the attachment position to 18000",
      "applicability": "machine-applicable",
      "edits": [{ "span": { "start": 170, "end": 184 }, "newText": "on w1 at 18000" }]
    }]
  }
That's what `arch fix` applies, and it's why a model can correct its own source without a human in the loop.

The other half is that you can interrogate a plan without looking at it. `arch describe --json` gives rooms, exact areas, adjacency and an access graph; `arch lint --json` gives soundness warnings like `W_ROOM_DISCONNECTED` — "Room "Kitchen" has no door or opening — it can't be entered." A text-only model can check its own work.

The same source also gives a 3D preview. A separate package, archlang-3d, extrudes the compiled plan (walls, openings, floors, stairs, furniture, outdoor surfaces and fences in flat colours), checks it against the plan, and you can download it as a GLB from the playground or the CLI (the CLI validates it). It's a preview of the plan, not a renderer: stairs are built from the plan's own geometry, there are no pitched roofs or balcony railings yet, and no sections, elevations or BIM. It's in the playground, and there's a page with a few plans beside their 3D previews: https://archlang.uk/3d

Why a DSL, and why I think it matters right now. The thing that pushed me to build this is the way image-generating AI "design" tools output a picture you have to take on faith. When Adam launched its text-to-CAD tool here (https://news.ycombinator.com/item?id=48572553), the sharpest criticism was that the demo models looked like the thing but weren't manufacturable, and that natural language is a poor way to specify tolerances and constraints. A DSL is my answer to that. When a model writes ArchLang, its output isn't a hallucinated picture — it's source you can read, diff, version-control, and correct, and the compiler mechanically checks it. (I want to be honest: whether that auditability is worth paying for is a hypothesis I'm testing, not a settled fact.)

If the comparison helps: it's the Typst-and-LaTeX bargain applied to a drawing. The source is the thing you keep; the drawing is what the compiler makes of it.

Honest limitations, up front:

- The language draws a plan, and only a plan. Heights, sills and heads exist in the language, but they draw nothing — a floor plan is a horizontal cut. No sections, no elevations: a plan-level `section` mark draws only the cut line and the look direction, not a section drawing. The 3D preview is a separate package that extrudes the compiled plan: flat colours, stairs from the plan's own geometry, no pitched roofs or balcony railings yet, and you do not edit it.

- No BIM, no IFC, no round-trip. DXF export is one-way, for a draftsperson to open. Importing a building model back isn't something it does today.

- No structural, no MEP, no code compliance — and that last one is a deliberate refusal, not a gap. Asserting standards compliance is a liability claim I won't make.

- Three things are measured; the rest is advisory, and the code says so. Reachability (a real modeled access graph), areas (shoelace arithmetic), and byte-identical determinism are facts. Clear widths and walk distances are computed on a coarse grid and are explicitly advisory — the ADR calls them that. I'd rather tell you which numbers to trust than let you assume all of them.

- This is a concept/schematic tool, not a permit set. The output is dimensioned, internally consistent and exports to real CAD, but it is not stamped construction documents and you can't pull a permit from it. Anyone claiming their AI tool produces permit-ready drawings is overselling.

- Solo maintainer, MIT-licensed, 97 GitHub stars. Bus factor of one, and I'd rather say so than have you find out. The license is chosen precisely so the format outlives me if it's worth keeping.

Touch it here (no signup, no waitlist):

- Playground (compiles in your browser, nothing sent to a server): https://playground.archlang.uk

- Docs: https://archlang.uk

- Source (MIT): https://github.com/ChanMeng666/archlang

- `npx @chanmeng666/archlang compile plan.arch` — no required runtime dependencies (PNG and PDF use optional ones). There's also a VS Code extension and an MCP server (`npx -y @chanmeng666/archlang-mcp`, or hosted at `https://mcp.archlang.uk/mcp` with no sign-in; the hosted one returns SVG, text and Plan JSON, while DXF and PDF come from the CLI) so an agent can compile and lint against it directly.

I also built a commercial product on top of this (an AI tool that writes ArchLang for people planning a build) — happy to talk about it if asked, but ArchLang itself is the thing I'm showing today, and it stands alone. Ask me anything, especially the hard questions about what it can't do.

show comments