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

@claudette/runner

v0.0.1

Published

Distributed conversation runner for Claudette

Downloads

2

Readme

Claudette Runner

Distributed conversation runner for Claudette that executes Claude conversations on behalf of remote workspaces.

Overview

The Runner App is an npm module that:

  • Receives messages from the orchestrator via ElectricSQL-synced collections
  • Sends responses to the orchestrator via HTTP POST with JSONRPC format
  • Manages GitHub repository checkouts per workspace
  • Executes Claude conversations using the claude-code-sdk-ts

Installation

npm install -g @claudette/runner
# or
npx @claudette/runner start

Quick Start

Required Environment Variables

# Authentication token from the server
export CLAUDETTE_RUNNER_TOKEN="your-auth-token"

# Root directory for Git checkouts (optional, defaults to /workspace)
export CLAUDETTE_WORKSPACE_DIR="/path/to/workspace/root"

# ElectricSQL endpoint for live updates
export CLAUDETTE_ELECTRICSQL_URL="https://your-electric-url"

# Orchestrator API endpoint
export CLAUDETTE_ORCHESTRATOR_URL="https://your-orchestrator-url"

Starting the Runner

# Start with default configuration
npx claudette-runner start

# Start with custom config file
npx claudette-runner start --config runner-config.json

# Enable debug logging
npx claudette-runner start --debug

# Override workspace directory
npx claudette-runner start --workspace-dir /custom/workspace

# Override specific settings
npx claudette-runner start --runner-id "my-runner" --max-concurrent 10

CLI Options

npx claudette-runner --help

Options:
  -V, --version                output the version number
  -c, --config <path>          path to configuration file
  -d, --debug                  enable debug logging
  --data-dir <path>            override data directory
  --workspace-dir <path>       workspace directory for Git checkouts (default: /workspace)
  --runner-id <id>             override runner ID
  -h, --help                   display help for command

Commands:
  start                        start the runner (default)
  validate                     validate configuration without starting

Configuration

Configuration File (optional)

Create a runner-config.json file:

{
  "runnerId": "runner-1",
  "dataDir": "./data"
}

Environment Variables

| Variable | Required | Description | | ---------------------------- | -------- | ------------------------------------------------------ | | CLAUDETTE_RUNNER_TOKEN | Yes | Authentication token from server | | CLAUDETTE_WORKSPACE_DIR | No | Root directory for Git checkouts (default: /workspace) | | CLAUDETTE_ELECTRICSQL_URL | Yes | ElectricSQL endpoint | | CLAUDETTE_ORCHESTRATOR_URL | Yes | Orchestrator API endpoint | | CLAUDETTE_DATA_DIR | No | Override data directory | | DEBUG | No | Enable debug logging |

Programmatic

import { RunnerApp, ConfigManager } from "@claudette/runner";

// Load configuration
const config = await ConfigManager.loadConfig();

// Create and start runner
const runner = new RunnerApp(config);
await runner.start();

// Graceful shutdown
process.on("SIGTERM", async () => {
  await runner.stop();
  process.exit(0);
});

Features

  • Hybrid Communication: Receives messages via ElectricSQL, sends via HTTP
  • Repository Isolation: Separate Git checkouts per workspace
  • Automatic Recovery: Retry logic with exponential backoff
  • Comprehensive Logging: Winston-based logging with file rotation
  • Graceful Shutdown: Handles signals properly
  • Resource Management: Automatic cleanup and limits

Logging

Logs are written to:

  • Console (colored output)
  • {dataDir}/logs/combined.log - All logs
  • {dataDir}/logs/error.log - Errors only
  • {dataDir}/logs/debug.log - Debug logs (when debug enabled)

Architecture

The runner consists of several key components:

  1. RunnerApp - Main entry point and lifecycle manager
  2. MessageHandler - Processes incoming JSONRPC messages via ElectricSQL
  3. ClaudeManager - Manages Claude conversations using claude-code-sdk-ts
  4. RepositoryManager - Manages Git repository checkouts and workspace isolation

The runner operates as a standalone process that:

  • Receives messages from orchestrator via ElectricSQL-synced collections
  • Sends responses to orchestrator via HTTP POST
  • Manages GitHub repository checkouts per workspace
  • Executes Claude conversations using claude-code-sdk-ts

Development

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

# Run tests
npm test

# Lint code
npm run lint

License

MIT