Get a package verified

Ask for a review to get the Verified badge.

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.json in zerodot-io/nodes.
  • An instance with ZERODOT_UNVERIFIED_NODES=false can 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.

  1. Make the source public, for example on GitHub.
  2. Tag the version in the source.
  3. Publish the version to npm.
  4. Run pnpm run registry. Copy the integrity value of the package from registry.json.
  5. Open an issue in zerodot-io/nodes. Add:
    • the package name
    • the version
    • the integrity value
    • the address of the source at that tag

Review steps

The team does these steps:

  1. Read the source at the tag. The team checks what the nodes send, to which hosts, and which dependencies the package has.
  2. Build the package from the source. The team checks that the files are the files on npm.
  3. Check that integrity is the checksum that npm has for the version.
  4. 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.

Change this page on GitHub