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

@eriz1818/xcodex

v0.2.0

Published

`xCodex` (short for “xtreme-Codex”) is an independent fork of OpenAI’s Codex CLI.

Readme

xCodex (xtreme-Codex)

xCodex (short for “xtreme-Codex”) is an independent fork of OpenAI’s Codex CLI.

  • Repo: xCodex
  • Binary: xcodex
  • Upstream: https://github.com/openai/codex

xCodex is not affiliated with, endorsed by, or supported by OpenAI.


Status / stability

This is a fast-moving fork. Some features are experimental, may be incomplete, and can be temporarily broken. Expect rough edges, churn, and occasional behavior changes.

When filing issues, include repro steps and attach the files printed by /feedback.

Highlights

New in xCodex

Fork-only docs

Fork-specific docs live in docs/xcodex/ (start at docs/xcodex/README.md).

Quickstart

This fork ships an npm distribution (recommended) and also supports building from source.

Install (npm)

npm i -g @eriz1818/xcodex
xcodex --version
xcodex

Prereleases are published under the alpha dist-tag:

npm i -g @eriz1818/xcodex@alpha

Install (build from source)

See docs/install.md for full requirements; the shortest path is:

# from repo root
cargo install just

# builds codex-rs and installs the CLI as `xcodex` (default: ~/.local/bin/xcodex)
cd codex-rs
just xcodex-install --release

# Default: local Bazel build (no BuildBuddy/remote cache).
# Opt into remote cache/BEP: just xcodex-install --release --remote
# Avoid all network fetches (requires deps already cached): just xcodex-install --release --offline

xcodex --version
xcodex

If you prefer not to use just, run:

scripts/install-xcodex.sh --release

Usage

Docs

Codex can access MCP servers. To configure them, refer to the config docs.

Large prompts (stdin / file)

For large prompts, avoid putting the prompt on the command line. Read it from a file or stdin instead:

xcodex --file PROMPT.md
cat PROMPT.md | xcodex

Hooks (automation)

Hooks can receive event payloads containing metadata like cwd, and may include truncated tool output previews. Treat hook payloads/logs as potentially sensitive.

What xcodex supports

  • Hooks (3 levels): external (spawn), Python Host “py-box” (persistent), and PyO3 (in-proc; separate build).
  • Typed hook SDK installers: xcodex hooks install sdks <sdk> (Python/Rust/JavaScript/TypeScript/Go/Ruby/Java).

Performance (rough numbers)

Measured on macOS 26.2 (arm64), Python 3.11 (event: tool-call-finished, payload: 373 bytes):

cd codex-rs
PYO3_PYTHON=$(command -v python3.11) cargo run -p codex-core --bin hooks_perf --release --features pyo3-hooks -- --python $(command -v python3.11) --iters 20000 --warmup 2000 --external-iters 200 --markdown
  • External hook (Python, per-event spawn): ~20.2ms/event (includes serde_json::to_string + json.loads)
  • Out-of-proc host (Python, persistent): ~1.98µs/event (JSONL over stdin; includes serde_json::to_string + json.loads)
  • In-proc baseline: ~0.33ns/iter (Rust loop only)
  • In-proc PyO3: ~2.22µs/event (includes serde_json::to_string + json.loads + Python callable)

Start here:

  • Hook configuration + supported events: docs/xcodex/hooks.md.
  • External hooks (spawn-per-event): docs/xcodex/hooks-external.md.
  • Typed hook SDKs + installers (Python/Rust/JS/TS/Go/Ruby/Java): docs/xcodex/hooks-sdks.md.
  • Python Host hooks (long-lived “python box”): docs/xcodex/hooks-python-host.md.
  • PyO3 hooks (in-process; separately built): docs/xcodex/hooks-pyo3.md.
  • Copy/paste scripts: examples/hooks/ and docs/xcodex/hooks-gallery.md.
  • CLI helpers: xcodex hooks help, xcodex hooks init, xcodex hooks install sdks list, xcodex hooks install samples list.

Configuration

Codex CLI supports a rich set of configuration options, with preferences stored in $CODEX_HOME/config.toml (default: ~/.xcodex/config.toml when invoked as xcodex). For full configuration options, see Configuration.

Execpolicy

See the Execpolicy quickstart to set up rules that govern what commands Codex can execute.

Docs & FAQ


Support

For xCodex issues/bugs/feature requests, please use this repository’s issue tracker (not upstream).


License & attribution

This repository is licensed under the Apache-2.0 License.

See NOTICE for upstream attribution and third-party notices. OpenAI and Codex are trademarks of their respective owners.