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

@olduvai-jp/codex-browser

v0.1.2

Published

Browser UI for Codex with a built-in bridge server.

Readme

@olduvai-jp/codex-browser

Browser UI for Codex. This package starts a local bridge server, serves the web app, and connects the browser client to the local codex app server over stdio.

Quick Start

Requirements:

  • Node.js ^20.19.0 || >=22.12.0
  • codex installed and available in PATH

Run:

npx @olduvai-jp/codex-browser

What happens next:

  • A local URL is printed, such as http://127.0.0.1:8787/
  • The process keeps running until you stop it
  • The browser does not open automatically unless you pass --open
  • Launch fails if the codex command is not available

Common commands:

npx @olduvai-jp/codex-browser --open
npx @olduvai-jp/codex-browser --auth
npx @olduvai-jp/codex-browser --host 0.0.0.0 --port 9000
npx @olduvai-jp/codex-browser --help

CLI options:

  • --host <host>: bind host (default 127.0.0.1)
  • --port <port>: use a fixed port and fail if it is already in use
  • --auth: enable browser auth with a temporary password for this launch
  • --open: open the browser after launch
  • --help: show CLI help

Optional Browser Auth

To require a login page before opening the UI, pass --auth:

npx @olduvai-jp/codex-browser --auth

When --auth is enabled:

  • The CLI prints a temporary password in your terminal.
  • You enter that password on /login in the browser.
  • A new password is generated each time you launch; it is not persisted.

Development

Install dependencies:

npm install

Start frontend and backend together:

npm run dev

npm run dev runs the public CLI entrypoint in development mode (CODEX_BROWSER_DEV=1) without requiring a frontend build. It starts bridge + Vite automatically, prints one browser URL (for example http://127.0.0.1:8787/), and proxies frontend HTTP traffic through bridge on that single URL.

In this CLI development mode, HMR is intentionally disabled. Use manual reload after frontend changes.

Run each side separately:

npm run dev:frontend
npm run dev:backend

If you need a fixed bridge port for npm run dev, pass --port to the CLI through npm:

npm run dev -- --port 8788

If you need standalone Vite behavior (including regular HMR), run npm run dev:frontend + npm run dev:backend separately.

Frontend bridge URL resolution order:

  1. bridgeUrl query parameter, for example http://localhost:5173/?bridgeUrl=ws://127.0.0.1:8787/bridge
  2. VITE_BRIDGE_WS_URL
  3. ws(s)://<current-host>/bridge from the browser location
  4. ws://127.0.0.1:8787/bridge

When using npm run dev:frontend, Vite proxies /bridge WebSocket traffic to ws://127.0.0.1:${BRIDGE_PORT:-8787}, so option 3 works in local development too.

Tests and Checks

Build the app:

npm run build

Type-check:

npm run type-check

Run unit tests with Vitest:

npm run test:unit

Run end-to-end tests with Playwright:

npx playwright install
npm run build
npm run test:e2e
npm run test:e2e -- --project=chromium
npm run test:e2e -- e2e/vue.spec.ts
npm run test:e2e -- --debug

Screenshot modes:

npm run test:e2e:screenshot
npm run test:e2e:screenshot:fail
npm run test:e2e:screenshot:off
npx cross-env PW_SCREENSHOT_MODE=only-on-failure npm run test:e2e

Lint with ESLint:

npm run lint

Features

  • Chat UI with timeline-based message display
  • Thread history grouped by workspace
  • Workspace selection and directory browsing
  • Model selection and thinking-effort controls
  • Tool call visibility and approval workflows
  • Debug panel for logs, metrics, and tool calls

Architecture

Browser (Vue SPA)  <->  Bridge Server (Node.js)  <->  Codex Process
  • src/: frontend application
  • server/: bridge server that spawns and communicates with the Codex process

Tech Stack

  • Frontend: Vue 3 + TypeScript + Vite
  • Styling: Tailwind CSS
  • State: Pinia
  • Bridge: Node.js WebSocket server (ws)