Official Documentation for Package Authors
Blog posts, including ours, go stale. Registry behaviour is defined by the registries and by a handful of specifications. When an article here and an official document disagree, believe the official document. This page lists the primary sources by name, grouped by ecosystem, with a note on what each is good for.
Registry and toolchain documentation
| Source | Use it for |
|---|---|
| npm Docs (docs.npmjs.com) | The meaning of every package.json field npm reads, publishing and unpublishing rules, scopes, dist-tags, provenance and access tokens. |
| Node.js documentation, "Modules: Packages" | How Node itself resolves exports, imports, type and conditional entry points. This is the reference when bundlers and Node disagree. |
| TypeScript Handbook, module resolution and declaration files chapters | How the compiler finds a package's types under each moduleResolution setting. |
| Python Packaging User Guide (packaging.python.org) | The maintained tutorial and the "specifications" section that collects core metadata, pyproject.toml and version-specifier rules. |
| PyPI help pages and docs.pypi.org | Trusted Publishing setup, project limits, yanking and account security. |
| Go Modules Reference (go.dev/ref/mod) | The exact semantics of go.mod, major version suffixes, retract, the module proxy and checksum database. |
| The Cargo Book and crates.io policies | Rust manifest fields, cargo publish, yanking, and what crates.io allows as names and metadata. |
Specifications and PEPs
- Semantic Versioning 2.0.0 at semver.org: short enough to read in full, and worth it before you argue about any edge case.
- PEP 440 (version identifiers), PEP 621 (project metadata in
pyproject.toml), PEP 517 (build backends) and PEP 592 (yanked releases), all on peps.python.org. Note that the Packaging User Guide's specifications page is the living version of several of these. - Keep a Changelog and Conventional Commits: two community conventions, not standards bodies, that many release tools assume.
Licensing references
- SPDX License List: the canonical short identifiers and the expression syntax used in
licensefields. - Open Source Initiative: maintains the Open Source Definition and the list of licences it has approved.
- choosealicense.com: a plain-language comparison of common licences, useful for a first decision but not legal advice.
- REUSE, a specification from the Free Software Foundation Europe, for marking every file in a repository with its licence and copyright.
If licence obligations carry real business risk for you, the sources above help you ask the right questions; a lawyer answers them.
Supply-chain security
- OpenSSF: home of several projects relevant to maintainers, including the Scorecard checks and the SLSA framework.
- SLSA (slsa.dev): build-integrity levels and the provenance format many tools emit.
- Sigstore: keyless signing and the public transparency log that npm provenance and PyPI attestations build on.
- OSV and the GitHub Advisory Database: open vulnerability data you can query for your own dependencies.
- Contributor Covenant: a widely adopted code of conduct template for project repositories.
How to use this list
Bookmark the one or two rows that match your ecosystem rather than all of them. Before each major release, re-read the section of the registry docs that covers anything you are changing in your manifest; defaults move between tool versions. For the order in which to tackle a first release, follow the first release reading path, and for terms you meet in these documents, the glossary has short definitions.