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

SourceUse 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 chaptersHow 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.orgTrusted 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 policiesRust manifest fields, cargo publish, yanking, and what crates.io allows as names and metadata.

Specifications and PEPs

Licensing references

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

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.

Related pages