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

@taurus-ai/swarm-spawner

v0.4.0

Published

Ephemeral AI agent orchestration system with Hedera blockchain auditability

Readme

Swarm Spawner

Every AI agent gets a quantum-safe identity, an immutable audit trail, and a Hedera wallet.

Spawn. Certify. Execute. Sign. Audit. Die.

npm version License: MIT CI TypeScript


Why Swarm Spawner?

No other agent framework has all three:

| Feature | Swarm Spawner | CrewAI | LangGraph | AutoGen | OpenAI Swarm | |---------|:---:|:---:|:---:|:---:|:---:| | Ephemeral agents (spawn & die) | Yes | No | No | No | Abandoned | | PQC identity (ML-DSA-65) | Yes | No | No | No | No | | Blockchain audit trail (Hedera HCS) | Yes | No | No | No | No | | Model-agnostic (bring your own LLM) | Yes | Yes | Yes | Yes | No | | TypeScript-first | Yes | No | No | No | No | | EU AI Act compliant audit logs | Yes | No | No | No | No |

Built for the EU AI Act deadline (August 2, 2026). Your AI agents need auditable, tamper-proof decision logs. Yesterday.


Quick Start

npm install swarm-spawner
import { SwarmSpawner } from "swarm-spawner";

const spawner = new SwarmSpawner({
  executor: async (agent, model) => {
    // Bring your own LLM — Anthropic, OpenAI, Ollama, anything
    return await yourLLM.generate(agent.task);
  },
});

const result = await spawner.spawn({
  tasks: [
    { id: "analyze", description: "Find vulnerabilities in this code", input: { code }, modelTier: "deep" },
    { id: "review",  description: "Check code style and patterns", input: { code }, modelTier: "balanced" },
    { id: "test",    description: "Generate unit tests", input: { code }, modelTier: "fast" },
  ],
  strategy: "parallel",
});

console.log(`${result.successCount}/${result.totalAgents} agents completed`);
// Each agent got a PQC-signed birth/death certificate
// Full lifecycle recorded on Hedera HCS

Core Concepts

Ephemeral Agents

Agents are born, execute one task, and die. No persistent state. No memory leaks. No zombie processes. Each agent gets:

  • A birth certificate (PQC-signed at spawn)
  • A model assignment (routed by tier)
  • A death certificate (PQC-signed at completion/failure)
  • An audit trail entry (recorded on Hedera HCS)

Pluggable Model Executor

Swarm Spawner doesn't lock you into any LLM provider. Pass your own executor:

import { SwarmSpawner, type ModelExecutor } from "swarm-spawner";

// Use any LLM provider
const executor: ModelExecutor = async (agent, config) => {
  const response = await anthropic.messages.create({
    model: config.model,
    messages: [{ role: "user", content: agent.task }],
  });
  return response.content[0].text;
};

const spawner = new SwarmSpawner({ executor });

PQC Identity (ML-DSA-65)

Real post-quantum cryptography, not stubs. Every agent gets a quantum-safe identity:

import { PQCIdentityManager } from "swarm-spawner";
import { randomBytes } from "@noble/hashes/utils.js";

const pqc = new PQCIdentityManager({ masterSeed: randomBytes(32) });

// Issue certificates
const birthCert = pqc.issueBirthCertificate(agent, swarmId);
const deathCert = pqc.issueDeathCertificate(completedAgent, swarmId);

// Verify — returns true only if signature + payload are untampered
const isValid = PQCIdentityManager.verify(birthCert); // true

Tier Enforcement

Built-in licensing for Free / Pro / Enterprise:

import { TierEnforcer } from "swarm-spawner";

const enforcer = new TierEnforcer(); // no key = free tier
enforcer.enforce({ type: "agentCount", count: 10 });
// throws: "Agent limit exceeded: 10 requested, max 5 on free tier"

Model Tiers

| Tier | Use Case | Example Models | |------|----------|----------------| | Fast | Simple checks, listings, formatting | Groq Llama 3.1, Ollama Qwen, Gemini Flash | | Balanced | Standard analysis, code review | Claude Haiku, GPT-4o Mini, Gemini Pro | | Deep | Complex reasoning, architecture | Claude Sonnet, GPT-4 Turbo, DeepSeek Coder |

The ModelRouter uses round-robin selection within each tier:

import { ModelRouter } from "swarm-spawner";

const router = new ModelRouter();
const model = router.selectModel("deep"); // rotates through deep-tier models

Hedera Blockchain Audit Trail

const spawner = new SwarmSpawner({
  enableAuditTrail: true,
  hederaNetwork: "testnet",
  executor: yourExecutor,
});

// Every spawn() call:
// 1. Creates an HCS topic (one per swarm)
// 2. Logs SWARM_START, AGENT_BIRTH, AGENT_DEATH, SWARM_COMPLETE
// 3. All entries are PQC-signed and immutable

Environment Variables

HEDERA_OPERATOR_ID=0.0.12345
HEDERA_OPERATOR_KEY=302e...
PQC_MASTER_SEED=<32-byte-hex>  # for PQC identity

Architecture

┌─────────────────────────────────────────────────────────┐
│                    SwarmSpawner                          │
│                                                         │
│  ┌─────────────┐  ┌──────────────┐  ┌───────────────┐  │
│  │ ModelRouter  │  │ PQCIdentity  │  │ TierEnforcer  │  │
│  │ fast/bal/deep│  │ birth/death  │  │ free/pro/ent  │  │
│  └──────┬──────┘  └──────┬───────┘  └───────┬───────┘  │
│         │                │                   │          │
│  ┌──────▼──────────────────────────────────────────────┐│
│  │         SPAWN → CERTIFY → EXECUTE → SIGN → DIE     ││
│  │                            │                        ││
│  │                   ┌────────▼────────┐               ││
│  │                   │ ModelExecutor   │ ← Your LLM    ││
│  │                   │ (pluggable)     │               ││
│  │                   └─────────────────┘               ││
│  └─────────────────────────────────────────────────────┘│
│                           │                             │
│  ┌────────────────┐  ┌────▼───────────┐                │
│  │ ResultAggregator│  │ Hedera HCS    │                │
│  │ pass/fail rates │  │ audit trail   │                │
│  └────────────────┘  └────────────────┘                │
└─────────────────────────────────────────────────────────┘

Pricing

| | Free | Pro ($49/mo) | Enterprise | |---|:---:|:---:|:---:| | Max agents per spawn | 5 | Unlimited | Custom | | Hedera network | Testnet | Mainnet | Mainnet | | PQC signing | No | Yes | Yes | | Model tiers | Fast only | All | All | | Audit export | Console | HCS topics | HCS + API | | EU AI Act reports | No | Basic | Full | | Support | GitHub Issues | Email | Dedicated |


Roadmap

  • [x] v0.1.0 — Core spawner, model router, Hedera integration
  • [x] v0.2.0 — Pluggable executor, PQC identity (ML-DSA-65), tier enforcement
  • [ ] v0.3.0 — AI SDK adapter (@taurus-ai/swarm-spawner-ai-sdk), npx init CLI
  • [ ] v0.4.0 — EU AI Act compliance reports, topic-per-swarm audit
  • [ ] v0.5.0 — Interactive playground, documentation site

Events

Monitor agent lifecycle with EventEmitter:

spawner.on("agent:start", (agent) => console.log(`Started: ${agent.id}`));
spawner.on("agent:model:start", ({ agentId, model }) => console.log(`Model: ${model.model}`));
spawner.on("agent:model:complete", ({ agentId }) => console.log(`Model done: ${agentId}`));
spawner.on("agent:complete", (agent) => console.log(`Done: ${agent.id} — ${agent.status}`));
spawner.on("complete", (result) => console.log(`Swarm: ${result.successRate * 100}%`));

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Run npm test (46 tests must pass)
  4. Submit a PR

See CHANGELOG.md for release history.

License

MIT License with Patent Notice — See LICENSE for details.


TAURUS AI Corp | GitHub | npm