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

@stackwright/otters

v0.2.0

Published

Stackwright Otter Raft - AI agents for site generation

Readme

@stackwright/otters

🦝 Otter Raft Architecture — AI agents that discover each other and self-organize.

Just like real otters, our AI otters don't wait for instructions. They discover who's in the water and adapt their behavior accordingly. A Page Otter that finds a Dashboard Otter nearby will offer to connect live API data. No central planner required.


Installation

npm install @stackwright/otters
# or
pnpm add @stackwright/otters

The postinstall script automatically installs otters to ~/.code_puppy/agents/ for code-puppy discovery.

If you need to re-run the installation:

node node_modules/@stackwright/otters/scripts/install-agents.js

The Otter Raft

| Otter | Role | Discovery | |-------|------|-----------| | 🦦🏗️ Foreman Otter | Dynamic coordinator | Uses list_agents() to discover otters | | 🦦🎨 Brand Otter | Brand discovery | May guide discovery itself if alone | | 🦦🌈 Theme Otter | Visual design | Adapts to available Brand output | | 🦦📄 Page Otter | Content composition | Offers Pro features if Dashboard Otter found |


How Otters Discover Each Other

Every otter starts by asking: "Who's out there?"

code-puppy -i -a stackwright-foreman-otter
# Foreman: "Discovering available otters..."
# Found: Brand Otter ✓, Theme Otter ✓, Page Otter ✓
# Pro detected: API Otter, Dashboard Otter ✓

The raft adapts based on what's installed:

| Install Type | Default Otters | Optional Pro Otters | |--------------|----------------|---------------------| | OSS only | Brand → Theme → Page | — | | OSS + Pro | Brand → Theme → Page | Dashboard, API |

When a Page Otter finds a Dashboard Otter in the raft, it:

  • Offers to connect live API data to pages
  • Suggests dashboard components
  • Enables real-time data visualization

How It Works

The Pipeline

User Request
     │
     ▼
┌────────────────────────┐
│  Foreman Otter         │ ◄── Entry point, discovers otters
│  "Starting build..."   │
└───────┬────────────────┘
        │
        ▼
┌────────────────────────┐
│  Brand Otter           │ ◄── Phase 1: Discovery
│  (conversational)      │
└───────┬────────────────┘
        │ creates BRAND_BRIEF.md
        ▼
┌────────────────────────┐
│  Theme Otter           │ ◄── Phase 2: Design
│  (colors, fonts)       │
└───────┬────────────────┘
        │ creates stackwright.yml
        ▼
┌────────────────────────┐
│  Page Otter            │ ◄── Phase 3: Content
│  (pages)               │
└───────┬────────────────┘
        │ creates pages/
        ▼
┌────────────────────────┐
│  Visual Verification   │ ◄── Screenshots
└───────┬────────────────┘
        │
        ▼
     USER

Invoking Otters

Otters are invoked through Code Puppy's agent invocation:

# Start a full site build (Foreman discovers available otters)
code-puppy -i -a stackwright-foreman-otter

# Just refine the theme
code-puppy -i -a stackwright-theme-otter

# Add a new page (offers Pro features if Dashboard Otter found)
code-puppy -i -a stackwright-page-otter

File-Based Handoffs

| File | Created By | Read By | |------|-----------|---------| | BRAND_BRIEF.md | Brand Otter | Theme Otter, Page Otter | | stackwright.yml | Theme Otter | Page Otter | | pages/*.yml | Page Otter | (rendered) |


Visual Verification

Each otter uses Stackwright MCP tools for visual verification:

  • stackwright_render_page — screenshot a page
  • stackwright_render_diff — before/after comparison
  • stackwright_check_dev_server — verify dev server is running

Architecture Details

For detailed architecture documentation, see OTTER_ARCHITECTURE.md in the monorepo root.

Key Principles

  1. Self-Discovery — Otters discover each other at runtime via list_agents()
  2. Dynamic Adaptation — Behavior changes based on available otters
  3. Separation of Concerns — Each otter owns one domain
  4. Sequential Execution — Dependencies enforced by Foreman
  5. File-Based Handoffs — BRAND_BRIEF.md, stackwright.yml, pages/*.yml
  6. Validation at Every Step — No invalid YAML proceeds
  7. Visual Verification — Screenshots close the feedback loop

Package Structure

@stackwright/otters/
├── package.json
├── tsconfig.json
├── README.md
├── AGENTS.md              # Agent reference
├── scripts/
│   └── install-agents.js  # Postinstall script
└── src/
    ├── stackwright-brand-otter.json
    ├── stackwright-foreman-otter.json
    ├── stackwright-page-otter.json
    └── stackwright-theme-otter.json

Dependencies

Otters rely on:

  • @stackwright/mcp — MCP server for scaffolding, validation, and rendering
  • @stackwright/core — Core Stackwright types and utilities
  • Code Puppy — Agent runtime environment

License

MIT