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

code-dev-intel.ts

v0.1.6

Published

Self-hosted AI code intelligence for TypeScript — symbol resolution, structural search, duplicate detection, and dependency graphs via MCP server.

Readme

code-dev-intel

Self-hosted AI code intelligence stack for TypeScript projects.

Goal

Provide AI agents with IDE-grade code understanding (symbols, references, impact analysis, structured queries) without scanning the whole codebase every time.

For consumer repositories, the recommended bootstrap command is:

pnpm exec code-dev-intel ensure --workspaceRoot=. --port=4545

Use ensure for AI agents, CI jobs, hooks, and automations so the server is started only when needed and validated through its health endpoint without repo-local wrapper scripts.

Constraints:

  • 100% self-hosted
  • Local-first for each developer
  • Keep resource usage reasonable on 16GB machines
  • Docker-first where possible

Docs index

  • docs/ai/00-context.md
  • docs/ai/01-target-architecture.md
  • docs/ai/02-agent-orchestration.md
  • docs/ai/03-shared-memory-protocol.md
  • docs/ai/04-executable-task-backlog.md
  • docs/ai/05-agent-prompts.md
  • docs/ai/06-bootstrap-execution-kit.md
  • docs/ai/memory/AGENT_MEMORY.md

First run

  1. Read context and architecture docs.
  2. Follow task backlog in order.
  3. Every agent must update docs/ai/memory/AGENT_MEMORY.md after each task.

Docker quick start

  • Core only (recommended): pnpm docker:core:up
  • Core + optional search helpers: pnpm docker:all:up
  • Core + Zoekt webserver (optional): pnpm docker:zoekt:up
  • Build Zoekt index (on-demand): pnpm docker:zoekt:index
  • Stop containers: pnpm docker:all:down

See docker/README.md for details.

MCP server in Docker (recommended for local isolation)

pnpm docker:core:up
curl http://127.0.0.1:4545/health

Stop:

pnpm docker:core:down

Sub-README index

Consumer automation

  • Recommended command: pnpm exec code-dev-intel ensure --workspaceRoot=. --port=4545
  • start is for manual foreground runs.
  • status only checks health.
  • ensure is the stable entrypoint for idempotent automation.

Security baseline

  • Run local security scan: pnpm security:scan
  • Baseline rules: security/opengrep-rules.yml
  • Optional override if OpenGrep is installed outside PATH: set OPENGREP_BIN to the full binary path
  • Common install-script path: ~/.opengrep/cli/latest/opengrep

Security design notes

  • CORS: No CORS headers are set. This is an explicit design choice — the server is intended for local-first / sidecar use (127.0.0.1). Browser-based frontends should proxy requests through their backend.
  • API key: Required when binding to non-local interfaces. Compared with crypto.timingSafeEqual().
  • Path traversal: All user-supplied paths are canonicalized via realpathSync and validated against workspace boundaries.
  • Command execution: Uses shell: false with command allow-lists (safeSpawnSync).

CI baseline

  • Consolidated CI workflow: .github/workflows/ci.yml
  • Local indexer smoke command: pnpm indexer:smoke

Performance budget (low-cost)

  • Budget config: perf/budget.json
  • Local benchmark: pnpm perf:benchmark
  • CI benchmark workflow: .github/workflows/perf-budget.yml
  • Trigger policy: manual (workflow_dispatch) + weekly schedule only (no push/PR trigger)