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

@carrier-sh/carrier

v0.2.0

Published

Fleet orchestration system for Claude Code

Readme

Carrier

License: AGPL v3 Bun TypeScript

Zero-touch orchestration framework for complex development workflows

Carrier is a CLI tool that manages sophisticated multi-agent workflows through fleet-based execution with subagent delegation, conditional routing, and approval gates. It integrates seamlessly with Claude Code to enable complex development tasks.

✨ Features

  • Fleet-Based Orchestration: Reusable workflow templates with task sequencing
  • Subagent Delegation: Each task runs with dedicated AI agents and fresh context
  • Conditional Routing: Smart task routing based on execution outcomes
  • Approval Gates: Human oversight at critical workflow points
  • Claude Code Integration: Native support for /carrier commands
  • Remote API: Cloud-based fleet management with GitHub OAuth
  • File-Based State: No database required - uses JSON persistence

🚀 Quick Start

Prerequisites

  • Bun v1.0.0 or later
  • Git
  • Node.js compatible environment

Installation

# Clone the repository
git clone https://github.com/carrier-sh/carrier.git
cd carrier

# Install dependencies
bun install

# Build the project
bun run build

# Initialize Carrier (local project)
carrier init

# Or initialize globally (system-wide)
carrier init --global

# Optional: Enable autocomplete
echo "source $(pwd)/scripts/autocomplete.sh" >> ~/.bashrc

First Deployment

# List available fleets
carrier ls

# Deploy a fleet with your request
carrier deploy simple-code-change "Add error handling to the login function"

# Monitor execution
carrier monitor

# Check status
carrier status

📖 Documentation

Core Concepts

Fleet

Reusable workflow blueprint defining tasks, routing, and approval points.

{
  "id": "example-fleet",
  "description": "Example workflow",
  "tasks": [
    {
      "id": "analyzer", 
      "agent": "code-analyzer.md",
      "nextTasks": [{"taskId": "executor", "condition": "success"}]
    }
  ]
}

Deployed Fleet

Active instance executing tasks with isolated state and outputs.

Task

Individual work unit executed by specialized AI agents with defined inputs and outputs.

Authentication

# Authenticate with GitHub OAuth
carrier auth

# Check current user
carrier whoami

# Logout
carrier logout

Fleet Management

# List fleets
carrier ls                    # Remote fleets
carrier ls --testing          # Local fleets

# Push/pull fleets
carrier push my-fleet         # To remote
carrier pull code-review      # From remote

# Remove fleets
carrier rm my-fleet --remote  # From remote
carrier rm my-fleet --testing # From local

Deployment Operations

# Deploy a fleet
carrier deploy <fleet-id> "<your request>"

# Approve pending tasks
carrier approve [deployed-id]

# Monitor active deployments
carrier monitor [deployed-id]

# Check deployment status
carrier status [deployed-id]

🏗️ Architecture

Object Model

  • Agent: Markdown file containing AI agent prompt
  • Fleet: Workflow template with task definitions and routing
  • DeployedFleet: Active workflow instance with isolated execution
  • Task: Work unit with inputs, outputs, and conditional routing

Execution Flow

User Request → Fleet → Tasks → Subagents → Outputs → Routing → Completion

Directory Structure

carrier/
├── src/                      # Source code
│   ├── cli.ts               # CLI entry point
│   ├── core.ts              # Core orchestration engine
│   ├── cli-commands.ts      # Command implementations
│   └── command-registry.ts  # Command definitions
├── seed/                     # System templates
│   ├── agents/              # Default agents
│   └── fleets/              # Default fleets
├── .carrier/                 # Runtime state (created on init)
│   ├── config.json          # Configuration
│   ├── fleets/              # Fleet templates
│   └── deployed/            # Active deployments
├── tests/                    # Test suite
├── docs/                     # Documentation
└── package.json             # Project configuration

🛠️ Development

Setup

# Install dependencies
bun install

# Development mode
bun run dev

# Type checking
bun run lint

# Run tests
bun test

Building

# Production build
bun run build

# Development build with watch
bun run dev

Testing

# Run all tests
bun test

# Run specific test suite
bun test tests/unit/
bun test tests/integration/

# Watch mode
bun run test:watch

📚 Commands Reference

| Command | Description | |---------|-------------| | Authentication | | | carrier auth | Authenticate with GitHub OAuth | | carrier whoami | Show current user | | carrier logout | Logout from API | | Fleet Management | | | carrier ls [--remote\|--testing] | List available fleets | | carrier push <fleet-id> [--testing] | Push fleet to remote/local | | carrier pull <fleet-id> [--testing] | Pull fleet from remote/local | | carrier rm <fleet-id> [--remote\|--testing] | Remove fleet | | Deployment | | | carrier deploy <fleet-id> <request> | Deploy fleet with request | | carrier approve [deployed-id] | Approve pending task | | carrier status [deployed-id] | View deployment status | | carrier monitor [deployed-id] | Monitor active execution | | System | | | carrier init [--global] [--no-claude] | Initialize Carrier | | carrier config | Show configuration | | carrier uninstall [--global] [--all] | Uninstall Carrier | | carrier help [command] | Show help |

Command Flags

  • init: --global, --no-claude, --dev
  • ls: --remote, --testing
  • push/pull: --testing
  • rm: --remote, --testing
  • status: --verbose, --json
  • config: --json
  • uninstall: --global, --all, --force

🌐 API Integration

  • Production API: https://carrier.sh/api
  • API Documentation: https://carrier.sh/api/openapi.json
  • Authentication: OAuth 2.0 with GitHub
  • Local Development: Configure .env for local API testing

🔧 Configuration

Environment Variables

Create .env for local development:

# Local API endpoint
CARRIER_API_URL=http://localhost:3000/api

# Callback port (default: 8123)
CARRIER_CALLBACK_PORT=8124

# Debug logging
CARRIER_DEBUG=true

Runtime Configuration

Located at .carrier/config.json after initialization.

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Follow TypeScript best practices
  • Add tests for new features
  • Update documentation as needed
  • Use conventional commits
  • Ensure all tests pass

📄 License

This project is licensed under the GNU Affero General Public License v3.0 or later. See the LICENSE file for details.

🆘 Support

  • Documentation: docs/
  • Issues: GitHub Issues
  • API Reference: https://carrier.sh/api/openapi.json

🙏 Acknowledgments

  • Built with Bun runtime
  • Powered by Claude Code integration
  • Inspired by modern DevOps orchestration patterns