Open Source Ready
Everything worth doing before your project goes public, and in the first month after. 29 steps, each with why it matters and exactly what to do. Free, and sized to what you actually want from it.
First, what do you want from it?
Not every project needs every step. Each step below says who it's for.
Decide before you publish
Four questions that are cheap to answer now and expensive to answer after people depend on the project.
Many employment contracts give your employer the rights to code you write, sometimes even on your own time and computer. Clients and co-founders can have a claim too.
- Read the intellectual property section of your contract, or ask your manager in writing.
- For a company project, get sign-off from whoever owns legal and security, and check no customer data or internal systems are referenced.
Renaming after launch breaks links, installs and search results. A name that clashes with a trademark or a well-known project can force a rename.
- Search GitHub, the package registry you will publish to (npm, PyPI, crates.io), and the WIPO Global Brand Database.
- If you want them, reserve the package name, the domain and social handles now.
Without a license, the law says nobody may use, copy or change your code, even though they can read it. Public is not the same as open source.
- MIT: anyone can do almost anything, including use it in paid products, as long as they keep your copyright notice. The most common choice.
- Apache-2.0: like MIT, plus an explicit patent grant. Common for company-backed projects.
- GPL-3.0: people who share a changed version must share their source too. AGPL-3.0 extends that to software run as a web service.
- Put the full, unedited license text in a
LICENSEfile, and name the same license in your package file (package.json,pyproject.toml,Cargo.toml).
Code you include, or depend on, comes with its own license. A GPL dependency limits how you can license your project; a dependency with no license at all may not be usable.
- List your dependencies' licenses (for Node:
npx license-checker --summary; for Python:pip-licenses). - Keep any copied third-party code in its own folder with its original license.
- Check images, fonts and datasets too: "non-commercial" licenses are common there.
- List your dependencies' licenses (for Node:
Make it safe to publish
Once a repo is public, every file in every past commit is public too. Deleting something in a new commit does not hide it.
Bots scan new public repos for keys within minutes. A key that was ever committed has to be treated as leaked.
- Scan everything, including history:
gitleaks git .(ortrufflehog git file://.). - For every real key you find: revoke it at the service and make a new one. That is the only real fix.
- Move secrets into environment variables, keep
.envout with.gitignore, and add a.env.examplewith placeholder values if the code reads them.
gitleaks git . --verbose
- Scan everything, including history:
Local databases, exports, logs, personal notes, customer data in test fixtures and internal URLs are easy to forget and hard to remove later.
- Look through the file list as a stranger would. Untrack what shouldn't be public (
git rm --cached) and ignore it. - Commit author emails are public. GitHub's no-reply address keeps yours private for future commits.
- Look through the file list as a stranger would. Untrack what shouldn't be public (
If something private is buried in old commits, removing the file today leaves it in the history.
- Harmless, or the key is revoked: keep the history.
- Something must go and nobody else has a copy: rewrite it with
git filter-repobefore the first push. - Easiest of all: start fresh, with one first commit of the current files. Many projects open this way.
You, or a contributor, will one day run
git add .with an env file or build output lying around.- A
.gitignorefor your language that covers.env*, build output, logs and editor files. - Turn on GitHub secret scanning and push protection (Settings, then Code security). Push protection blocks a commit that contains a known key format.
- A
Make it easy to try
Most visitors decide in seconds whether to keep reading, and people only help with things they have run.
The first two lines of the README decide whether a stranger stays. Badges, logos and tables of contents push them down.
- Name, then one or two plain sentences: what it does and who it's for.
- A screenshot or a short demo if it has anything to see. Never a mock-up of features that don't exist.
Every extra setup step loses people. Install steps that only work on your machine lose all of them.
- A code block someone can copy:
npx your-tool,pip install your-tool,docker run .... - Test it from a fresh clone in an empty folder before you publish.
- If people will use it a lot, publish it to the usual package registry so they can install it the normal way.
- A code block someone can copy:
Overstating it costs trust you won't get back. Saying what's rough sets expectations and shows people where they can help.
- A short status section: what works, what's rough, what isn't started.
- If you're not taking contributions or won't answer issues, say so here.
People need to know what changed and whether an update will break them. It also shows the project is alive.
- Tag releases with version numbers (
v0.1.0). Below 1.0 tells people things may still change. - Write what changed in each release, in a
CHANGELOG.mdor in GitHub Releases.
- Tag releases with version numbers (
Make it easy to help
A visitor becomes a contributor when there is a small, clear task and someone answers them.
It answers "how do I run this and send a change?" before anyone has to ask, and it's where you set expectations.
- How to run it locally and run the tests, how to pick an issue, what a good pull request looks like.
- How often you'll look at issues and pull requests. Only promise what you'll keep.
- Your policy on AI-written contributions: welcome, welcome if disclosed and tested, or not accepted. Low-effort generated pull requests are a real cost now; say what you want.
An empty issue list says there's nothing to do. A small, well-described task is how most people make their first contribution.
- Five to ten issues from your roadmap and TODOs. Each says what and why, where in the code to start, and how to know it's done.
- Label the easiest two to five
good first issueand the bigger oneshelp wanted.
A short roadmap lets people pick work that matters. A "won't do" list lets you say no to a pull request kindly, without arguing.
- A few lines in the README or a pinned issue: what's next, and what's out of scope.
Feedback arrives with the details you need instead of "it doesn't work".
- Two short templates in
.github/ISSUE_TEMPLATE/: one for bugs, one for ideas. - Four labels:
good first issue,help wanted,bug,idea.
- Two short templates in
Without one, questions land in the issue list and real bugs get lost.
- Turn on GitHub Discussions, or name another place, and point to it from the README.
More and more contributors work with a coding agent. A short file with the build, test and style commands helps them, and their agents, get it right first time.
- A plain
AGENTS.mdat the root: how to install, run the tests, and the conventions to follow.
- A plain
Protect it and the people using it
A few settings that take minutes and save you from the problems public projects attract.
Otherwise the first report may be a public issue that shows everyone how to attack your users.
- Turn on private vulnerability reporting (Settings, then Code security).
- Add a short
SECURITY.mdthat points to it.
Most security problems in projects come from old dependencies.
- Turn on Dependabot alerts and add a
.github/dependabot.yml(or use Renovate).
- Turn on Dependabot alerts and add a
You can't review every change by hand for long. Automated checks catch breakage before you merge it, and tell contributors whether their change works.
- A GitHub Actions workflow that installs and runs your tests (and a linter, if you use one).
- Protect the main branch so changes go through a pull request with passing checks.
It tells people how they'll be treated and what you'll do if someone behaves badly. One you won't enforce is worse than none.
- If you'll stand behind it, the Contributor Covenant is the common choice. It needs a contact for reports.
If you lose access or step away, nobody can merge, release or fix anything.
- Add a second person you trust as an admin, or move the repo to a GitHub organization.
The first month
Most guides stop at "announce it". This is where projects actually win or lose their first contributors.
Time to first response is the strongest signal newcomers read. A quick "thanks, I'll look this weekend" keeps them.
- Aim to answer every new issue and pull request within a few days, even if the real answer comes later.
Being thanked publicly is why many people come back for a second contribution.
- In the pull request, in the release notes, and when you post about the project.
Every good first issue that gets done is one less door for the next newcomer.
- Turn feedback and bug reports into new small issues as they arrive.
A pull request left open for months is a worse answer than a polite no.
- Thank them, explain why in a sentence (your "won't do" list helps), and close it.
Later, once it has momentum
- Governance
- Write down how decisions are made and who breaks ties, before a disagreement needs it.
- DCO or CLA
- A Developer Certificate of Origin (a sign-off on each commit) is the lighter option. Use a CLA only if you need to relicense or want a patent grant.
- License headers
- SPDX headers in each file and the REUSE tool make your licensing machine-readable.
- Funding
- A
FUNDING.ymladds a sponsor button to the repo. - Citation
- A
CITATION.cfftells researchers how to cite your work. - A maturity badge
- The OpenSSF Best Practices badge and OpenSSF Scorecard measure your project against a public bar.
The mistakes first launches make
- Publishing without a license, or with one only mentioned in the README.
- Leaving keys in old commits, and deleting the file instead of revoking the key.
- Calling it production-ready when it isn't.
- Install steps that only work on the author's machine.
- An empty issue list, so nobody knows where to start.
- Not answering the first issues and pull requests.
- Waiting for the perfect moment. Rough and honest beats polished and late.
Further reading
The guides this one builds on. Each is worth your time.
- Open Source GuidesGitHub's guides on starting a project, building community and finding users. The most widely used.
- Producing Open Source SoftwareKarl Fogel's book, free online. The best on what the front page must say and on opening a closed project.
- GitHub Docs: healthy contributionsThe exact files and settings GitHub recognizes.
- Starting an Open Source ProjectThe TODO Group and Linux Foundation guide. Strongest on legal review, governance and company projects.
- OpenSSF Best Practices criteriaA measurable bar for a mature project.
- REUSEMachine-readable licensing for every file.
This guide is open source too. Spotted something wrong or missing? Open an issue.