ArchSmith's core purpose is to convert structured architecture descriptions into consistently styled layered architecture diagrams. Users or agents first produce a JSON IR document that conforms to the schema, then hand it to ArchSmith for deterministic rendering to produce an SVG. The renderer uniformly controls box shapes, spacing, color schemes, text wrapping, and alignment, and embeds fonts by default so that diagrams display consistently across different machines.
Main capabilities include: validate checks whether the IR conforms to the schema; render validates first and then renders, failing with exit code 1 for invalid input and exit code 2 for rendering-time errors; author provides an interactive wizard that asks item by item about inbound actors, entry, core platform, system records, exit, and external systems, offering only governed color and sublayer options, and upon completion validates, renders, and saves .archsmith.json and .svg; registries show colors displays the color registry, supporting the standard and accessible color families; schema show outputs the raw diagram-schema.json.
In terms of usage, it can be called as an npm package library or run via the CLI, for example npx @archsmith/cli render ticket-booking/diagram.archsmith.json -o ticket-booking/diagram.svg. The MCP server communicates over stdio and provides the get_schema, render, validate, list_registries, and get_registry tools, as well as the archsmith://schema and archsmith://registries/<name> resources; render does not embed fonts by default, and SVGs larger than 25000 bytes are returned as a resource_link and cached in memory for the most recent 20 renders. The recommended agent workflow is: read the schema, read the relevant registries, construct the IR, validate, render.
It is suitable for teams that need to produce layered architecture diagrams in batches with a consistent style and want AI agents to generate diagrams via tool calls. Limitations include: it currently supports only one layered/swimlane diagram convention and does not support sequence diagrams, the full C4 hierarchy, or state machines; IR has no layout or style adjustment parameters; the author wizard is only for creating initial diagrams and does not yet support editing existing diagrams; the project is pre-1.0, and the schema and API may change.