Architecture diagrams for open source projects.
Most first-time contributors give up before opening a pull request, and a surprising share of that is not knowing where anything is.
The situation
A maintainer knows the codebase completely and cannot see it as a newcomer does. Contributing guides explain how to run the tests and the code of conduct; they rarely explain the shape of the system, because to the person writing them the shape is obvious. The result is issues tagged good-first-issue that nobody picks up.
One diagram in the README
An architecture diagram near the top of the README does more for contribution rates than another paragraph of setup instructions. It lets someone decide whether their change is a two-file change or a redesign before they invest an evening finding out.
Regenerate on release
Contributors will not update the diagram and should not have to. Regenerating at release time is a small maintainer task that keeps it honest, which matters because a wrong architecture diagram is worse than none for someone with no way to check it.
Free for this
The CLI is free and open source, so a maintainer can generate diagrams without a subscription. The desktop app costs $3 a month and is the nicer experience; it is not required to produce the picture for your README.
For the README
Questions
Related
- Onboarding Engineers to a CodebaseThe first week is spent building a mental model that somebody already has. A diagram transfers it in an afternoon.
- Documenting Legacy CodeIncluding the newest kind of legacy code: what a coding agent wrote for you over several sessions that nobody has looked at as a whole.
- Architecture ReviewMost of the effort in an architecture review goes into producing the diagrams, and most of those diagrams describe the system as remembered rather than as built.
- System Design Interview PreparationThe diagram is the easy part. Interviews are decided by the tradeoffs you can defend when the interviewer pushes.