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

v0.2.1

Published

Browse and interact with Codex more easily, and orchestrate multiple tasks from a dedicated workflow board.

Readme

npm version License: MIT

Features

Codex capabilities:

  • Session controls - Stop generation, rename thread, fork thread, compact context, switch agent threads, and delete sessions.
  • In-browser messaging - View and send messages across codex-deck instances with real-time updates.
  • Image attachments - Attach images by drag/drop, paste, file picker, or mobile camera/gallery.
  • Model and reasoning controls - Pick a model and reasoning effort per session and before sending.
  • Plan actions - Use Plan mode and apply plan proposals.
  • /, @, and $ support - Use slash commands, file mentions, and skill mentions in the composer (similar to Codex CLI).
  • Live session list - Real-time session updates with project filtering and session search.
  • Environment variables - Pass environment variables into codex sessions.

Remote mode:

  • Local + remote connection modes - Browse local ~/.codex history or connect to a remote codex-deck server.
  • Local + remote updates together - Pages stay in sync in both local and remote modes, with smooth switching between modes.
  • Network stability - Provides a flexible experience in poor network conditions in remote mode.
  • Secure remote auth - OPAQUE-based login flow with trust pins, saved browser auth restore, and machine selection.

UI design:

  • Mobile-friendly interface - The UI is designed to adapt to mobile phone browsers.
  • Block mode - View full, detailed message content in blocks.
  • Text mode - Simplify less important message blocks into readable text lines.
  • Expandable blocks - Toggle blocks between compact and expanded views, with clean copy behavior.

Code context and inspection:

  • Right pane diffs - View unstaged, staged, or last-turn file diffs with patch rendering.
  • File tree + search + preview - Browse the session file tree, search files, and open file content with code, image, and PDF previews.
  • Session skills pane - Inspect and toggle skill enablement for the selected session.

AI-monitored task workflow:

  • Simple yet powerful task workflow scheduler - Git-worktree-based workflows let users create workflows, adjust tasks, check status, and merge back into branches using natural language.
  • Workflow automation pane - Create workflows with AI, bind sessions, launch tasks, view history/logs/raw JSON, send control messages, and manage daemon start/stop.
  • Tabbed workflow views - Navigate workflow status and actions through Overview, Tasks, History, Logs, Control, and Raw JSON.
  • Bind tasks and Codex sessions - Each agent/task in a workflow is tied to a Codex session.
  • Agent rules in workflow - Persistent rules for agent tasks are supported in workflows.

Terminal:

  • Terminal workspace - Create and manage multiple live terminals with shared read and ownership-based write control.
  • Background terminal runs - Inspect per-session terminal run history/output with real-time updates.

Feature previews:

  • Terminal & Workflow & Codex
  • Block mode vs Text mode

  • Right panes

  • Mobile phone page

  • Images support

  • /, @, and $ support in the message input box

  • Supported message block views

    • Expanded blocks

    • Collapsed blocks

Requirements

  • macOS, Linux, or WSL (Windows Subsystem for Linux)
  • Node.js 20+
  • Codex CLI installed and initialized at least once

Interactive mode uses codex under the hood. If codex is not on your PATH, set:

export CODEX_CLI_PATH="/absolute/path/to/codex"

Installation (Local mode)

Option 1: Install globally from npm

npm install -g codex-deck

Run from any directory:

codex-deck

By default, Codex Deck opens http://localhost:12001 in your browser.

Uninstall:

npm uninstall -g codex-deck

Option 2: Run from source

git clone https://github.com/asfsdsf/codex-deck.git
cd codex-deck
npm install -g pnpm
pnpm install
pnpm build
pnpm start

Uninstall:

cd ..
rm -rf codex-deck

Option 3: Use a release package

Download codex-deck-vX.X.X-[arch] from the GitHub Releases page, extract it, and run the codex-deck executable from that directory.

Uninstall:

rm -rf codex-deck-vX.X.X-[arch]

No matter which local installation method you use, codex-deck supports these options:

codex-deck [options]

Options:
  -V, --version        Show version number
  -p, --port <number>  Port to listen on (default: 12001)
  -d, --dir <path>     Codex directory path (default: ~/.codex)
  --dev                Enable CORS for development (frontend at localhost:12000)
  --no-open            Do not open browser automatically
  -h, --help           Show help

Installation (Remote mode)

Quick map:

  • Server machine (Docker host): runs remote server and hosts the web app.
  • Local machine (where Codex runs): starts codex-deck CLI and connects to server.
  • Web page (browser): signs in and controls connected local machines.

Security note:

  • Synced Codex payloads are encrypted between local machine and web page; the server stores encrypted blobs plus routing metadata.
  • If you open the web app directly from the server URL, that server controls the JavaScript sent to your browser. So only use the server-hosted web URL when you trust that server/operator.
  • Use https:// in real deployments. Use http:// only for trusted local/lab testing.

1. Server machine: build and run

Clone the repository and enter the project root on the server machine:

git clone https://github.com/asfsdsf/codex-deck.git
cd codex-deck

Build the remote server image:

docker build -t codexdeck-server -f Dockerfile.server .

Server environment variables (used in this step):

  • CODEXDECK_REMOTE_ADMIN_PASSWORD (required): password for https://your-server-host/admin.
  • CODEXDECK_REMOTE_SETUP_TOKENS (optional): comma- or newline-separated setup tokens to seed on first boot. You can also create tokens later in the admin page.
  • PUBLIC_URL (recommended): the public URL users and CLIs use to reach this server (use https://... in production).
  • CODEXDECK_REMOTE_BROWSER_AUTH_PERSISTENCE (optional): browser login persistence. session ends on browser close, remember persists.

Run the server:

docker run -p 3005:3005 \
  -e CODEXDECK_REMOTE_ADMIN_PASSWORD=<admin-password> \
  -e CODEXDECK_REMOTE_BROWSER_AUTH_PERSISTENCE=remember \
  -e PUBLIC_URL=https://your-server-host \
  -v codexdeck-data:/data \
  codexdeck-server

This container serves both the remote web app and remote server. Data is stored in codexdeck-data.

2. Web page: create setup tokens

In a browser, open https://your-server-host/admin, log in with CODEXDECK_REMOTE_ADMIN_PASSWORD, and create one setup token for each local CLI you want to connect. If you prefer, you can still pre-seed tokens with CODEXDECK_REMOTE_SETUP_TOKENS before first boot.

3. Local machine: connect each Codex machine

On each local machine (the machine that has Codex CLI history), start codex-deck like this:

codex-deck \
  --remote-server-url https://your-server-host \
  --remote-setup-token <token-a> \
  --remote-username <cli-login-name> \
  --remote-password <cli-login-password>

4. Web page: sign in

Open https://your-server-host/ in a browser and sign in with the same remote username and password used for that local machine.

AI Terminal usage

You can chat with Codex at any time while working in the terminal.

To use AI Terminal:

  1. Click Terminal in the left pane.
  2. Click New Terminal.
  3. Alternate between typing shell commands and chatting with the Codex session.

You can also:

  • Click Chat in session to see the detailed steps in the Codex session.
  • Click Continue to let the Codex session continue.

Workflow usage

Using workflows is as easy as chatting.

To create a new workflow:

  1. Click Workflow in the left pane.
  2. Click New Workflow.
  3. Describe what you want in the chat.

Example chat requests (user side only):

  • Ask questions: "How do I use the codex-deck-flow workflow system?"
  • Create tasks: "Create a workflow to add GitHub OAuth login with backend API updates, frontend UI changes, and tests."
  • Create tasks: "Create 10 tasks. Each task should dive into the project, find a frontend UI bug, and fix the code until all unit tests pass."
  • Add tasks: "Add a task to make a better improvement based on the previous task."
  • Merge git worklist: "Merge the tasks."
  • Show task status: "Summarize task running status."
  • Add memory to agents: "Fix the code until all unit tests pass for all tasks in all workflows."
  • Diagnose workflow: "Workflow fails to run. Please fix it."

Notes: sandbox_mode = "danger-full-access" is enabled for workflow agents.

Requirements:

  • Run inside a Git repository.
  • Skill codex-deck-flow is installed.

Development

git clone https://github.com/asfsdsf/codex-deck.git
cd codex-deck
pnpm install
pnpm build
pnpm dev

pnpm dev starts:

  • frontend at http://localhost:12000
  • backend at http://localhost:12001

Build portable packages

pnpm build:packages

This builds portable archives in ./build/ for:

  • macos-arm64
  • macos-x64
  • linux-x64

On non-Linux hosts, linux-x64 packaging requires Docker because node-pty must be installed on Linux.

Limit targets with:

./scripts/build-packages.sh --targets macos-arm64,macos-x64

Acknowledgements

License

MIT © zzami