Architecture from your GitHub repos, kept current.

Install Slatebox on GitHub and two recipes keep your architecture on live slates: the code, from the whole system down to each part, with a slate and a comment on every pull request; and the infrastructure, from your Terraform, Kubernetes and deploy workflows, checked against your clouds for drift.

Free on Slatebox Cloud and self-host. You see a preview before you turn it on, and each run is one undo.

Two recipes

Code and infrastructure, each on its own slates.

How it works

Install once. Pick what it keeps.

  1. Install Slatebox on GitHub

    In a project, choose Recipes, Add a recipe, then a Living architecture recipe, and Install Slatebox on GitHub. Pick the repositories: up to 10 per recipe.

  2. Pick what it keeps

    The code recipe asks about two switches, Comment on pull requests and Keep Mermaid files in the repository in step, both on to start. The infrastructure recipe asks which clouds to check against, if any.

  3. Keep the first run

    Preview the first run, Turn on, then Keep all. From then on every push updates the slates.

  4. Allow what goes back to GitHub

    A pull request comment or a check needs a permission you grant under Changes outside Slatebox. The Mermaid pull request is opened only on the slatebox/architecture branch, and a person merges it.

Step by step, with a sample of the Mermaid it writes: How to map your own repo.

No account needed

The architecture GitHub Action.

Add one workflow. Each pull request gets one comment with a Mermaid diagram of what it changes: services, data stores, queues, ways in and the connections between them. When nothing in the architecture changes, it stays quiet.

.github/workflows/architecture.yml
name: Architecture diff
on:
  pull_request:
    types: [opened, synchronize, reopened, ready_for_review]

permissions:
  contents: read
  pull-requests: write

jobs:
  diff:
    runs-on: ubuntu-latest
    steps:
      - uses: Slatebox/architecture-action@v1

Questions

Questions about Slatebox and GitHub.

Can Slatebox make an architecture diagram from a GitHub repository?

Yes. Living architecture: code reads your repositories and keeps linked slates current on every push: System context, Containers, each container’s Components, Data and the API surface, with a board of what changed.

Can it comment a diagram on pull requests?

Yes. With Comment on pull requests on, each pull request with 3 or more changed files gets a slate of the parts it changes and, with your permission, one diagram comment, edited in place on each push.

Can it keep Mermaid diagrams in my repo?

Yes. With Keep Mermaid files in the repository in step on, the views go to docs/architecture/c4/ with SPEC.md, in one pull request from the slatebox/architecture branch. It never writes to your default branch.

Can it map Terraform and Kubernetes from GitHub?

Yes. Living architecture: infrastructure reads Terraform, Kubernetes, Helm, docker-compose, GitHub Actions deploy workflows and Dockerfiles, and marks drift against DigitalOcean, OVHcloud, Vultr, Hetzner Cloud, Linode or Scaleway.

Is there a way without a Slatebox account?

Yes. The free, MIT-licensed architecture GitHub Action posts a Mermaid diagram of what each pull request changes, from a workflow, with an optional review check. No checkout step, and it never runs your code.

What can Slatebox read and write on GitHub?

The recipes read repository contents and metadata, and pull requests for the code recipe. They write only what you allow: one comment per pull request, a neutral check, and the Mermaid pull request on its own branch.

Does it work on a self-hosted Slatebox?

Yes. An admin sets up the server’s own GitHub App once, in the admin area under Integration apps. Everything else works the same.

GitHub is a trademark of its owner, named here only to say Slatebox works with it. Slatebox is not affiliated with or endorsed by GitHub.

What it costs.

Free for everyone
Both recipes, every slate, pull request comments, the Mermaid pull request, the Drift board, webhooks and the GitHub Action, on Slatebox Cloud and on your own server. Describing parts with the agent starts on your free agent allowance.
Slatebox Pro
Past the free allowance, describing the parts of your code with the agent: included with Slatebox Pro, or paid from a balance. Your own key works too. Without either, parts are named by folder.
See pricing

Put your repos on a map that keeps up.

Install Slatebox on GitHub, pick your repositories, and keep the first run when it looks right.