Package Publishing Blog

This blog is where the checklists on the rest of the site get argued with. The how-to pages tell you the steps for one publishing task; the posts here are opinions about the decisions behind those steps, such as when a change counts as breaking, how much a README should say, or who should hold the keys to the registry.

What you will find here

Each post takes one narrow question that package authors run into and works through it in a personal, editorial voice. They are written for developers who publish to npm, PyPI, crates.io or a Go module proxy, and for teams that maintain internal libraries used by other teams. Posts favour concrete config snippets over abstract advice, and when a fact depends on a registry's current policy, they name the official documentation instead of paraphrasing a rule that might change.

A few themes come up again and again:

Suggested starting points

If you are about to publish your first package, start with the post on what 0.x versions actually promise, then read the one on designing function signatures. If you maintain something other people already depend on, the posts on snapshotting the public API and prerelease dist-tags are the most practical. Team leads looking after a shared internal package may prefer ten habits for internal libraries.

Who the posts are for

Most readers fall into one of three groups. Solo maintainers of a small open source package usually want quick answers to "is this a major or a minor?" and "do I need this dependency?". Maintainers of larger projects with several contributors care more about process: release roles, review checklists and how to make accidental changes visible. Platform and tooling teams inside companies care about internal libraries, where the consumers are colleagues but the same versioning discipline still applies. Posts try to say which of these groups a recommendation suits, because advice that is right for a weekend project can be wrong for a library with many dependants.

How the posts are written

Examples use made-up package names and are labelled as illustrative. Nothing here reports download counts, rankings or survey numbers, because those age quickly and are easy to get wrong. Where a post mentions a standard, it points to the primary source by name: the semver.org specification, the npm Docs, the Python Packaging User Guide, the Go Modules Reference or the SPDX License List.

The posts are opinions, so you will sometimes disagree with them, and that is fine. The goal is to make each decision deliberate rather than accidental. For definitions of the terms used throughout, see the glossary; for links to official packaging documentation, see the resources page. The full list of posts follows below.

Related pages