Access the npm public registry via the npm API. Search packages, inspect metadata and versions, review download statistics, and check security advisories and registry health.
This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure npm API access yourself.
| Step 1: Install | Step 2: Pair Account | Step 3: Connect npm |
|---|---|---|
| :---: | :---: | :---: |
| !Install | !Pair | App-specific connection GIF coming soon |
| Run the install command in OpenClaw | Sign in and approve the device | Open the dashboard and connect npm |
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ OpenClaw │────▶│ ClawLink │────▶│ npm Registry │
│ (User Chat) │ │ (API Key) │ │ (npmjs.com) │
└─────────────────┘ └──────────────┘ └──────────────────┘
│ │ │
│ 1. Install Plugin │ │
│ 2. Pair Device │ │
│ 3. Connect npm │ │
│ │ 4. Secure Proxy │
│ │ 5. API Requests │
│ │ │
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ SKILL │ │ Dashboard│ │ npm │
│ File │ │ Auth │ │ Registry │
└──────────┘ └──────────┘ └──────────┘
Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.
openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for npm again."
# Search for packages
clawlink_call_tool --tool "npm_search_packages" --params '{"query": "express", "size": 10}'
# Get package metadata
clawlink_call_tool --tool "npm_get_package" --params '{"package_name": "express"}'
# Get download statistics
clawlink_call_tool --tool "npm_get_download_stats" --params '{"package_name": "lodash", "period": "last-month"}'
All npm tool calls are authenticated automatically by ClawLink using the user's npm account.
No API key is required in chat. ClawLink handles authentication securely and injects it into every npm API request on the user's behalf.
clawlink_begin_pairing if it is not configured yet.clawlink_list_integrations to verify the connection is active.clawlink_list_integrations
Response: Returns all connected integrations. Look for npm in the list.
clawlink_list_tools --integration npm
Response: Returns the live tool catalog for npm.
If npm tools are missing or the connection shows an error:
clawlink_list_integrations to verifyclawlink_list_tools --integration npmclawlink_list_integrations to confirm npm is connected.clawlink_list_tools --integration npm to see the live catalog.clawlink_search_tools with a short query and integration npm.┌─────────────────────────────────────────────────────────────┐
│ READ OPERATIONS (Safe) │
│ list → get → search → describe → call │
│ │
│ Example: Search packages → Read metadata → Show results │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ WRITE OPERATIONS (Require Confirmation) │
│ list → get → describe → preview → confirm → call │
│ │
│ Example: Describe tool → Preview changes → User approves │
│ → Execute update │
└─────────────────────────────────────────────────────────────┘
clawlink_describe_tool first.whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.clawlink_preview_tool first.clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.clawlink_call_tool --tool "npm_search_packages" \
--params '{
"query": "react framework",
"size": 20,
"quality": 0.8,
"popularity": 0.5
}'
clawlink_call_tool --tool "npm_get_package" \
--params '{
"package_name": "next",
"version": "latest"
}'
clawlink_call_tool --tool "npm_get_download_counts" \
--params '{
"package_name": "axios",
"start": "2024-01-01",
"end": "2024-01-31"
}'
clawlink_call_tool --tool "npm_get_advisories" \
--params '{
"package_name": "lodash"
}'
@org/package).| Status / Error | Meaning |
|---|---|
| ---------------- | --------- |
| Tool not found | The tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration npm. |
| Missing connection | npm is not connected. Direct the user to https://claw-link.dev/dashboard?add=npm. |
not_found | Package does not exist in the registry. Check the package name spelling. |
validation_error | Invalid parameter or missing required field. Review the tool schema with clawlink_describe_tool. |
| Rate limited | Too many requests. Wait and retry with exponential backoff. |
| Write rejected | User did not confirm a write action. Always confirm before executing writes. |
```bash
openclaw plugins list
```
/new as a standalone message to reload the catalog.```bash
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
```
/new again and retry.npm.clawlink_describe_tool to verify parameter names and types before calling.clawlink_preview_tool first.Powered by ClawLink — an integration hub for OpenClaw
共 2 个版本