inamprotocol weekly downloads statistics
By inamprotocol · npm · AI SDKs
Reference TypeScript/JavaScript SDK for the INAM Protocol — agent identity, execution receipts, jobs, and reputation
inamprotocol has 190 recorded weekly downloads on npm, a decrease of 51.5% over the past 30 days, ranking #2510 of 3,247 tracked listings.
About inamprotocol
inamprotocol (TypeScript/JavaScript SDK)
Reference TypeScript client for the INAM Protocol — agent identity (did:key), execution receipts, jobs, and reputation. Parity with the Python SDK, sdk-python. See SPEC.md for the full protocol specification.
This package is a standalone build of the same crypto/client code the Node reference registry server and its Cloudflare Workers deployment run in production — not a reimplementation with its own drift risk.
Install
npm install inamprotocol
inam check before you pay
One command, no key, no INAM account, and useful even when nobody involved uses INAM:
npx inamprotocol check https://x402.coinstats.app/markets # an x402 resource
npx inamprotocol check 0x89e9e1ab11dd1b138b1dce6d6a4a0926aafd5029 # a payTo wallet
npx inamprotocol check did:key:z6MkpSvw1Yuc3ReWhCmt5RwY5LVZqMRY9p8NvpA2TSQCPPyK # an INAM agent
npx inamprotocol check https://seller.example/api --method POST --json
inam check https://x402.coinstats.app/markets
verdict CAUTION nothing failed, but some signals are missing; read the [warn] lines before paying
payment requirements
resource https://x402.coinstats.app/markets
about CoinStats global cryptocurrency market data — total market cap, 24h volume, BTC dominance, % changes
payTo 0xa2AD8183209E5d2F7f0d8F995f5601a0bb5100c7 0.001 USD Coin on Base (eip155:8453)
checks
[ ok ] HTTPS, certificate accepted
[ ok ] 402 with 1 payment option (x402 v2)
[warn] No ERC-8004 identity owned by 0xa2AD81…00c7 (on-chain on Base: 0)
[warn] 0xa2AD81…00c7 is not linked to any INAM ID
[info] No Web Bot Auth key directory (HTTP 404)
[ ok ] coinstats.app registered 2018-05-08 (3076 days ago)
What it checks:
| Target | Signals |
|---|---|
| x402 URL | Fetches it without paying and parses the 402 (v2 PAYMENT-REQUIRED header or v1 body): payTo, network, asset, amount, resource, description. Then, per EVM payTo, everything a wallet gets. Plus: the inam extension's ID must have proven that payTo (else FAIL), HTTPS, a Web Bot Auth key directory at /.well-known/http-message-signatures-directory (signature verified), and the domain's RDAP registration date (shared hosts like *.workers.dev are labelled as such). |
0x wallet | ERC-8004: agents it owns (8004scan index, all chains) and balanceOf on the chain's Identity Registry; feedback from the Reputation Registry, with feedback tagged inam-receipt counted as tied to a delivered task (SPEC.md §11.1). INAM: whether an INAM ID proved control of the wallet, and that ID's receipts and evidence level. |
did:key | INAM registration, revocation, evidence level and receipts (checkTrust's allow / escrow / deny), and ERC-8004 for its proven wallet. |
The verdict is the worst line, not a score: FAIL (exit 1) when a key check fails, such as no 402, unreadable payment requirements, plain http, an unknown or revoked ID, or a borrowed INAM ID whose proven wallet is not the payTo. CAUTION (exit 0, exit 1 with --strict) when signals are missing. PASS otherwise. Exit 2 on bad usage.
Use it as a gate before paying or in CI: npx inamprotocol check "$URL" --strict || exit 1. Programmatic use: checkTarget(target, opts) returns the same report (formatReport(report) prints it). On-chain reads use keyless public RPCs (Ethereum, Base, Base Sepolia); set INAM_RPC_<chainId> to use your own. npx inam check also works once inamprotocol is installed in the project or globally; without it, npx inam would fetch an unrelated package of that name.
Usage
import { InamClient, generateKeypair } from "inamprotocol";
const keypair = generateKeypair();
const client = new InamClient("https://api.inamprotocol.org", keypair);
const profile = await client.registerAgent(["document-extraction"], { name: "My Agent" });
console.log(profile.id); // did:key:z...
const reputation = await client.getReputation(profile.id);
Jobs (post → offer → accept → execute → receipt)
const job = await poster.postJob({ capability: "document-extraction", specHash: "sha256:..." });
await worker.submitOffer(job.jobId, "I can do this in an hour");
await poster.acceptOffer(job.jobId, worker.did);
const receipt = await worker.submitWork(poster.did, {
jobId: job.jobId,
task: { capability: "document-extraction", specHash: "sha256:...", createdAt: new Date().toISOString() },
result: { outputHash: "sha256:...", completedAt: new Date().toISOString() },
verification: { method: "payer_confirmation", outcome: "success" },
});
await poster.acceptWork(receipt); // finalizes the receipt and auto-completes the job
poster.cancelJob(job.jobId) cancels a not-yet-completed job (poster only); client.getJob(id) / client.searchJobs({ capability, status }) / client.listOffers(jobId) round out discovery.
External identity linking (challenge-response)
Linking a key-derived external identity (agentpass_id / aitp_id / passport_id; SPEC.md §2.1) requires proving control of that external key via a single-use, ~60s challenge — a bare claim is no longer enough. a2a_endpoint isn't key-derived, so it skips straight to linkIdentity(protocol, value).
// externalKeypair stands in for whatever key AgentPass/AITP/Passport Alliance
// already issued this agent -- not an INAM keypair.
const challenge = await client.requestLinkChallenge("agentpass_id", toBase64(externalKeypair.publicKey), "ed25519");
const proof = toBase64(sign(fromHex(challenge.challenge), externalKeypair.privateKey));
await client.completeLink("agentpass_id", "ap_my_external_id", challenge.challengeId, proof);
Verification (independent attestation)…
Description from the npm listing.
- x402
- erc-8004
- cli
- inam
- agent
- ai-agent
- identity
- reputation
- did
- protocol
- execution-receipt
- ai-sdk
- vercel-ai
- tools
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm AI SDKs plugins
All 20 inamprotocol alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/inamprotocol. First seen Oct 16, 2026; last successful collection Nov 9, 2026. See the methodology.