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

bitcompass

v0.3.9

Published

BitCompass CLI - rules, solutions, and MCP server

Readme

BitCompass CLI

CLI for rules, solutions, and MCP server. Same backend as the webapp (Supabase).

Install

npm install -g bitcompass

Or run without installing:

npx bitcompass --help

Package: npmjs.com/package/bitcompass

Setup

  1. Configure Supabase (required for login and API):
    • bitcompass config set supabaseUrl https://YOUR_PROJECT.supabase.co
    • bitcompass config set supabaseAnonKey YOUR_ANON_KEY
    • Or set BITCOMPASS_SUPABASE_URL and BITCOMPASS_SUPABASE_ANON_KEY
  2. Log in: bitcompass login (opens browser)

Commands

  • bitcompass login – Google login (opens browser)
  • bitcompass logout – Remove credentials
  • bitcompass whoami – Show current user
  • bitcompass rules search [query] – Search rules
  • bitcompass rules list – List rules
  • bitcompass rules pull [id] – Pull rule to file
  • bitcompass rules push [file] – Push rule (or interactive)
  • bitcompass solutions search|pull|push – Same for solutions
  • bitcompass mcp start – Start MCP server (stdio) for Cursor/IDEs
  • bitcompass mcp status – Show MCP login status
  • bitcompass config – List config; config set/get for values

MCP

Cursor (global install)

If you installed via npm install -g bitcompass, add this to Cursor’s MCP config:

Cursor: Settings → Features → MCP → Edit config (or open ~/.cursor/mcp.json).

Add the bitcompass entry under mcpServers:

{
  "mcpServers": {
    "bitcompass": {
      "type": "stdio",
      "command": "bitcompass",
      "args": ["mcp", "start"]
    }
  }
}

Run bitcompass login before using MCP. If you added the MCP before logging in, restart the MCP server in Cursor after logging in.

Development (this repo)

This repo includes .cursor/mcp.json so Cursor points at the local CLI when the project is open. Build and log in:

cd packages/bitcompass-cli && npm run build && bitcompass login

Manual (local path): Settings → MCP → stdio, Command node, Args path/to/packages/bitcompass-cli/dist/index.js mcp start.

MCP Tools

Rules & Solutions:

  • search-rules - Search rules by query (with optional kind filter)
  • search-solutions - Search solutions by query
  • get-rule - Get full rule/solution details by ID
  • list-rules - List all rules/solutions (with optional kind filter and limit)
  • post-rules - Create/publish a new rule or solution
  • update-rule - Update an existing rule or solution
  • delete-rule - Delete a rule or solution by ID
  • pull-rule - Pull a rule/solution to a file in the project rules directory

Activity Logs:

  • create-activity-log - Create activity log from git repo (day/week/month)
  • list-activity-logs - List user's activity logs (with optional filters)
  • get-activity-log - Get activity log details by ID

Prompts:

  • share_new_rule - Guide to collect and publish a reusable rule
  • share_problem_solution - Guide to collect and publish a problem solution

Publish (maintainers)

From the CLI package directory:

cd packages/bitcompass-cli
npm run build
npm publish

For a scoped package use npm publish --access public.