Productivity

How to Write a README That People Actually Read

What a good README contains and in what order: a one-line summary, a quick start someone can copy, screenshots, configuration, contributing and licence. With a template.

The Debuggers · Updated · 8 min read

A README is the first thing anyone sees when they open your repository, and for most visitors it is the only documentation they will read. In the first few seconds they want to know three things: what this is, whether it solves their problem, and how to try it. A README that answers those in order gets used. One that opens with a wall of installation flags, or with nothing at all, gets closed.

This guide covers what to put in a README, in the order readers need it, with a template at the end.

1. Name and one-line summary

Start with the project name and one sentence that says what it does and for whom. Be concrete: name the input, the output or the problem.

  • Vague: "A modern, flexible library for dates."
  • Clear: "Parse, validate, format and compare dates in JavaScript, with time zone support and no dependencies."

If the project has a logo or a short demo GIF, put it here. A screenshot of the project working tells a visitor more in a second than a paragraph can.

2. Why it exists (briefly)

One short paragraph on the problem it solves and what makes it different from the obvious alternative. This is where you can say "unlike X, it does Y". Skip it for internal projects where everyone already knows why.

3. Quick start

This is the most important section. Give the smallest set of commands that gets someone from nothing to a working result, ready to copy:

## Quick start

```bash
git clone https://github.com/you/project.git
cd project
cp .env.example .env
npm install
npm run dev
```

Open http://localhost:3000. Sign in with the demo account listed in `.env.example`.

State the prerequisites first, with versions: "Node.js 20 or later" is more useful than "Node.js". Then test the steps yourself on a clean machine or a fresh container. Most broken READMEs are broken here, because the author's own machine already had something installed.

4. Usage

Show the two or three things people do most, with real examples and their output. For a library, that is code; for a command line tool, the commands and what they print; for an app, screenshots of the main screens.

5. Configuration

List environment variables and options in a table: name, what it does, whether it is required, and the default. Keep secrets out of the README and out of .env.example; put placeholder values there instead.

VariableRequiredDefaultPurpose
DATABASE_URLYesPostgreSQL connection string
PORTNo3000Port the server listens on
LOG_LEVELNoinfodebug, info, warn or error

6. Contributing, support and licence

Tell people how to report a bug, where to ask questions, and how to run the tests before opening a pull request. Larger projects move the detail into CONTRIBUTING.md and link to it.

End with the licence. Name it in the README and include the full text in a LICENSE file. Without one, the code is not open source in any legal sense, however public the repository is.

Formatting that helps

  • Headings let readers jump straight to the section they need. GitHub builds a table of contents from them automatically, available from the menu at the top of the file.
  • Code blocks with a language (```bash, ```js) get syntax highlighting and a copy button on GitHub.
  • Relative links such as [contributing guide](CONTRIBUTING.md) keep working in forks and on other branches.
  • Alt text on images, written as ![Dashboard showing monthly revenue](docs/dashboard.png), helps screen reader users and shows when the image fails to load.

Common problems

  • Out-of-date instructions. Treat the README as code: change it in the same pull request that changes the setup.
  • Assumed knowledge. Spell out the steps you no longer notice, such as copying .env.example or running migrations.
  • Marketing language. Words like "blazing fast" or "revolutionary" are skipped by developers. A benchmark or a short comparison is believed.
  • Everything in one file. A README that tries to be the full manual is hard to scan. Link to fuller documentation instead.

A template to start from

# Project name

One sentence: what it does and who it is for.

![Screenshot of the main screen](docs/screenshot.png)

## Features

- The most useful thing it does
- The second most useful thing
- What makes it different

## Quick start

Requires Node.js 20 or later.

    npm install
    npm run dev

## Usage

A short, real example and its output.

## Configuration

| Variable | Required | Default | Purpose |
|---|---|---|---|

## Contributing

How to report bugs and run the tests.

## Licence

MIT. See LICENSE.

Our README Generator builds a first version with these sections from a short form, which you can then edit with your own screenshots and examples. To check that your summary and descriptions stay short, the Word Counter shows words and reading time as you type.

Frequently Asked Questions

How long should a README be?

Long enough to get someone from opening the repository to running the project, and no longer. For most projects that is one or two screens. Move detailed reference material into a docs folder or a documentation site and link to it.

Should a README include badges?

A few useful ones, such as build status, the latest version and the licence, tell a visitor the project is maintained. A long row of badges pushes the description down and is better left out.

What licence should I choose?

MIT is the most common permissive licence. Apache 2.0 is also permissive and adds an explicit patent grant. GPL 3.0 requires anyone who distributes a modified version to share its source. choosealicense.com compares them in plain English. Without a licence, nobody else has the right to use your code.

Is README.md case sensitive?

GitHub, GitLab and Bitbucket recognise README in any case with a .md extension in the root folder, and also in a docs or .github folder on GitHub. README.md in the root is the convention people expect.

Want help with this in a real project?

Our team builds web and mobile software, from planning and design to launch and support.