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

@cogny/cli

v0.3.0

Published

Cogny CLI — sign up, wire your coding agent to Cogny, run marketing skills on your own data

Readme

cogny-cli

Sign your coding agent up for Cogny Solo and invoke every Cogny MCP tool from the shell — no native MCP wiring or restart required.

Quick start (Solo / freemium)

# 1. Sign up. Uses `git config user.email` if --email is omitted.
npx @cogny/cli init --agent claude-code

# 2. Discover available tools (calls MCP tools/list, prints names + descriptions).
npx @cogny/cli tools list

# 3. Call any tool from Bash — same surface as native MCP, no restart.
npx @cogny/cli tools call list_integrations
npx @cogny/cli tools call execute_bigquery_sql --input '{"query":"select 1"}'

# Quick sanity check.
npx @cogny/cli status

First 15 calls per month are free.

Supported agents (pick the one you use): claude-code, codex, cursor, gemini-cli, opencode, aider, other. Automatic MCP config writes are currently supported for claude-code, codex, cursor, and gemini-cli; other agents can use the printed JSON snippet.

Commands

cogny init

Creates (or recovers) a Cogny Solo workspace and persists the issued API key to ~/.cogny/config.json.

cogny init [--email [email protected]] [--agent claude-code]
           [--api-url https://app.cogny.com]
  • --email — if omitted, derived from git config --get user.email.
  • --agent — tag the signup so we can segment the funnel.
  • Re-running with the same email returns a fresh key for your existing workspace (no duplicates).

cogny tools

Invoke any Cogny MCP tool over JSON-RPC + Bearer auth, using the API key from cogny init. No MCP wiring required.

cogny tools list [--json]
cogny tools call <tool-name> [--input '<json>' | --input-file path | --stdin] [--json]
  • cogny tools list prints name — description per line. Pass --json for the full tool definitions (including each tool's input schema) — read this once to know what's available.
  • cogny tools call <name> passes --input JSON as the tool's arguments. Pipe stdin via --stdin for large payloads. Adds process.exit(2) on tool errors so shell scripts can detect failure.
  • cogny status is a shortcut for cogny tools call cogny_status — prints subscription state, connected channels, and remaining credits.

cogny mcp-config

Optional: wire the Cogny MCP into your agent's native MCP config so the tools appear in the agent's MCP UI (Claude Code's /mcp panel, Cursor's Tools tab, etc.). Requires restarting the agent. Not needed if you're using cogny tools.

cogny mcp-config [--agent claude-code] [--write]
  • Without --write it prints the snippet — paste it into your agent's config wherever it lives.
  • With --write it merges a cogny entry into the default config path for the chosen agent (e.g. ~/.claude.json for Claude Code).
  • If the existing config is malformed JSON, the CLI refuses to overwrite it.
  • Note: some clients (including Claude Code as of this writing) prefer OAuth over static Authorization headers and may ignore the configured key, leaving the server "needs authentication". Use cogny tools call ... from Bash instead — same tools, no OAuth dance.

cogny install-skill

Clones the open-source marketing skills repo into the right local skills directory for your agent.

cogny install-skill [--agent claude-code] [--repo https://github.com/cognyai/claude-code-marketing-skills]

Idempotent: re-running pulls latest changes.

Local ticket runner (advanced)

For customers running classic-tier Cogny warehouses with the local ticket runner workflow (separate from the Solo flow above):

The local ticket runner executes tickets from Cogny Cloud on your machine. It can clone repositories, run your local coding agent, commit changes, push a branch, and open a pull request. Use it only with trusted Cogny workspaces and repositories.

Requirements

  • Node.js 20+
  • git
  • gh authenticated for the customer repo
  • Either claude or codex installed and authenticated locally
  • A Cogny bearer token for the warehouse (cogny_lite_..., mcp_..., or at_...)

Usage

cogny login --api-key mcp_xxx --api-url https://app.cogny.com
cogny run --provider claude --allow-local-runner

Run a single queued ticket and exit:

cogny run --provider codex --once --allow-local-runner

Override the default model CLI command:

COGNY_AGENT_COMMAND='claude -p "$(cat "$COGNY_PROMPT_FILE")"' cogny run --allow-local-runner

For Claude Code, cogny-cli prefers ~/.local/bin/claude when present before falling back to claude from PATH. This avoids non-interactive shell PATH differences from selecting a broken global install.

The runner leases tickets queued from Cogny Cloud, clones the configured GitHub repo locally, runs the selected model CLI, commits and pushes a branch, opens a PR with gh, then reports the PR back to Cogny so the ticket moves to review.

If you intentionally need a permission-bypass flag for a fully trusted runner environment, set COGNY_AGENT_COMMAND explicitly after reviewing the risk.