The Zerodot team can review a version of your community package. A reviewed version shows a Verified badge.
Verified does not make your package an official @zerodot/* package. You still publish under your own name, and you list the package in your own registry. See Publish a node package.
What verified means
- The team read the source of this version, built it, and compared it with the files on npm.
- The version is in
verified.jsonin zerodot-io/nodes. - An instance with
ZERODOT_UNVERIFIED_NODES=falsecan install only verified versions.
Verified makes bad code less likely. It does not remove the risk.
Ask for a review
Use the issue tracker of zerodot-io/nodes only to ask for a review.
- Make the source public, for example on GitHub.
- Tag the version in the source.
- Publish the version to npm.
- Run
pnpm run registry. Copy theintegrityvalue of the package fromregistry.json. - Open an issue in zerodot-io/nodes. Add:
- the package name
- the version
- the
integrityvalue - the address of the source at that tag
Review steps
The team does these steps:
- Read the source at the tag. The team checks what the nodes send, to which hosts, and which dependencies the package has.
- Build the package from the source. The team checks that the files are the files on npm.
- Check that
integrityis the checksum that npm has for the version. - Add the version to
verified.json.
Keep the package small, with few dependencies. The review is then faster.
The verified list
Each entry has name, version, integrity, and an optional source:
{
"packages": [
{
"name": "zerodot-example",
"version": "0.1.0",
"integrity": "sha512-...",
"source": "https://github.com/zerodot-io/create/tree/<commit>/packages/example"
}
]
}
Zerodot reads the list again after 10 minutes. A version matches only when the name, the version, and the integrity are all the same.
New versions
Each new version needs a new review. A new version has a new checksum, so it is not verified until the team adds it.
The team removes a version from the list if it turns out to be bad.