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-auto

v0.12.0

Published

Codex workspace hook for automatic codegraph and graphify updates.

Readme

graph-auto

Codex workspace helper for keeping codegraph and graphify updated.

Quick Start

npm install -g codex-graph-auto
graph-auto setup

For source checkout installs:

./install.sh

install.sh installs the graph-auto wrapper into $(npm prefix -g)/bin when npm is available, falling back to ~/.local/bin. Set GRAPH_AUTO_BIN_DIR=/custom/bin to override the CLI path.

setup installs Codex hooks, enables the current workspace when appropriate, creates .graphifyignore, initializes missing graph outputs, and can install git post-commit / post-checkout hooks.

Trigger Model

  • graph-auto setup / graph-auto init: initialize missing graph outputs.
  • Codex PostToolUse: mark dirty after Codex edits.
  • Optional Watchman trigger: mark dirty after non-Codex file changes.
  • Git post-commit / post-checkout: run codegraph sync . and graphify . --update.

Codex SessionStart, Stop, and PreCompact do not run graph work.

Options

graph-auto setup --no-git-hooks
graph-auto setup --no-watch
graph-auto setup --no-subprojects
graph-auto setup --scan-root <dir>
graph-auto setup --no-tool-sync
graph-auto setup --update-tools
graph-auto setup --no-init
graph-auto setup --yes-init
graph-auto setup --all-subprojects
graph-auto init
graph-auto configure
graph-auto status
graph-auto git-hooks status
graph-auto watch status

Subprojects

setup detects child directories containing .git, opens a TUI multi-select, and runs setup in selected subprojects. Use --scan-root <dir> to choose a different scan root explicitly.

If the current directory is only a selection root, setup skips parent graph initialization and configures only selected subprojects.

For scripts or CI:

graph-auto setup --all-subprojects

To skip subproject detection:

graph-auto setup --no-subprojects

Subproject git hooks share one .git/graph-auto-workspaces registry, so one parent git hook can update every selected workspace.

Tools

CodeGraph and Graphify run independently. If only one is installed, graph-auto initializes and updates that tool while skipping the missing one.

setup syncs Graphify and CodeGraph Codex integrations. Use --update-tools to force package updates, or --no-tool-sync to skip integration sync.

If Graphify is missing, setup offers:

uv tool install "graphifyy[openai]"

If uv is missing, setup tells you to install uv first. If CodeGraph is missing, setup offers:

npm install -g @colbymchenry/codegraph

If npm is missing, setup asks you to install Node.js/npm first.

Init Safety

Large workspaces can make graphify expensive. setup / init skip graph initialization when the workspace exceeds initMaxFiles unless you confirm in the TUI or pass:

graph-auto setup --yes-init

To configure hooks and subprojects without initializing graph outputs:

graph-auto setup --no-init

Graphify API Setup

graph-auto setup starts the provider wizard when no graphify API key is saved. You can also run it directly:

graph-auto configure

Choose DeepSeek, OpenAI / OpenAI-compatible, Gemini, Anthropic, Kimi, or Custom OpenAI-compatible. For a local router, choose the custom OpenAI-compatible option and fill OPENAI_BASE_URL, OPENAI_API_KEY, and optional GRAPHIFY_MODEL.

graph-auto configure stores values in ~/.codex/graph-auto.env with 0600 permissions.