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

codepoet-edgar

v0.1.6

Published

Edgar Allen Code — Headless AI agent execution engine

Readme

codepoet-edgar

Edgar Allen Code — the execution runner for Codepoet.

Edgar runs on your machine and uses your Claude Code subscription to execute stories planned in Codepoet. It connects outbound to the Codepoet backend via WebSocket — no port forwarding or firewall changes needed.

Quick start

# Install globally
npm install -g codepoet-edgar

# Authenticate with your Codepoet account (one-time)
edgar login

# Connect to Codepoet (leave running)
edgar connect

Requirements

No native build tools needed — Edgar ships with prebuilt PTY binaries via @homebridge/node-pty-prebuilt-multiarch.

Commands

| Command | Description | |---------|-------------| | edgar login | Authenticate with your Codepoet account (opens browser) | | edgar connect | Connect to Codepoet backend (bridge mode) | | edgar start | Start Edgar as a standalone local server | | edgar status | Check if Edgar is running | | edgar help | Show usage info |

How it works

When you run edgar connect, Edgar:

  1. Loads your saved token from ~/.edgar/config.json (from edgar login)
  2. Connects outbound to wss://api.buildwithcodepoet.com/ws/runner
  3. Receives JSON-RPC execution commands from the Codepoet backend
  4. Spawns Claude Code sessions in isolated git worktrees on your machine
  5. Streams PTY output and session events back to the Codepoet UI in real time

Your code never leaves your machine. Codepoet orchestrates, Edgar executes.

Architecture

Frontend (Codepoet UI)
    ↓ SSE events / REST API
Backend (FastAPI)
    ↓ WebSocket (JSON-RPC)
Edgar (your machine)
    ↓ PTY
Claude Code (your subscription)

The backend's /ws/runner endpoint authenticates Edgar via JWT, then sends commands (createSession, sendInput, getOutput, etc.) over the WebSocket. Edgar dispatches these to its session manager, PTY manager, and git handler, then sends back results and push events (pty:data, session:status, etc.).

Local development

# Run against a local backend
edgar login --url http://localhost:8000
edgar connect --url http://localhost:8000

# Or use the local build directly (no npm publish needed)
node dist/cli.js connect --url http://localhost:8000

The --url flag accepts a base URL (e.g. http://localhost:8000) — Edgar automatically appends /ws/runner and converts http:// to ws://.

The saved backend_url from edgar login is reused by edgar connect, so you only need --url on the first command.

Environment variables

| Variable | Description | Default | |----------|-------------|---------| | EDGAR_PORT | Local debug server port | 3100 | | EDGAR_DATA_DIR | Data directory | ~/.edgar | | EDGAR_RUNNER_TOKEN | Runner auth token (alternative to edgar login) | — | | EDGAR_BACKEND_URL | Backend WebSocket URL | wss://api.buildwithcodepoet.com/ws/runner | | EDGAR_MAX_SESSIONS | Max concurrent sessions | 20 | | ANTHROPIC_API_KEY | For Claude Code agent | — |

Known Limitations

  • Runner JWT lifetime: Runner tokens are valid for 30 days with no server-side revocation. If a token is compromised, it cannot be invalidated until expiry. A future release will add a token denylist or DB-backed tracking.