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

@fleettools/squawk

v0.2.0

Published

FleetTools Squawk - Agent Coordination System

Readme

Squawk - Fleet Coordination System

Squawk is the agent coordination and durable messaging system for FleetTools, analogous to SwarmTools' swarm-mail.

Purpose

Squawk provides:

  • Durable Mailbox - Append-only event queue with ordering guarantees
  • Durable Cursor - Progress tracking for event processing
  • Durable Lock - Distributed file locking (CTK - Consolidated Tool Kit)
  • Durable Deferred - Promise-based coordination
  • Flightline Integration - Git-backed work tracking
  • Hive Integration - Event sourcing for Flightline work orders

Directory Structure

squawk/
├── mail/                 # Durable Mailbox implementation
│   ├── mail.ts           # Mailbox API
│   ├── cursor.ts         # Durable Cursor
│   └── defer.ts          # Durable Deferred
├── streams/               # Event streaming primitives
│   ├── event.ts           # Event types
│   ├── store.ts           # Append-only event store
│   └── subscription.ts    # Event subscription
├── hive/                 # Flightline event source
│   ├── cells.ts           # CTK reservation events
│   ├── work-orders.ts      # Work order events
│   └── projections.ts     # Materialized views
├── memory/               # Semantic memory integration
│   ├── embeddings.ts       # Memory records with embeddings
│   └── retrieval.ts       # Search APIs
└── api/                  # Squawk API for plugins
    ├── coordinator.ts      # Dispatch API
    └── mail.ts            # Mailbox API

Event Types

Core Events

interface SquawkEvent {
  id: string;
  type: 'work_order.created' | 'work_order.started' | 'work_order.completed' |
          'cell.reserved' | 'cell.released' | 'tech_order.learned' |
          'specialist.assigned' | 'specialist.completed';
  stream_id: string;        // Work order or tech order ID
  data: Record<string, any>;
  occurred_at: string;      // ISO 8601
  causation_id?: string;   // For event chaining
}

Mailbox Concepts

DurableMailbox

Append-only event queue with ordering guarantees:

  • Events are written to durable storage
  • Sequential numbering per stream
  • No in-place modifications

DurableCursor

Progress tracking for event consumers:

  • Points to last processed event
  • Survives restarts
  • Enables resumable processing

DurableLock

Distributed file locking mechanism:

  • Prevents conflicting edits to the same file
  • Timeout-based to prevent deadlocks
  • Automatic cleanup on release

DurableDeferred

Promise-based coordination:

  • Wait for condition (event, timeout, or manual resolution)
  • Persistent across restarts
  • Used for Specialist handoffs

Flightline Integration

Squawk emits events that are consumed by Flightline to update:

  • Work order manifests
  • Cell reservation records
  • Tech Order promotion

Memory Integration

Squawk can publish memory events:

  • Tech Order learned events
  • Pattern extraction events
  • Specialist behavior patterns

These events are consumed by the Memory subsystem to create embeddings.

API Endpoints

POST /mailbox/append

Append events to durable mailbox.

POST /mailbox/subscribe

Subscribe to event streams.

GET /mailbox/stream

Stream events from a cursor position.

GET /coordinator/status

Get Dispatch status and active Specialists.

Sync Mode Interaction

When Sync Mode is enabled:

  • Events are published to Zero (projections only)
  • Full event logs remain local
  • CTK locks remain workspace-specific
  • Memory records are synced (metadata only, not embeddings)