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

forge-research-snapshot

v0.1.1

Published

Forge CLI recovered from a public Claude Code snapshot and adapted into a runnable terminal coding assistant.

Readme

Forge

Forge is a locally recovered and reworked CLI fork built from a public source snapshot of Anthropic's Claude Code. This repository is not an official Anthropic project. In its current state, it is a runnable terminal coding assistant with a working CLI, REPL startup, non-interactive --print mode, and two authentication paths:

  • existing first-party claude.ai style login, if present in local config
  • GPT/OpenAI login imported from official Codex CLI

The repository has moved beyond "snapshot analysis only". The main product path now boots and can execute real requests.

Current status

Verified locally:

  • bash scripts/run-forge-cli.sh --version
  • bash scripts/run-forge-cli.sh --help
  • bash scripts/run-forge-cli.sh auth status
  • bash scripts/run-forge-cli.sh --print "Reply with the single word OK." --disable-slash-commands --tools "" --max-turns 1
  • bash scripts/run-forge-cli.sh auth login --openai using Codex CLI login reuse

The recovery audit also passes:

node scripts/recovery-audit.mjs

What is solid now:

  • self-contained npm launcher with Bun bundled as a dependency
  • generated SDK/settings artifacts
  • local launcher script
  • basic interactive startup
  • non-interactive request path
  • Codex CLI based OpenAI login import

What is still partial:

  • the native OpenAI path is not feature-complete for all tool/multi-turn cases
  • if Codex only exposes a ChatGPT OAuth token without api.responses.write, Forge falls back to codex exec for simple no-tool text requests
  • some historical Anthropic-specific integrations remain in compatibility boundaries

Quick start

npm install

Published package name:

npm install -g forge-research-snapshot

Then run:

forge --version
forge --help

The npm package now installs Bun automatically through the official bun npm package. You should not need to install Bun separately. If you want to override the runtime, set BUN_BIN=/path/to/bun.

1. Install dependencies

bun install

2. Generate derived files

bun run generate

3. Start Forge

Canonical launcher:

bash scripts/run-forge-cli.sh

Useful checks:

bash scripts/run-forge-cli.sh --version
bash scripts/run-forge-cli.sh --help
bash scripts/run-forge-cli.sh auth status

Non-interactive smoke test:

bash scripts/run-forge-cli.sh --print "Reply with the single word OK." --disable-slash-commands --tools "" --max-turns 1

You can also use package scripts:

bun run cli
bun run version
bun run recovery:audit
bun run preflight:openai

Authentication

OpenAI / GPT via Codex CLI

This is the preferred OpenAI path.

  1. Sign in with official Codex CLI:
codex login
codex login status
  1. Import that login into Forge:
bash scripts/run-forge-cli.sh auth login --openai
  1. Verify:
bash scripts/run-forge-cli.sh auth status

If the imported Codex credential includes a usable API key or Responses scope, Forge can use the native OpenAI runtime directly. If not, Forge still imports the login and can run simple no-tool text requests through a codex exec fallback.

Detailed validation steps are in docs/openai-oauth-smoke-test.md.

Existing first-party login

If your local config already contains the legacy first-party login state, Forge will continue to read it through the compatibility layer. This repository still contains that path for local continuity, but it is no longer the only way to start the product.

Architecture summary

This codebase is still a large modular CLI monolith. The important top-level areas are:

High-level subsystem layout:

  • src/commands/: slash/CLI commands
  • src/tools/: tool implementations
  • src/components/ and src/screens/: Ink UI
  • src/services/: API, auth, MCP, analytics, sync, compact
  • src/utils/: pathing, config, permissions, session storage, adapters
  • src/bridge/: IDE/remote bridge
  • src/skills/ and src/plugins/: extensibility

Documentation map

Reality-based limitations

  • This repository was reconstructed from a public source snapshot and then heavily adapted locally.
  • Some module names, compatibility layers, and internal abstractions still reflect Claude/Anthropic heritage.
  • OpenAI support is now real, but not all advanced paths are native OpenAI yet.
  • A few features are best understood as "publicly runnable recovery build" rather than polished release product.

Recommended next work

  1. Expand OpenAI runtime coverage beyond simple no-tool requests.
  2. Reduce remaining Anthropic-specific compatibility naming in public surfaces.
  3. Tighten build metadata injection so run-forge-cli.sh is no longer the only supported launcher.
  4. Add repeatable regression checks for REPL, --print, auth, and tool basics.