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

0xkobold

v0.7.3

Published

Your digital familiar - Koclaw-style gateway, session management, and multi-agent orchestration

Downloads

1,936

Readme

0xKobold

                         ..
            .                                        ..
                 . ,^   .                   .   .....          ......
            ,^ ... :: .  .                   ...     ,;.    ...
           .lI^ I.`I,.. ;;..             . `l}^ ^:;+td]^..      ^:!!i .
           . ,:^I^I< . :+,..             ..l+tI`!?o@f,     .,~fWQft?<..
        `:. ^<l>,!I>^`<!^              .. `?_-11COQYI:;l!l+1o@#[l
         !<`l.ii,~l^iI-,`!I..   .. ...   ^l>??}JOoUUZ1]-fYXB@fl    ,+i..
     . `.:<+:<ll>~l>+-<:~!^    .      I_>_?<+?}Bb+M8%oOf}-_+_!~~+[CQJ:..
     `:,lI,:Ii!<:`!iii>_+^ :!^  ^``^,l+?<_}+fJ?1ItJ1<>?[?JX1YdOOodtl  ..
    . li:^~Il, :Il`::,:i!,I>I`^l_~--<i_<>?+~?_-CY}~i+-?~]fO@@@@@Ml
     ..,!``I,!]JZXJ{]I,,~~;,  I[_<-t}1doCdfdQCOB%oJ{+?{ddMO@@@#@o>` .:-< .
      .``l;;{QW%###WQZ+;>>I ...<YfZ{]}Xb!IQ@@8%W@@QJ{[-JJZ@@@@@@%dZbMX[,..
     . II ,I]bo%8%%MQd?>;  .    ;li   . ,Z@@@@#@MI]~ZUOX}YB@@@@@8oQY};
      . ^>^.^~fbXXdZf_,, Il .         I~d@@#MOIY>l[ZoW@@@@@@@@@UIMO{.   
        `I!<` ,lllll :,i;,^`    ...~+<d#oJQQbIIJdUB@@@@@@@#%OU8WW@@81+,`
       .,i[l:i!, `:I<-l<-, ^^`  ..:]ZodXIdbC1i1Z#@@@@@@%%BWWoO%@@@@%bQf[^.
       .J-I ~I!.iCU->-1_<`ii>~:....:_1}It}!.::+tX%#@%MbMBQ%@@@@@@%%WbY]+-~`.
        XWOUMO{,Z@B-;1B]:I_->i^      ...   `;;JOB#QB#M8@@@@@@8OOOQdZ{~i!i!:.
       ..iJB@@M[1@%Y<X@o][]]>:III,^,    ....,Z@@@@@@@@@@@@@@8#WOMoZI~~~~+I..
           `~M@8X#@8Zf#@BUWb1{1?]1}]<!^ ...:b@@@@@@@@@@@@@8BW#dXZf[?-+l:`. ..
         ..  :JB@@@@%%@@@B#@%W%OQ8BMQbU> ..>M%@@@@@@@@@@@BWW8##OoXZXQCi^ ...
           ..  ^?1YbMWO#@@@@@@@@@@@@@@OZ-` d@#@@@@@@@@#%W8##OoXZXQCi^ ...
             ..     .`.:!~-CXd%@@@@@@@8oQ}}%@@@@@@@@@@@BWWBWMMdbf[->>^..
               .....          :{@@@@@@@OYUCQ8@@@@@@@@8BB8WMQModU?++:!I..
                    ..........  _@@B8%@@#QMdYJO@@@@%BB%obO%obbXZ{?-~l,;..
                              .. {ooQB%o@%OO-{Z@%oOooWOXZYYII}?_~iiI.`
                              . ^+IoQWQbOQXdJbfU#BdUZYJI[{[--l>:`
                                `><+-]1??_~>++~!]J{}~>i>>;!;`     ..
                                                   `         . ..
                                 ........ ......... .........

"Your digital familiar - a personal AI assistant that connects, persists, and evolves"

🔥 Latest: v0.7.0 "NPM Release"

v0.7.0 — Published to npm! @0xkobold/pi-* extension packages available
v0.6.11 — Automatic secret redaction in env commands, README restructure
v0.6.10 — Gateway auto-starts by default for TUI (detects existing)
v0.6.9 — Fix gateway detection when dev already running
v0.6.8 — Add /lair-sync command to bridge local/global context
v0.6.7 — Auto-detect and notify about project lairs in local mode
v0.6.6 — Enforce global workspace sandboxing, proper CWD isolation
v0.6.5 — Clean dist/ before build, removes ghost extensions
v0.6.4 — Fix workspace detection from home directory
v0.6.3 — Workspace-aware footer, cleaner gateway display
v0.6.2 — Gateway auto-start opt-in (fixes port conflicts)
v0.6.0 — JSON-RPC gateway, session persistence, multi-channel

New in v0.6.0: Koclaw Gateway (JSON-RPC), Session Management, Auth Profiles, Session Resume
From v0.5.0: Generative Agents, Semantic Memory, Multi-agent Orchestration
From v0.3.0: Multi-channel (WhatsApp, Telegram, Slack), Docker Sandbox


✨ Features

v0.6.3 - Workspace Fix

| Feature | Status | Description | |---------|--------|-------------| | Path Resolution | ✅ | Fixed workspace detection from home directory | | startsWith Fix | ✅ | Correctly handles paths like /home/user vs /home/user/.0xkobold |

v0.6.2 - Workspace Aware

| Feature | Status | Description | |---------|--------|-------------| | Workspace Footer | ✅ | Shows 🏠 ~/.0xkobold (global) or 📁 /path (local) | | Gateway Indicator | ✅ | Only shows when gateway is running (cleaner footer) | | /workspace Command | ✅ | Display current workspace info |

v0.6.0 - Koclaw Gateway

| Feature | Status | Description | |---------|--------|-------------| | Koclaw Gateway | ✅ | JSON-RPC WebSocket/HTTP gateway with method handlers | | Session Management | ✅ | SQLite-based session persistence with metadata | | Session Resume | ✅ | Auto-save on shutdown, restore previous sessions | | Auth Profiles | ✅ | Multiple API keys per provider with automatic rotation | | Gateway Auto-Start | ✅ | Gateway starts automatically with TUI | | Gateway Protocol | ✅ | Hello/Connect/Request/Response/Event frame protocol |

v0.5.0 - Draconic Intelligence

| Feature | Status | Description | |---------|--------|-------------| | Multi-Agent Orchestration | ✅ | Spawn specialized agents with unified /agent-orchestrate API | | Generative Agents | ✅ | Memory stream, reflection, planning (Stanford HCI research) | | Semantic Memory | ✅ | Ollama-powered embeddings with hybrid search | | Natural Language Commands | ✅ | Parse "spawn a worker" → structured commands |

v0.3.0 - The Gap Closer

| Feature | Status | Description | |---------|--------|-------------| | WhatsApp | ✅ | Baileys integration with QR pairing | | Telegram | ✅ | Complete bot with webhooks | | Slack | ✅ | Webhook & slash commands | | Docker Sandbox | ✅ | Secure container execution | | Tailscale | ✅ | Zero-config VPN for remote access | | Vision (AI) | ✅ | Claude Vision image analysis | | Audio | ✅ | Whisper transcription | | PDF | ✅ | Text extraction & metadata | | Hot-Reload Skills | ✅ | Add capabilities without restart | | Discord Integration | ✅ | Bot interface | | WebSocket Gateway | ✅ | Real-time communication (port 18789) |

v0.7.0 - NPM Extensions

| Feature | Status | Description | |---------|--------|-------------| | Pi Ollama | ✅ | @0xkobold/pi-ollama - Local + Cloud Ollama models | | Pi Wallet | ✅ | @0xkobold/pi-wallet - CDP Agentic Wallet + x402 payments | | Pi ERC-8004 | ✅ | @0xkobold/pi-erc8004 - Agent identity + reputation |


Quick Start

Prerequisites

# Install Bun (required)
curl -fsSL https://bun.sh/install | bash

# Install Ollama (for local LLM)
curl -fsSL https://ollama.com/install.sh | sh
ollama pull qwen2.5-coder:14b
ollama pull nomic-embed-text  # For semantic memory

Install & Run

Option 1: Install from npm (Recommended)

# Install globally
npm install -g 0xkobold

# Initialize workspace
0xkobold init

# Start 0xKobold
0xkobold start

Option 2: Clone from source

# Clone repository
git clone https://github.com/kobolds/0xKobolds.git
cd 0xKobolds

# Install dependencies
bun install

# Initialize workspace
bun run init

# Start 0xKobold
bun run start

Multi-Agent System 🎯

Spawn specialized agents for different tasks:

# Spawn via commands
/agent-spawn coordinator "plan a feature"
/agent-spawn specialist "implement auth"
/agent-spawn researcher "analyze codebase"
/agent-spawn reviewer "check for security issues"

# Or natural language
spawn a worker to fix the database connection
analyze this complex architecture problem
delegate the user authentication project

Agent Types

| Type | Emoji | Best For | |------|-------|----------| | coordinator | 🎯 | Task decomposition, delegation | | specialist | 🧠 | Deep domain expertise | | researcher | 🔍 | Information gathering | | worker | ⚒️ | Implementation | | reviewer | 👁️ | Code review, validation |


Koclaw Gateway 🌐

JSON-RPC style gateway for multi-channel integration with session persistence.

# Gateway API endpoints
GET  /health          # Health check
GET  /protocol        # List available methods
WS   /ws              # WebSocket endpoint

# Protocol frames
{ type: "hello", protocol: "1", version: "2" }
{ type: "connect", sessionKey: "...", agent: "..." }
{ type: "request", id: "...", method: "agent.run", params: {...} }
{ type: "response", id: "...", result: {...} }
{ type: "event", event: "agent.spawned", data: {...} }

Session Management

Sessions automatically persist across restarts:

# Sessions auto-save on shutdown
Ctrl+C → Session saved → Restart → Resume from previous

# List active sessions via CLI
0xkobold gateway connections list

Auth Profiles

Multiple API keys per provider with automatic rotation:

# Use auth profiles automatically
Config → Detect provider → Load profile → Rotate on failure

Generative Agents 🧠

Based on Stanford HCI research. Agents that remember, reflect, and plan:

# Automatic memory capture
- User interactions
- Tool executions
- Agent decisions

# Reflection (auto-triggered every 20 observations)
/agent-reflections              # Show insights

# Planning
/agent-plans                    # View plans
/agent-status                   # Agent stats

# Manual memory operations
remember "User prefers TypeScript"
recall "what was the database decision"

Memory Categories: observation, thought, action, reflection
Retrieval: Combines recency × importance × relevance


Secret Management 🔐

Environment variables with automatic redaction:

# Show env vars (secrets automatically redacted)
0xkobold env show

# Show with secrets revealed (careful!)
0xkobold env show --show-secrets

# Show entire .env file (redacted)
0xkobold env show --file

# Check status
0xkobold env status

Auto-redacted: TOKEN, KEY, SECRET, PASSWORD, API_KEY, WEBHOOK_URL, and token-like values


Skills System 🔧

Create custom capabilities without restarting:

// skills/my-skill.ts
import { Skill } from '../src/skills/types';

export const mySkill: Skill = {
  name: 'mySkill',
  description: 'What it does',
  risk: 'medium',  // safe | medium | high
  toolDefinition: {
    type: 'function',
    function: {
      name: 'mySkill',
      description: 'For the LLM',
      parameters: {
        type: 'object',
        properties: {
          param: { type: 'string' }
        },
        required: ['param']
      }
    }
  },
  async execute(args) {
    return { success: true, data: result };
  }
};

Auto-reload enabled - changes appear immediately!


NPM Extension Packages 📦

Official Pi extensions published to npm:

@0xkobold/pi-ollama

Local + Cloud Ollama models with auto-discovery

pi install npm:@0xkobold/pi-ollama

@0xkobold/pi-wallet

CDP Agentic Wallet + x402 payments + Ethers.js backup

pi install npm:@0xkobold/pi-wallet

@0xkobold/pi-erc8004

ERC-8004 identity + reputation on Base L2

pi install npm:@0xkobold/pi-erc8004

Note: Pi extensions use the pi install CLI, not npm directly.


Commands

Core

bun run start          # Start main server
bun run dev            # TypeScript watch mode
bun run build          # Compile to dist/
bun run tui            # Start Terminal UI
bun run cli            # Run CLI commands
bun run init           # Initialize workspace

Agent Orchestration

/agent-orchestrate list                    # List all agents
/agent-orchestrate spawn_main coordinator  # Spawn main agent
/agent-orchestrate spawn_subagent worker "task"
/agent-orchestrate analyze "complex task"  # Analyze complexity
/agent-orchestrate delegate "big project"  # Auto-delegate

Generative Agents

/agent-memories         # Show memory stream
/agent-reflections      # Show insights
/agent-plans           # Show plans
/agent-status          # Agent stats
/generative_observe "what happened"
/generative_reflect    # Generate insights
/generative_plan daily # Create daily plan

Memory

/remember "Content" --category fact --importance 0.9
/recall "vague description"
/memories              # List recent
/memory-export         # Export to file

Gateway Commands

# Start/stop gateway
0xkobold gateway start           # Start gateway server
0xkobold gateway stop            # Stop gateway
0xkobold gateway status          # Show gateway status

# List connections
0xkobold gateway connections list
0xkobold gateway health

Environment

0xkobold env status              # Check environment status
0xkobold env show                # Show env vars (redacted)
0xkobold env show --show-secrets # Show with secrets visible
0xkobold env show --file         # Show .env file contents

Configuration

Global config: ~/.0xkobold/config.json

{
  "version": "0.6.0",
  "llm": {
    "provider": "ollama",
    "model": "qwen2.5-coder:14b",
    "baseUrl": "http://localhost:11434"
  },
  "agents": {
    "default": "assistant",
    "maxConcurrent": 5
  },
  "memory": {
    "enabled": true,
    "semanticSearch": true
  },
  "gateway": {
    "enabled": true,
    "port": 7777,
    "host": "0.0.0.0"
  },
  "channels": {
    "discord": { "enabled": false }
  }
}

Architecture

Extension-Based

src/extensions/
├── core/
│   ├── agent-orchestrator-extension.ts    # Multi-agent orchestration
│   ├── generative-agents-extension.ts     # Memory, reflection, planning
│   ├── perennial-memory-extension.ts      # Semantic memory (Ollama)
│   ├── gateway-extension.ts               # WebSocket server (v0.6.0)
│   ├── gateway-status-extension.ts        # Gateway TUI integration
│   ├── discord-extension.ts               # Discord bot
│   └── ...
└── community/
    ├── draconic-subagents-wrapper.ts      # PI ecosystem bridge
    └── ...

Event-Driven

eventBus.emit('agent.spawned', payload);
eventBus.on('agent.spawned', handler);

Key Components

| Component | Purpose | |-----------|---------| | src/agent/ | Agent runtime with subagent support | | src/gateway/ | Koclaw JSON-RPC gateway (port 7777) | | src/gateway/protocol/ | Frame types (Hello, Connect, Request, Response, Event) | | src/gateway/methods/ | Method handlers (agent.run, agent.status, etc.) | | src/memory/ | Conversation persistence & session management | | src/memory/session-store.ts | SQLite session persistence | | src/memory/session-resume.ts | Auto-save/restore sessions | | src/memory/memory-integration.ts | Gateway + generative agents bridge | | src/skills/ | Hot-reload skill system | | src/tui/ | Terminal UI (React-based) | | src/event-bus/ | Decoupled event system | | src/cli/extensions/env.ts | Secret management with auto-redaction |


Testing

# Run all tests
bun test

# Specific test suites
bun test test/unit/extensions/generative-agents.test.ts
bun test test/integration/
bun test test/e2e/

# Test coverage
bun test --coverage

Test Suites:

  • Unit: Core logic (scoring, relevance, parsing)
  • Integration: Database operations, persistence
  • E2E: Full agent lifecycle (observe → reflect → plan)

Project Structure

0xKobold/
├── src/
│   ├── agent/              # Agent runtime & orchestration
│   ├── approval/           # Risk-based approval
│   ├── channels/           # Discord integration
│   ├── cli/                # CLI commands
│   ├── config/             # Configuration
│   ├── discord/            # Discord bot
│   ├── event-bus/          # Event system
│   ├── extensions/         # Extensions
│   │   ├── core/           # Built-in extensions
│   │   └── community/      # Community wrappers
│   ├── gateway/            # WebSocket gateway
│   ├── llm/                # LLM providers (Ollama)
│   ├── memory/             # Persistence layer
│   ├── skills/             # Skill system
│   │   ├── builtin/        # Built-in skills
│   │   └── loader.ts       # Hot-reload logic
│   ├── tui/                # Terminal UI
│   └── utils/              # Utilities (nl-patterns.ts, redact.ts)
├── skills/                 # Your custom skills (hot-reloaded)
├── test/                   # Test suites
│   ├── unit/
│   ├── integration/
│   └── e2e/
├── docs/                   # Documentation
│   ├── archive/            # Historical docs
│   ├── research/             # Research notes
│   └── usage.md, workflow.md # Living docs
└── scripts/                # Deployment scripts

Key Files

  • src/pi-config.ts - PI framework configuration
  • src/gateway/gateway-server.ts - Koclaw gateway server
  • src/gateway/protocol/ - JSON-RPC protocol frames
  • src/gateway/methods/agent.ts - Gateway agent handlers
  • src/memory/session-store.ts - Session persistence
  • src/memory/session-resume.ts - Auto-save/restore
  • src/memory/memory-integration.ts - Gateway + memory bridge
  • src/agent/auth-profiles.ts - Auth profile management
  • src/extensions/core/generative-agents-extension.ts - Generative agents
  • src/utils/nl-patterns.ts - Natural language parsing
  • src/utils/redact.ts - Secret redaction utilities
  • src/cli/extensions/env.ts - Environment & secrets management
  • ~/.0xkobold/config.json - User configuration
  • ~/.0xkobold/memory/perennial/knowledge.db - Semantic memory
  • CLAUDE.md - AI assistant context

License

MIT © 2026


Built while you sleep by your Digital Familiar 🐉

Join the evolution on Github