BlogPricing
Back to insights
TutorialNovember 24, 2026

Architecture diagrams that stay in sync with your repo

A practical workflow for architecture diagrams that do not decay after the first sprint. It uses GitHub nodes, automatic webhook sync on paid plans, manual sync on Free, and project docs without pretending the diagram infers your architecture.

Author
VyersFounder of Raltey

Architecture diagrams that stay in sync with your repo

An architecture diagram stays useful when three things stay close together: the services you actually run, the repository structure your team navigates, and the decisions written down next to the diagram. Raltey gives you a structured canvas for the diagram, GitHub nodes that link back to the source, and a docs editor in the same project. On Starter and up, the repository file tree reconciles automatically when it changes. On Free, use Sync Now. The architecture still depends on your review.

What "in sync" should mean

A diagram cannot be a second copy of your codebase. It should answer the questions code is bad at answering:

  • Which services exist, and what talks to what.
  • Where the async boundaries are.
  • Which external systems are in the request path.
  • Who owns each piece.
  • Which parts are planned, not shipped.

Those answers change when architecture changes, not on every commit. On Starter and up, GitHub sync keeps the file tree current after a push to the default branch. On Free, Sync Now does the refresh. Neither path infers your service boundaries. That is why a review step still matters. You get current source data plus a deliberate decision about what the diagram means.

Why architecture diagrams drift

Most diagrams decay for boring reasons:

  1. The diagram lives in a different tool from the code.
  2. Nobody owns the update.
  3. The only copy is a screenshot in a document.
  4. The diagram tries to show every file, so it becomes noise.

A repo-linked canvas fixes the first problem. The docs editor fixes the second. Structured exports and named versions make the third easier to manage. Scope fixes the fourth.

A workflow that survives a sprint

1. Import only the parts that matter

Connect GitHub and add the repository or folder that maps to the system boundary. You do not need every file on the canvas. Start with the directories a new engineer would need to understand.

2. Group by service or boundary

Use the flow chart canvas to place services, queues, databases, and external APIs. Group related nodes so the diagram reads as a system, not a file tree.

3. Add the contracts

Put the important edges on the canvas with labels. HTTP, gRPC, queue, webhook, and cron are more useful than an unlabeled arrow. If an edge is unknown, write unknown in the docs and assign an owner.

4. Write the decisions in project docs

Open the docs panel and record the things the diagram cannot show:

  • Which team owns the service.
  • The API contract or event schema.
  • Known single points of failure.
  • What is planned but not built.

Because the docs live in the same project, they move with the diagram when the project is shared or versioned.

5. Let sync handle structural changes

On Starter and up, Raltey's GitHub integration reconciles the repository file tree automatically after a push to the default branch or a repository event, once the webhook is registered. Linear works the same way for issue create, update, and remove events. On Free, use Sync Now for GitHub. Run Sync Now when you want a guaranteed refresh before a review, or for Notion, which has no webhook sync.

Do not expect sync to redraw the architecture. It updates the imported nodes. The service boundaries, ownership notes, and contracts are still your call.

6. Save a version before the next big change

Paid plans include named versions and restore. Save one before a migration or reorg. If the new layout does not work, restore the previous canvas. Raltey saves a backup before a restore, so the action is reversible.

What Raltey does and does not do

TaskRaltey today
Draw a labelled architecture diagramYes, on the flow chart canvas
Import a GitHub repo tree as nodesYes
Link a node back to a GitHub fileYes
Reconcile GitHub nodes after a push to the default branchYes, automatic on Starter and up once the webhook is registered
Infer architecture from codeNo
Sync GitHub nodes on demandYes, Sync Now on every plan
Sync Notion nodesYes, manual only
Keep architecture notes next to the diagramYes, per-project docs
Save and restore named versionsYes, on paid plans
Export the diagram as an image or PDFYes, PNG on all plans, SVG on Starter+, PDF on Pro+

What to put on the canvas

A useful architecture canvas usually has five layers:

  1. Entry points: web app, API gateway, CLI, webhook receiver.
  2. Services: the deployable units your team owns.
  3. Data: databases, object storage, caches, search indexes.
  4. Async: queues, topics, workers, schedulers.
  5. External: payment, email, auth, analytics, and other third parties.

If a box does not fit one of those layers, ask whether it belongs on this diagram at all. The docs can hold the detail.

A quick review checklist

  • Every service has an owner in the docs.
  • Every external dependency has a failure note.
  • Every async edge says what happens on retry.
  • Planned work is labeled as planned.
  • The diagram has a named version from before the last large change.
  • The GitHub nodes point at the right repositories.

The honest limit

Raltey is not a code intelligence tool. It does not parse your repository and infer the architecture. GitHub sync mirrors the file tree as nodes. On Starter and up it keeps those nodes current after a push; on Free you run Sync Now. It gives you a structured place to draw the architecture, link the source, and write the decisions down. The accuracy of the architecture still depends on a person reviewing the diagram.

That is also the advantage. A diagram that requires a review is a diagram someone can trust.

FAQ

Does Raltey update architecture diagrams automatically from GitHub?

On Starter and up, the repository file tree is reconciled automatically after a push to the default branch or a repository event, once the webhook is registered. Free keeps the GitHub integration with manual Sync Now. Raltey does not parse the code to infer architecture, and it does not redraw your service boundaries.

A GitHub node links back to the repository, folder, or file it came from. The node sits on the canvas and the deep link opens the source on GitHub.

Can I keep the diagram next to the architecture notes?

Yes. Every Raltey project has a rich-text documentation editor next to the canvas, and a project can hold multiple documents.

Is version history available on the Free plan?

No. Named versions and restore start on paid plans. Starter keeps 90 days of history, and Pro and Team keep it unlimited.

Ready to map your system? Open Raltey and start with one repository. You can also browse the architecture diagram guide or the three-tier SaaS example.