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

@stigmergy/core

v0.2.0

Published

Pressure-field scheduling for multi-agent AI systems. Zero dependencies, pure TypeScript.

Readme

@stigmergy/core

Your multi-agent system doesn't need a manager. It needs a pressure field.

Most agent orchestration boils down to three bad options: polling on timers (wasteful), hardcoded if/else routing (brittle), or burning an LLM call to pick who goes next (slow and expensive). All three put coordination logic outside the system it's coordinating.

Stigmergy replaces them with a single primitive: a pressure field. Events deposit signals. Signals decay over time. When accumulated pressure crosses a threshold, the agent wakes and does the work. Dependencies resolve themselves through completion signals. Failed tasks create retry pressure automatically.

9.5x faster than LangGraph at 120 tasks / 30 agents. Scheduling overhead stays sub-millisecond at 1,000+ tasks -- the ceiling is your LLM API throughput, not the scheduler. Region-indexed storage and bounded signal accumulation mean it doesn't degrade as agent pools grow.

Zero dependencies, pure TypeScript. See the main repo for full benchmarks, scaling characteristics, and integration guides.

Install

npm install @stigmergy/core

Quick start

import { StigmergyScheduler } from "@stigmergy/core";

const scheduler = new StigmergyScheduler({
  tickIntervalMs: 1000,
  defaultWakeThreshold: 0.4,
});

scheduler.setDispatcher(async (agentId, task) => {
  // your agent logic here
  return { success: true };
});

scheduler.addTask({
  id: "draft",
  description: "Write first draft",
  agentId: "writer",
  dependencies: [],
  priority: 0.8,
});

scheduler.addTask({
  id: "review",
  description: "Review the draft",
  agentId: "reviewer",
  dependencies: ["draft"],
  priority: 0.6,
});

scheduler.start();

Low-level field

For custom scheduling logic, use PressureField directly:

import { PressureField } from "@stigmergy/core";

const field = new PressureField({
  decayHalfLifeSeconds: 300,
  evaporationThreshold: 0.01,
});

field.deposit({ agentId: "system", signalType: "event", intensity: 0.8, targetAgentId: "writer" });
field.decay();
const pressure = field.readPressure("writer");

Author

Built by Warwick McIntosh at Production Grade.

License

MIT