DEV Community

Khang Nguyen
Khang Nguyen

Posted on

# Archify: Turn Your Codebase Into a Verified Interactive System Map

When you’re learning technology by building real projects, understanding a codebase can become harder than writing it.

You may know what each file does. You may even understand individual functions and services. But once data moves through APIs, workers, databases, queues, and user interfaces, the system becomes difficult to explain as a whole.

This problem gets worse when working with AI coding tools. Cursor, Claude Code, Codex CLI, and OpenCode can help you move quickly, but fast code generation doesn’t automatically produce a clear mental model.

Archify addresses this gap by turning a codebase or system description into a polished, interactive system map directly in chat.

It is an MIT-licensed Node.js rendering and validation system designed for AI-assisted developers and indie developers who need practical architectural clarity without building diagram infrastructure from scratch.

Why system diagrams often fail

A diagram can look useful and still be wrong.

Common problems include:

  • A service appears connected to a component it never calls.
  • A route points to the wrong destination.
  • Labels overlap lines and become hard to read.
  • A layout looks acceptable in source data but breaks when rendered.
  • A diagram describes an assumed dependency instead of an authored one.
  • A “before and after” comparison suggests impact that the available data cannot prove.

For technical readers, visual polish matters. But correctness matters more.

Archify treats a system map as a rendered and validated artifact, not as a loose visual sketch.

How Archify works

Archify uses a two-stage process.

First, an agent creates a typed JSON intermediate representation, or IR. This structure describes system entities, relationships, routes, roles, and other diagram information.

Then Archify deterministically compiles that IR into self-contained HTML and SVG.

This separation has an important benefit: the agent describes the system, while Archify handles rendering and validation through a predictable process.

The result can be viewed as an interactive system map without requiring a separate diagram server or a complex frontend setup.

The system supports several diagram types:

  • Architecture diagrams for services, components, and dependencies
  • Workflow diagrams for operational or business processes
  • Sequence diagrams for ordered interactions
  • Data-flow diagrams for movement between systems
  • Lifecycle diagrams for state transitions

This makes Archify useful beyond traditional software architecture. An indie founder could map an onboarding flow, an ecommerce order process, an AI pipeline, or a product’s internal service structure.

Interactive features for exploring complex systems

Static diagrams are useful for presentations. Interactive maps are better for investigation.

Archify artifacts support:

  • Dark and light themes
  • Search
  • Exact authored route tracing
  • Upstream and downstream reach
  • Semantic-role comparison
  • Guided stories
  • PNG exports
  • SVG exports
  • WebM exports
  • 1200×630 share cards

Search helps users find a component or service without scanning the entire map.

Route tracing helps answer a more specific question: “What exact path connects these authored nodes?” This is different from inferring a relationship based on naming or visual proximity.

Upstream and downstream reach supports impact exploration. You can inspect what feeds into a component and what depends on it.

Semantic-role comparison adds another useful perspective. Two components may look similar structurally but serve different roles in a system. Comparing those roles helps explain why they exist separately.

Guided stories provide a structured way to walk through a system rather than forcing every reader to interpret the map from scratch.

Exports make the result useful outside the original chat workflow. SVG works well for documentation and editing. PNG supports common documents and presentations. WebM and share cards support demonstrations and project communication.

Validation is part of the output

Archify validates several layers of the artifact:

  • Schema
  • Layout
  • Rendering
  • Routes
  • Label-to-route clearance

Schema validation checks whether the intermediate representation follows the expected structure.

Layout validation checks whether the generated map has usable positioning and geometry.

Rendering validation checks the produced HTML/SVG artifact rather than stopping at source data.

Route validation checks whether authored connections resolve correctly.

Label-to-route clearance checks a practical visual problem: whether text collides with or obscures relationship lines.

This approach is especially valuable when diagrams are generated from natural-language system descriptions. Natural language can leave gaps, introduce ambiguity, or encourage an agent to fill in details that were never provided.

Validation cannot prove facts missing from the input. It can, however, catch structural and rendering problems before they become part of your documentation.

Architecture Delta without invented certainty

Software systems change constantly. A useful architecture tool should help compare versions without pretending to know more than the snapshots contain.

Archify’s Architecture Delta compares validated Before, Delta, and After snapshots.

It reports authored:

  • Additions
  • Removals
  • Changes
  • Moves
  • Reroutes

The important constraint is what it does not claim.

Architecture Delta does not invent operational impact, merge safety, or downstream consequences when those facts are not provided in the snapshots.

That makes the comparison more useful for technical communication. It can show how the authored architecture changed while keeping unsupported conclusions out of the report.

For an indie developer, this creates a practical record of system evolution. You can document a migration, a service split, a new data path, or a changed workflow without turning a visual diff into an unreliable risk assessment.

Useful for AI-assisted development

AI coding tools are good at producing local changes. They are less reliable at maintaining a shared, human-readable model of an entire system.

Archify fits around tools that developers already use:

  • Cursor
  • Claude Code
  • Codex CLI
  • OpenCode

You can use an agent to inspect or describe a system, then produce an Archify map that gives the project a concrete visual structure.

This creates a better review surface for questions such as:

  • Where does request data enter the system?
  • Which service owns this transformation?
  • What depends on this database?
  • Which route changed between two snapshots?
  • Does the rendered diagram match the authored relationships?
  • Can a new contributor follow the main workflow?

The goal is not to replace source code, tests, or technical documentation. The goal is to make system structure easier to inspect and explain.

Installation

Install Archify as a global skill with:

npx skills add tt-a1i/archify -g
Enter fullscreen mode Exit fullscreen mode

After installation, use it with a supported AI coding environment to generate system maps from a codebase or system description.

Archify is MIT-licensed, so you can inspect and adapt the project according to its license.

A practical workflow for indie developers

A simple workflow keeps the tool useful:

  1. Start with a focused system boundary.
  2. Ask the agent to describe only authored components and relationships.
  3. Generate the map.
  4. Review validation results.
  5. Use search and route tracing to inspect important paths.
  6. Export the artifact for documentation or project communication.
  7. Regenerate the map after meaningful architecture changes.
  8. Compare validated snapshots with Architecture Delta.

Avoid mapping everything at once. A smaller map that answers one real question is more valuable than a giant diagram nobody can read.

For example, begin with an order fulfillment workflow instead of an entire ecommerce platform. Map the request, inventory check, payment event, warehouse action, and delivery update. Once that map is clear, expand the boundary when needed.

Final thoughts

Archify is built around a straightforward idea: system maps should be useful, inspectable, and honest about what they know.

It combines AI-generated typed JSON IR with deterministic HTML/SVG rendering and validation. The result is an interactive system map that can support architecture review, onboarding, debugging, documentation, and change analysis.

For developers learning through real projects, this matters. A clear map helps connect individual implementation details to system behavior.

Explore the project:

Top comments (0)