antipaywallSign in with GitHubSign in

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.

Just sharing itYou want the code out there and you may not answer questions. Do the "every project" steps, and say plainly in the README that you aren't taking contributions. That is a legitimate choice.
You want people to use itAdd the steps that make it easy to try and trust: an install command, versions and release notes, and a way to report problems.
You want people to help build itDo everything here. Contributors need small tasks, a clear picture of where it's going, and someone who answers.

Decide before you publish

Four questions that are cheap to answer now and expensive to answer after people depend on the project.

  1. 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.
  2. 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.
  3. Choose a license

    Every projectChecked by the skill

    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 LICENSE file, and name the same license in your package file (package.json, pyproject.toml, Cargo.toml).
  4. 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.

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.

  1. Find secrets in the files and the whole history

    Every projectChecked by the skill

    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 . (or trufflehog 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 .env out with .gitignore, and add a .env.example with placeholder values if the code reads them.
    gitleaks git . --verbose
  2. Take out private files and personal details

    Every projectChecked by the skill

    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.
  3. 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-repo before the first push.
    • Easiest of all: start fresh, with one first commit of the current files. Many projects open this way.
  4. Keep future mistakes out

    Every projectChecked by the skill

    You, or a contributor, will one day run git add . with an env file or build output lying around.

    • A .gitignore for 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.

Make it easy to try

Most visitors decide in seconds whether to keep reading, and people only help with things they have run.

  1. Say what it does and who it is for, first

    Every projectChecked by the skill

    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.
  2. Give one command to try it

    If you want usersChecked by the skill

    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.
  3. Be honest about how finished it is

    Every projectChecked by the skill

    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.
  4. Number your versions and write release notes

    If you want usersChecked by the skill

    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.md or in GitHub Releases.

Make it easy to help

A visitor becomes a contributor when there is a small, clear task and someone answers them.

  1. Write a short CONTRIBUTING file

    If you want contributorsChecked by the skill

    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.
  2. Open a few good first issues

    If you want contributorsChecked by the skill

    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 issue and the bigger ones help wanted.
  3. 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.
  4. Add issue templates and labels

    If you want contributorsChecked by the skill

    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.
  5. Say where questions go

    If you want usersChecked by the skill

    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.
  6. Add an AGENTS.md

    If you want contributorsChecked by the skill

    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.md at the root: how to install, run the tests, and the conventions to follow.

Protect it and the people using it

A few settings that take minutes and save you from the problems public projects attract.

  1. Give people a private way to report security problems

    If you want usersChecked by the skill

    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.md that points to it.
  2. Keep dependencies updated automatically

    If you want usersChecked by the skill

    Most security problems in projects come from old dependencies.

    • Turn on Dependabot alerts and add a .github/dependabot.yml (or use Renovate).
  3. Run the tests on every pull request

    If you want contributorsChecked by the skill

    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.
  4. Decide on a code of conduct

    If you want contributorsChecked by the skill

    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.
  5. Make sure you are not the only admin

    If you want contributors

    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.

Share it

The first users usually come from people who already know you. You don't need a campaign.

  1. Fill in the description and topics

    Every projectChecked by the skill

    They're what GitHub search and every other site show about your project.

    • A one-line description, a homepage link if you have one, and three to six topics people would actually search for.
  2. Write one honest launch description

    If you want usersChecked by the skill

    Written once, it becomes the post, the newsletter blurb and the directory listing, and it stays consistent.

    • What it does, who it's for, why you made it, how finished it is, and what help you want. Three short paragraphs, no hype.
    • Post it where your people already are. A plain "I built this, here's what's rough" does better than marketing language.

The first month

Most guides stop at "announce it". This is where projects actually win or lose their first contributors.

  1. Answer everything quickly

    If you want 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.
  2. 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.
  3. Keep the good first issues topped up

    If you want contributors

    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.
  4. Close what you won't merge, kindly

    If you want contributors

    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.yml adds a sponsor button to the repo.
Citation
A CITATION.cff tells 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.

This guide is open source too. Spotted something wrong or missing? Open an issue.