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

@cognitivtrust/cognitivtrust-claude

v1.1.1

Published

CognitivTrust CLI — one-command setup for Claude Code + Cursor hook integration.

Readme

CognitivTrust CLI

One-command setup for the CognitivTrust AI security layer in Claude Code and Cursor. Runs the OAuth login flow, writes the IDE config, installs the hook sidecar, and you're done.

Requirements

  • Node.js 24 or newer (node -v)
  • Claude Code CLI (for claude_code target) or Cursor (for cursor target)
  • Network access to your CognitivTrust backend

Install & run

No install needed — use npx:

npx cognitivtrust-claude

Or install globally:

npm install -g cognitivtrust-claude
cognitivtrust-claude

What it does

  1. Opens your browser at the CognitivTrust web app and walks you through OAuth.
  2. Receives a long-lived JWT back on the local poll endpoint.
  3. Writes ~/.claude.json (MCP server entry) and ~/.claude/settings.json (hook entries) for Claude Code. Writes ~/.cursor/mcp.json and ~/.cursor/hooks.json for Cursor.
  4. Places the hook.js sidecar so your IDE can call it before every tool use, prompt submission, file read, etc.

Configuration

Override the backend / MCP / frontend URLs with env vars or CLI flags (same knobs the VS Code / Cursor extension exposes as ctrust.backendUrl, ctrust.mcpUrl, ctrust.frontendUrl).

| Flag | Env var | Default | | ------------ | ------------------------- | --------------------------------------- | | --backend | COGNITIVTRUST_BACKEND | https://dev-api.cognitivtrust.com | | --mcp | COGNITIVTRUST_MCP | https://dev-mcp.cognitivtrust.com | | --frontend | COGNITIVTRUST_FRONTEND | https://dev-app.cognitivtrust.com |

# Env
export COGNITIVTRUST_BACKEND=https://api.cognitivtrust.com
export COGNITIVTRUST_MCP=https://mcp.cognitivtrust.com
export COGNITIVTRUST_FRONTEND=https://app.cognitivtrust.com
npx cognitivtrust-claude

# Or flags
npx cognitivtrust-claude \
  --backend  https://api.cognitivtrust.com \
  --mcp      https://mcp.cognitivtrust.com \
  --frontend https://app.cognitivtrust.com

!!! note "MCP is a separate host" The MCP server is served from its own subdomain (mcp.…) in production and its own port/path in local dev. Keep it configurable separately from the backend — deriving it from --backend works by convention but breaks as soon as you deploy behind a proxy or split hosts.

Uninstall

npx cognitivtrust-claude --uninstall
# or, if globally installed:
cognitivtrust-claude --uninstall

Removes the CognitivTrust mcpServers.cognitivtrust entry from ~/.claude.json and the CognitivTrust hook entries from ~/.claude/settings.json. Other MCP servers, other hooks, and unrelated settings in those files are preserved. Restart Claude Code to pick up the change. The same command is re-runnable — it's a no-op when there's nothing to remove.

Source

This package mirrors files from extension/ at publish time (see scripts/prepack.js). Bugs and PRs go there.

License

MIT © CognitivTrust