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

codex-graph

v0.1.3

Published

A Codex skill and local JS/TS codebase knowledge graph engine.

Readme

codex-graph

codex-graph is a public Codex skill plus a local JavaScript/TypeScript codebase knowledge graph engine. It is designed to be installed from npm and then explicitly connected to Codex with codex-graph install --platform codex.

It is inspired by Graphify's installable skill plus graph architecture, but scoped to OpenAI Codex workflows and JS/TS repositories. The goal is simple: let Codex query a compact, deterministic graph before spending time reading raw files.

Install

npm install -g codex-graph
codex-graph install --platform codex

Requires Node.js 24 or newer.

The install flow is intentionally two steps:

  • npm install -g codex-graph installs the codex-graph CLI binary on your machine.
  • codex-graph install --platform codex explicitly installs the Codex skill into ${CODEX_HOME:-~/.codex}/skills/codex-graph.

The npm install step does not modify Codex automatically. This avoids hidden side effects during package installation and keeps Codex configuration changes explicit.

No global install:

npx codex-graph install --platform codex

Codex may need to be restarted after installing the skill.

Why Graph-First Context?

Codex often needs to answer questions like "where is auth handled?", "what tests cover this service?", or "what breaks if I change this file?". Reading the repo from scratch each time wastes context and time.

codex-graph builds a local graph of files, symbols, imports, exports, tests, routes, configs, and module relationships. Codex can query that graph first, then inspect only the raw files that matter.

How This Differs From Graphify, Memory, and Vector RAG

  • Graphify is a broader local graph skill pattern; codex-graph narrows the surface to OpenAI Codex and JS/TS repositories.
  • It is not conversation memory.
  • It is not vector search.
  • It does not store user preferences or chat history.
  • It is an auditable codebase graph with deterministic local queries.
  • It does not call an LLM or require API keys in v1.

JS/TS-only support keeps v1 predictable: imports, exports, symbols, tests, routes, package scripts, and config files can be extracted with the TypeScript compiler ecosystem instead of language-agnostic heuristics.

Commands

codex-graph init
codex-graph build [path]
codex-graph update
codex-graph query "where is the user service?"
codex-graph explain UserService
codex-graph deps src/services/user-service.ts
codex-graph path src/main.ts UserService
codex-graph impact UserService
codex-graph visualize
codex-graph serve

Codex Usage

Install the Codex skill:

codex-graph install --platform codex

Inside a repository:

codex-graph init
codex-graph codex install
codex-graph build .

The generated AGENTS.md tells Codex to run graph queries before answering architecture, dependency, flow, symbol, route, test, or impact questions.

For the Codex app, install the skill locally, restart the app, then open a repository that has been initialized with codex-graph init.

For Codex CLI or cloud setup flows, add the install and build steps to your setup script:

npm install -g codex-graph
codex-graph install --platform codex
codex-graph build .

MCP Setup

codex-graph mcp install
codex-graph serve

The MCP installer safely updates ${CODEX_HOME:-~/.codex}/config.toml with a marked [mcp_servers.codex-graph] block and backs up an existing config before writing. The MCP server exposes compact graph tools for Codex-compatible clients.

Outputs

codex-graph writes local project artifacts under .codex-graph/:

  • graph.json
  • CODEX_GRAPH_REPORT.md
  • graph.html
  • stats.json
  • warnings.json
  • cache/

Teams can commit graph artifacts if they want shared Codex context. Local cache files should usually remain ignored.

Limitations

  • V1 supports JavaScript and TypeScript repositories only.
  • Runtime behavior, dynamic imports, decorators, and metaprogramming are partial.
  • The graph narrows context; it does not replace raw file reading.
  • No embeddings or LLM summaries are implemented in v1.
  • It is codebase knowledge, not user memory.

Public Release

Publishing status: [email protected] is published on npm.

Before publishing:

pnpm build
pnpm test
npm pack --dry-run

Publish:

npm publish