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

@abeyjs/runtime

v0.1.4

Published

Application **composition root** for AbeyJs: wraps an **`OmegaChannel`** (`@abeyjs/core`), an **`OmegaFlowManager`** (`@abeyjs/flows`), lightweight **DI** (**`OmegaContainer`**), **agent** registration, optional **URL → intent** bridging, and an in-memory

Readme

@abeyjs/runtime

Application composition root for AbeyJs: wraps an OmegaChannel (@abeyjs/core), an OmegaFlowManager (@abeyjs/flows), lightweight DI (OmegaContainer), agent registration, optional URL → intent bridging, and an in-memory trace ring suited for the Inspector (@abeyjs/inspector).

Most apps create one OmegaRuntime inside omegaSetup (createOmegaRuntime()), then registerModule, registerAgent, registerPlugin, and onIntent handlers.


Composition

| Member | Role | |--------|------| | channel | OmegaChannel shared by flows, HTTP (@abeyjs/http), agents, and UI adapters. | | flow | OmegaFlowManagerdispatch, registerHandler (wrapped by runtime.onIntent). | | di | OmegaContainerprovide, provideFactory, get / tryGet. |

Constructor wiring:

  1. channel — injected or createChannel().
  2. createOmegaFlowManager(channel)flow owns intent routing with correlation metadata.
  3. channel.onAll captures every published event into _trace while setTraceEnabled(true) (default), capped at 2000 entries.

Lifecycle API (OmegaRuntime)

Intents & flows

  • dispatch(intent, { source? }) — forwards to flow.dispatch.
  • onIntent(name, handler) — shorthand for flow.registerHandler (FlowManagerContext matches @abeyjs/flows).

Agents

  • registerAgent(factory) — invokes factory(channel), connect() on success, replaces prior agent with same id after dispose on the old instance.

Plugins

  • registerPlugin({ id, install })install(runtime) may return teardown; registering the same id runs previous teardown first.
  • unregisterPlugin, disposeAll — teardown plugins and all agents (agents.clear after dispose).

Modules & DI

  • registerModule / registerModulesOmegaModule (container, runtime) => void executed once per module function (WeakSet dedupe).
  • provide, provideFactory, get, tryGet — delegate to di.

Troubleshooting: missing provider

If the app throws OmegaContainer: missing provider for token "abeyjs:…" (literal suffix matches your omegaToken("…") name):

  1. get / tryGet ran for a token that was never provide‘d or provideFactory‘d—often inside a copied install…(runtime) that expects HTTP or another service registered elsewhere.
  2. Fix: call runtime.registerModule((c, rt) => { … }) before that installer, and register the same omegaToken("…") (or shared const re-export) you pass to get.
  3. omegaToken("name") uses Symbol.for("abeyjs:name"), so the error string abeyjs:name matches the omegaToken argument.

Trace

  • getTraceSnapshot() — read-only view of the ring buffer (RuntimeTraceEvent).
  • setTraceEnabled(on) — disables/enables capture (does not clear history).

Inspectors and bridges typically read getTraceSnapshot or subscribe live via channel.onAll.


Types

RuntimeTraceEvent — mirrors channel envelopes: name, data (payload), correlationId, timestamp, optional source.

OmegaRegisteredAgentid, connect(), dispose(); satisfied by OmegaAgent implementations in @abeyjs/agents.

OmegaPlugin — named install hook with optional unsubscribe.

OmegaModule — grouping hook for DI registration against OmegaContainer + OmegaRuntime.


URL bridge (url-bridge.ts)

Browser helpers for intent-first routing (no framework router required):

| Function | Behaviour | |----------|-----------| | startUrlIntentSync(maps, flow, getPath?) | On load and optional popstate, match normalized pathname against PathIntentMap.path, flow.dispatch(intentOf(...)). No-op if window is undefined. | | setPath(path) | history.pushState without reload. | | intentFromQuery(search) | Deep link: ?omegaIntent=Name&foo=barintentOf("Name", { foo: "bar" }). |

PathIntentMap: template path without leading slash, IntentType, optional toPayload, syncOnPopState.


Dependencies

  • @abeyjs/core — channel, Intent, intentOf, correlation metadata.
  • @abeyjs/flowsOmegaFlowManager, FlowManagerContext.

Build

npm run build -w @abeyjs/runtime