Skip to content

Find and install a package

No account is needed to find or install a package. Point the command-line tool at the commons:

Terminal window
export COMMONS_URL=https://trial.opencodecommons.org

An agent does the same through the commons MCP server’s search and get tools, which return what these commands print, as JSON (set up an agent session has a configuration for a session that only searches and installs).

Describe what you need in plain words; package names and keywords match too:

Terminal window
commons search "<what you need, in plain words>"

Results come best first, each at its latest released version: packages published to the commons, and packages imported from npm or PyPI, which are labeled so. A version no other account has checked yet, a candidate, is not in the results. A version is found by the first search after its release, by its words; by meaning, a little later, once the commons has computed its vectors. The trial does not compare meanings yet: it matches the words of a query only, so use the words a package would use to describe itself. Each result gives its license, what it says it does, the account that published it and how that account signed in, and its evidence: its attestations, and how many other accounts checked it. Here, the first of eight results, and the lines that end the list:

8 packages match "parse ISO-8601 durations in TypeScript", best first:
@ada/iso-duration@1.0.1 MIT
Parse ISO-8601 duration strings into typed parts and total seconds.
account ada (signed in with Google, 2026-12-01); published 2026-12-01
- Parse an ISO-8601 duration string such as P3DT4H30M into years, months, weeks, days, hours, minutes and seconds
- Convert a parsed ISO-8601 duration into a total number of seconds
evidence: test-run pass, code-review pass; skill commons-verify; model anthropic/claude-opus-5-5 (declared); signed by ada/agent-a; checked by 1 other account
…
Next: commons get <name> shows how to install one. --json has every field, digests and key IDs included.
The publisher's attestations are self-reported. Accounts other than the publisher's say they repeated the checks: independent means a different account, not a proven different party, and each model named is declared, not proven.
This version was imported from the public npm registry. Its bytes are the ones npm served under this name and version. Nobody has attested to its tests or reviewed it.
  • --limit <n> asks for at most n results, from 1 to 50 (10 by default).
  • --attested-only leaves out imported packages.
  • --ecosystem npm or --ecosystem pypi keeps one ecosystem’s packages.

When nothing matches:

No package in the commons matches "zzqx nothing".

Ranking is by relevance, how well a package’s description, statements and names match the query, by meaning where the commons can compare meanings and by words otherwise, with a bounded boost for evidence: the package’s tier, its counted checks, and how many packages depend on it. --json gives each result’s relevance and evidence, each from 0 to 1, its downloads (the last 30 days’ count of its latest released version, or null where the commons counts none), and the response’s ranking: semantic, or full-text when only words were compared. On the trial, ranking is full-text and downloads is null.

Terminal window
commons get <package>

<package> is the npm name, @<namespace>/<name>, or an imported package’s own name, such as left-pad, optionally with @<version>; without one you get the latest released version. A Python package’s is pkg:pypi/<name> (Python packages). The record says which namespace the package is under, which account signed its attestations, what it says it does, its state, its head and open proposals, the checks of other accounts, and its type declarations, quoted with each line marked as the publisher’s own text:

@ada/iso-duration@1.0.1 pkg:npm/%40don/iso-duration
Parse ISO-8601 duration strings into typed parts and total seconds.
license MIT; tier attested; state released; published 2026-12-01T09:40:13.603Z by ada/agent-a
digest sha256:50fa3f622dbfc3f8581ca7856b62cf4201ddc0592fa1d3ff53a9dc195c38da1a; 2670 bytes
source sha256:5c5b8819b6e9f3f3fddea20a9295fdbc3c53852d499b0f1cce2a958dd1122548; 4180 bytes
versions 1.0.0, 1.0.1
Namespace: namespace ada (plain name, first come), owned by ada
Accounts:
ada (signed in with Google, 2026-12-01)
Capabilities:
- Parse an ISO-8601 duration string such as P3DT4H30M into years, months, weeks, days, hours, minutes and seconds
- Convert a parsed ISO-8601 duration into a total number of seconds
Attestations: test-run pass, code-review pass; skill commons-verify; model anthropic/claude-opus-5-5 (declared); signed by ada/agent-a
--json has every field, the skill's digest, key IDs and log times included.
Head: 1.0.1, the version a change to this package is proposed against.
Open proposals: none.
Independent checks, as the record states them (commons verify checks them against the log): vera pass, counted. 1 of the 1 needed count.

Then the type declarations, then how to use it:

To use it, in order:
1. Install: npm install @ada/iso-duration@1.0.1 --registry=https://trial.opencodecommons.org/
2. Verify after installing, before using it: commons verify @ada/iso-duration@1.0.1
3. Optional, if every later install in this project should come from the commons: add this line to .npmrc: registry=https://trial.opencodecommons.org/

Where the commons counts downloads, the record adds a line Downloads: <n> in the last 30 days, …, a count of requests answered, which is not a count of users; the trial counts none. --json prints the whole record as JSON.

A candidate, a version no other account has checked yet, has no install command: commons get says so in its place, and gives the two ways to go on, checking it or installing it on purpose by its tarball’s address.

The commons is an npm registry, which lists released versions only. Install a package with npm, naming the commons as the registry for that command, as commons get prints it:

Terminal window
npm install @<namespace>/<name>@<version> --registry=https://trial.opencodecommons.org/

So that every later install in the project goes to the commons too, add the registry to the project’s .npmrc:

Terminal window
echo 'registry=https://trial.opencodecommons.org/' >> .npmrc

A package published to the commons is named @<namespace>/<name>; an imported one keeps its upstream name. A package installed from another registry fails the last check of commons verify, which checks that everything installed in the project is the commons’.

An agent’s harness may ask you to approve the install command; approving it is expected.

npm’s --min-release-age and pnpm’s minimumReleaseAge refuse a version newer than the age they are given. They read the time the commons serves: for an imported version, the time upstream published it; for a version published to the commons, the time it entered the commons. So a package released recently is refused, by npm with ENOVERSIONS (or ETARGET when an older version matches) and by pnpm with ERR_PNPM_NO_MATURE_MATCHING_VERSION. Lower the setting for that install, or name an older version.

Run the second command commons get printed, before you use the package:

Terminal window
commons verify @<namespace>/<name>

Verify a package says what it checks and what a failure means.