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

preflightai-mcp

v0.4.0

Published

PreflightAI MCP server — pre-write context safety for AI coding agents.

Readme

preflightai-mcp

Pre-write context safety for AI coding agents.

preflightai-mcp is a Model Context Protocol server that exposes a small set of tools an AI coding agent (Cursor, Claude Desktop, Cline, …) can call before every code edit to ask: "is this edit still safe given what other agents and humans have changed?"

It is the local stdio component of PreflightAI / Nexus. The hosted dashboard and API run on Render; this package is what each engineer runs on their own machine alongside their editor.

Quick start

  1. Sign in to the dashboard, create a project, and issue an API key.

  2. Add the entry below to your MCP client config (Cursor: ~/.cursor/mcp.json):

    {
      "mcpServers": {
        "preflightai": {
          "command": "npx",
          "args": ["-y", "preflightai-mcp"],
          "env": {
            "NEXUS_API_URL": "https://nexus-web-prod-06o5.onrender.com",
            "NEXUS_API_KEY": "nx_live_xxxxxxxxxxxxxxxxxxxxxxxx",
            "NEXUS_PROJECT_ID": "proj_xxxxxxxxxxxx",
            "NEXUS_CLIENT_NAME": "cursor",
            "NEXUS_ROOT_DIR": "${workspaceFolder}"
          }
        }
      }
    }
  3. Restart your editor. The nexus_* tools appear in the agent tool list.

Verify install

npx -y preflightai-mcp --help
NEXUS_API_KEY=nx_live_… NEXUS_PROJECT_ID=proj_… npx -y preflightai-mcp --doctor

--doctor validates env vars, hits /api/health, and confirms the project is reachable.

Tools exposed

| Tool | When to call it | | --- | --- | | nexus_declare_intent | Before starting a coherent unit of work. | | nexus_check_write | Mandatory before every code edit. Returns allow, allow_with_warnings, or block. | | nexus_acknowledge_replan | After a block, once you've read the replan packet. | | nexus_complete_intent | When the intent is done. | | nexus_report_snapshot | Manually push a live worktree snapshot so other agents see your unpushed work. Auto-fired by declare_intent / check_write when NEXUS_LIVE_SNAPSHOT=true. | | nexus_whoami | Resolve API key → GitHub login → stable actorId. | | nexus_status | Health probe. |

Full schemas live in src/server.ts.

Environment variables

| Variable | Required | Default | | --- | --- | --- | | NEXUS_API_URL | no | https://nexus-web-prod-06o5.onrender.com | | NEXUS_API_KEY | yes | — | | NEXUS_PROJECT_ID | yes | — | | NEXUS_CLIENT_NAME | no | agent | | NEXUS_ROOT_DIR | no | process.cwd() | | NEXUS_LIVE_SNAPSHOT | no | on (set to off to disable auto live-snapshot reporting) | | NEXUS_LIVE_SNAPSHOT_MAX_BYTES | no | 204800 (200 KiB cap on file content shipped per snapshot) |

License

MIT.