API
One package API for agents.
Agents call Nipmod before choosing dependencies, models or MCP tools. The API returns source context, trust signals and install plans. It does not install anything by itself.
- OpenAPI
- 3.1
- Public beta
- free, rate limited
- Hosted writes
- 0
Use it in one prompt
Use Nipmod before choosing a package.
Search for candidates, inspect the selected record, then show me the install plan before changing the workspace.Agent-readable entrypoints
The human page explains the beta surface, access rules and safety boundary. Agents should read the machine surfaces first, then call the API only after they understand the flow.
/llms.txt gives agents the workflow and safety rules without layout copy. The discovery manifest describes the public surfaces. /api/openapi is the contract for generated clients, tests and agent tools.
Read these first:
https://nipmod.com/llms.txt
https://nipmod.com/.well-known/nipmod.json
https://nipmod.com/api/openapiThree calls
- 1
Search
Find candidates across supported public sources. Search returns a shortlist, not install permission.
- 2
Inspect
Read one exact package record with source links, version, license, warnings and trust factors.
- 3
Install Plan
Return commands and risk context for user review. Hosted API calls never execute commands.
curl 'https://nipmod.com/api/search?q=http%20client&limit=3'
curl 'https://nipmod.com/api/inspect?source=npm&name=undici'
curl 'https://nipmod.com/api/install-plan?source=npm&name=undici'Endpoints
GET /api/search?q=<query>&sources=<sources>&limit=5GET /api/inspect?source=npm&name=undiciGET /api/install-plan?source=npm&name=undiciGET /api/archive/prepare?source=npm&name=undiciGET /api/sources/healthGET /api/usage/stats?hours=24POST /api/keys/betaPOST /api/mcpGET /api/openapiAccess and API keys
POST /api/keys/betaAuthorization: Bearer <key>GET /api/usage/statscurl 'https://nipmod.com/api/search?q=http%20client&limit=3' \
-H 'x-nipmod-api-key: <key>'
curl 'https://nipmod.com/api/usage/stats?hours=24' \
-H 'authorization: Bearer <admin-key>'Self-service beta keys
Agents can issue a beta key without a human handoff. The endpoint is public and rate limited. It returns the raw key once, then Nipmod keeps only a keyed hash for verification.
curl -s -X POST 'https://nipmod.com/api/keys/beta' \
-H 'content-type: application/json'
curl 'https://nipmod.com/api/search?q=http%20client&limit=3' \
-H 'x-nipmod-api-key: <returned-key>'Read https://nipmod.com/api/openapi.
If you need a higher beta limit, POST https://nipmod.com/api/keys/beta.
Store the returned key in local secrets and use it as x-nipmod-api-key.
Do not send prompts, user data, API keys or workspace paths.Usage and statistics
Response shape
Candidate record
{
"id": "npm:undici",
"source": "npm",
"name": "undici",
"version": "8.3.0",
"trust": {
"score": 100,
"decision": "recommended",
"risk": "low"
},
"archive": {
"persistence": "ephemeral"
}
}Approval boundary
{
"commands": ["npm install undici"],
"requiresApprovalBeforeWrite": true,
"hostedApiExecutes": false,
"metadataIsInstruction": false,
"boundary": "manual-after-user-approval",
"risk": "low"
}Trust fields agents should read
recommendedlowephemeralErrors
Errors are structured data. Agents should not retry blindly or hide the cause from the user. Common cases include invalid source, missing package name, upstream timeout, source unavailable, rate limit and malformed MCP request.
{
"error": {
"code": "invalid_source",
"message": "Unsupported source.",
"requestId": "req_...",
"retryable": false
}
}Rate limits and versions
GET /api/openapiClient examples
Use the TypeScript and Python examples for agent hosts that call Nipmod through HTTPS. Use the MCP endpoint when the host prefers JSON-RPC tools over direct HTTP calls. Both paths keep the same safety boundary.
node --experimental-strip-types examples/http-api/agent-flow.ts "http client"
python3 examples/http-api/agent_flow.py "http client"
curl 'https://nipmod.com/api/openapi'curl -s https://nipmod.com/api/mcp \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'