How to write a good README for your open-source project
The README is often the first and only thing people read before deciding whether to use your project. A clear one saves you countless repeated questions.
Essential sections
- Project name and one-sentence description: what it is and who it is for
- Why it exists: the problem it solves, and how it differs from alternatives
- Installation: exact steps, including prerequisites
- Quick start: the shortest possible working example
- Usage: common tasks and configuration options
- Contributing: how to report bugs, propose features and submit changes (or link to CONTRIBUTING)
- License: which license applies
Helpful extras
- A screenshot or short demo for visual tools
- Status badges for build and test status
- A link to full documentation if the project is large
- Supported platforms and versions
- A short FAQ for recurring questions
- Project status: actively maintained, seeking maintainers, or archived
Writing tips
- Put the most important information first
- Test your installation steps on a clean machine
- Use code blocks that can be copied and run directly
- Keep it updated as the project changes
What is the best README you have come across, and what made it great? What is the first thing you look for when evaluating a new library?
Comments · 3
A screenshot or short demo GIF near the top goes a long way. People decide in seconds whether a project looks relevant.
Think of the README as your landing page. Who is this for, what problem does it solve, and how do I try it in a minute?
How much should go in the README versus separate docs? I'd guess a quick start there and detail elsewhere, but where's the line?