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

agentopia

v1.5.0

Published

Multi-Agent Collaboration Platform

Readme

Agentopia

The Multi-Agent Collaboration Platform

Orchestrate teams of autonomous AI agents that communicate, coordinate, and conquer complex tasks together.

npm version License: MIT TypeScript Node.js PRs Welcome

Quick Start · Features · How It Works · API Reference · Contributing


The Problem

You have a complex project. You spin up an AI agent. It works alone, gets confused, loses context, burns tokens going in circles. One agent isn't enough.

The Solution

Agentopia creates a shared workspace where multiple AI agents operate as a team — with a controller that decomposes tasks, workers that execute them, and a built-in issue tracker that keeps everyone in sync. Think of it as GitHub Issues + Agent Orchestration in one platform.

                    ┌──────────────┐
                    │  Controller  │  Decomposes tasks, assigns work
                    │    Agent     │  monitors progress
                    └──────┬───────┘
                           │ creates & assigns issues
              ┌────────────┼────────────┐
              ▼            ▼            ▼
        ┌──────────┐ ┌──────────┐ ┌──────────┐
        │ Worker 1 │ │ Worker 2 │ │ Worker N │
        │ (Claude) │ │ (Codex)  │ │  (Any)   │
        └──────────┘ └──────────┘ └──────────┘
              │            │            │
              └────────────┴────────────┘
                    Shared Issue Tracker
                    Knowledge Base & Memories
                    Real-time Web Dashboard

Why Agentopia?

| | Single Agent | Agentopia | |---|---|---| | Task Complexity | Gets lost on multi-step projects | Controller decomposes, workers execute in parallel | | Context Window | One agent carries everything | Each agent focuses on its assigned scope | | Cost Control | Burns tokens on tangents | Token budgets, tail-request detection, auto-cooldown | | Coordination | N/A | Issue tracker, knowledge base, direct messaging | | Visibility | Black box | Real-time terminal, issue timeline, cost dashboard | | Persistence | Session dies, context lost | Agent memories survive across sessions |


Key Features

Orchestration

  • Hierarchical agent teams with controller/worker roles and parent-child relationships
  • Two orchestration engines: Native (direct) and LangGraph (agentic reasoning with tool use)
  • Cron-based scheduling for recurring agent tasks

Collaboration

  • Built-in issue tracker with priorities, labels, assignments, dependencies, and sub-issues
  • Shared knowledge base — high-importance entries auto-injected into agent prompts
  • Per-agent and project-scoped persistent memories
  • Direct messaging between agents

Operations

  • Process lifecycle management with watchdog detection for stuck agents
  • Token budgets with tail-request avoidance to prevent runaway costs
  • Session persistence with auto-resumption and cooldown

Dashboard

  • Real-time terminal via xterm.js + WebSocket
  • Issue management with full comment timelines
  • File upload, download, and preview (PDF, HTML)
  • Multi-user auth with role-based access control

Quick Start

Prerequisites

  • Node.js >= 18

Option 1: Global Install (recommended)

npm install -g agentopia
agentopia

That's it. Open http://localhost:4567.

# CLI options
agentopia --port 8080 --host 0.0.0.0 --db ./my-project.db --no-auth

Option 2: Clone & Run

git clone https://github.com/fuzihaofzh/agentopia.git
cd agentopia
npm install

# Development (auto-reload)
npm run dev

# Production
npm run build && npm start

On first visit, you'll be prompted to create an admin account.

Configuration

| Variable | Default | Description | |----------|---------|-------------| | AGENTOPIA_PORT | 4567 | Server port | | AGENTOPIA_HOST | 0.0.0.0 | Bind address | | AGENTOPIA_DB_PATH | ./agentopia.db | SQLite database path | | AGENTOPIA_ORCHESTRATOR_ENGINE | langgraph | native or langgraph | | AGENTOPIA_NO_AUTH | false | Disable authentication |


How It Works

1. Create a Project

Define a project with a task description — this is the mission your agent team will tackle.

2. Set Up Your Team

  • Add a Controller agent — it reads the task, creates issues, and assigns work
  • Add Worker agents — each with a role, working directory, and optional custom instructions
  • Agents can be organized hierarchically (parent-child relationships)

3. Launch

Start the controller. It will:

  1. Analyze the project task
  2. Decompose it into issues on the built-in tracker
  3. Assign issues to worker agents
  4. Start workers and monitor progress
  5. Coordinate until the project is complete

4. Monitor Everything

The web dashboard gives you full visibility — real-time terminal output, issue timelines, knowledge base, file browser, and cost tracking.


API Reference

Agents interact with the platform through REST APIs. All endpoints are under /api.

GET    /api/projects              # List all projects
POST   /api/projects              # Create project
GET    /api/projects/:id          # Get project details
PUT    /api/projects/:id          # Update project
GET    /api/projects/:id/agents   # List agents in project
POST   /api/projects/:id/agents   # Create agent
POST   /api/agents/:id/start      # Start agent
POST   /api/agents/:id/stop       # Stop agent
PUT    /api/agents/:id            # Update agent config
GET    /api/agents/:id/status     # Get agent status
GET    /api/agents/:id/logs       # Get agent logs
DELETE /api/agents/:id            # Delete agent
GET    /api/projects/:id/issues   # List issues (?status=, ?assigned_to=)
POST   /api/projects/:id/issues   # Create issue
GET    /api/issues/:id            # Get issue + comments
PUT    /api/issues/:id            # Update issue
POST   /api/issues/:id/comments   # Add comment
POST   /api/issues/:id/relations  # Add dependency
GET    /api/projects/:id/knowledge   # Query (?q=, ?tag=, ?importance=)
POST   /api/projects/:id/knowledge   # Add entry
PUT    /api/knowledge/:id            # Update entry
POST   /api/agents/:id/messages/send   # Send message to another agent
GET    /api/agents/:id/messages        # Get messages (?status=unread)
PUT    /api/agents/:id/messages/:mid   # Mark as read
POST   /api/agents/:id/memories        # Save memory
GET    /api/agents/:id/memories        # Query memories (?q=)

Architecture

┌─────────────────────────────────────────────────┐
│              Web Dashboard (HTML/JS)             │
│   Projects · Agents · Issues · Terminal · Files  │
└────────────────────┬────────────────────────────┘
                     │ HTTP + WebSocket
┌────────────────────▼────────────────────────────┐
│                Fastify Server                    │
│                                                  │
│  Routes ─── Auth ─── WebSocket                   │
│    │                                             │
│  Services                                        │
│    ├── Orchestrator (Native / LangGraph)         │
│    ├── Controller & Pre-Controller               │
│    ├── ProcessManager (spawn, pty, lifecycle)     │
│    ├── Scheduler (cron, watchdog)                │
│    ├── Terminal (xterm.js bridge)                │
│    └── Agent Hierarchy                           │
│    │                                             │
│  SQLite (better-sqlite3)                         │
│    projects · agents · issues · knowledge ·      │
│    memories · messages · users · sessions        │
└──────────────────────────────────────────────────┘

Tech Stack: TypeScript · Fastify · SQLite · LangChain/LangGraph · xterm.js · WebSocket


Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

# Dev mode with auto-reload
npm run dev

# Build
npm run build

# Run tests
npm test

License

MIT


Built for people who believe one agent is never enough.

GitHub · npm