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

@gridlock/kernel

v0.1.1

Published

Generic agent-based modelling kernel — deterministic schedulers, graph-space environment, event emission, ledger/journal/taxonomy/narrative/social substrates, and workspace projection. Engine-level with zero product coupling.

Readme

@gridlock/kernel

Generic agent-based modelling substrate for gridlock games — deterministic schedulers, a graph-space environment, event emission, and the ledger / journal / taxonomy / narrative / social layers built on top.

Engine-level with zero product coupling: the kernel knows about agents, ticks and events, and nothing about what any particular game's agents are. Hosts wire it to a product through adapters, not subclassing.

Zero runtime dependencies.

What you get

| Symbol | Purpose | |---|---| | Model, ModelConfig | The simulation container — holds agents, space and bus, and drives ticks. | | RandomScheduler, SimultaneousScheduler, FixedOrderScheduler | Tick ordering policies. Determinism comes from the injected Rng, so a seeded run replays exactly. | | createRng, Rng | Seeded PRNG. Every stochastic decision in the kernel draws from it. | | GraphSpace | Graph-structured environment — nodes, edges, agent placement and neighbourhood queries. | | EventBus, EventSubscriber | In-process event emission for the tick loop. | | Ledger, LedgerSnapshot, LedgerQuery, ObserverScope | Append-only, replayable, observer-scoped view over the bus. Adds what the raw bus lacks: a serialization boundary for cross-session replay, structured queries (by actor, kind, tick range), and scoping — what a given observer is allowed to have seen. | | Journal, JournalEntry, JournalConfig | Entry-typed player journal — player-authored records of their own reasoning, explicitly not system truth. Vocabulary-neutral: products register their own entry types, statuses and transition rules. | | Taxonomy: MOVEMENT, COMMUNICATION, MEETING, TRANSFER, RELATIONSHIP + movementEvent(…) etc. + isMovement(…) etc. | A shared five-kind event vocabulary with constructors and type guards, so downstream layers can reason about events without a per-game schema. | | salience, topHighlights, buildTimeline, firedStorylets, detectAnomalies | Narrative projection — scoring which events matter, assembling timelines, and flagging outliers. | | SocialState, SocialGraph, createCharacterState | Relationship, memory, motive and faction state between agents. | | createProjection, createCompositeProjection, ProjectionRegistry | Workspace projections — filtered/transformed views of kernel state for a host UI. |

Installation

npm install @gridlock/kernel

Status

Pre-1.0 (0.1.x). The engine is developed inside a private monorepo and published from there; there is no public issue tracker or support commitment. See the @gridlock org on npm for the rest of the packages.

MIT licensed.