npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@canopy-ai/create-canopy-agent

v0.1.1

Published

Pre-built Canopy agent starter agents for common use cases.

Readme

create-canopy-agent

Scaffold a pre-configured Canopy agent starter and provision the matching policy + agent in your Canopy org — in one guided command.

npx @canopy-ai/create-canopy-agent my-trading-bot

Already have an agent project? Use npx @canopy-ai/sdk connect instead — that CLI connects an existing project (writes credentials + auto-configures installed MCP clients). create-canopy-agent is specifically for scaffolding a new project from one of the starters below.

The CLI will:

  1. Ask which starter to scaffold (trading-defi, research, lead-gen, content-creator, treasury-billpay, travel).
  2. Ask the agent name and approval threshold (with sensible per-starter defaults).
  3. Authenticate. Pick one of:
    • Browser (recommended) — opens a consent page that previews the policy + agent that's about to be created. On Authorize, the server creates the policy + agent + grant with cleanup on failure and mints a revocable MCP token scoped to the new agent. The CLI never sees your org's primary API key.
    • Paste API key — paste an ak_live_… from dashboard/settings#api-keys. The CLI then calls /api/policies + /api/agents itself with that key.
    • --api-key <key> flag or CANOPY_API_KEY env var — non-interactive (CI / scripted). Same path as Paste, but no prompt.
  4. Scaffold the starter project locally, write .env with the appropriate Canopy creds (MCP token for the browser path, API key for the paste path) + CANOPY_AGENT_ID + ANTHROPIC_API_KEY.

The only key you paste manually is your Anthropic API key (sk-ant-…).

Audit trail. In the browser path, the consent grant (cli_grants row) is bound to the new agents row, so SELECT a.* FROM agents a JOIN cli_grants g ON g.agent_id = a.agent_id resolves cleanly to "agent created via this consent."

After scaffolding, if you also want Canopy available in your dev tools (Claude Code, Cursor, etc.) while you build, run npx @canopy-ai/sdk connect from the project root.

Available starters

| Starter | What it does | |---|---| | trading-defi-agent | Quote → validate → execute via price feeds + DEXes | | research-agent | Multi-source research; pays for gated data APIs | | lead-gen-agent | Enrich/verify B2B contacts via per-lead paid APIs | | content-creator-agent | Pay for stock assets + AI image/voice/video generation | | treasury-billpay-agent | Pay vendor invoices + recurring subs within budget | | travel-agent | Search flights/airport schedules; surface options before booking |

All starters are built on Claude Agent SDK with Canopy's hosted MCP server (https://mcp.trycanopy.ai/mcp). Zero Canopy code in the templates — the browser flow reaches Canopy via a revocable MCP token, while the API-key fallback uses your API key + agent id as auth headers.

Requirements

  • Node 18+
  • A Canopy account with a provisioned treasury (one-time dashboard setup at https://trycanopy.ai)
  • An Anthropic API key (Claude Agent SDK runs on Claude)

Local dev

npm install
npm run start  # tsx src/cli.ts

For source-tree dev, the scaffolder reads templates from ../../canopy-agent-starters/. After npm run build, it reads from dist/templates/.

License

MIT