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/core

v0.1.1

Published

This package is AbeyJs stripped to the spine: **one channel**, **typed events**, **intents**, and the naming rules everything else hangs on. No screens, no network stack, no flow engine, no agents—those imports **this**.

Readme

@abeyjs/core

This package is AbeyJs stripped to the spine: one channel, typed events, intents, and the naming rules everything else hangs on. No screens, no network stack, no flow engine, no agents—those imports this.

The boundary stays sharp on purpose—anything attaching to Omega is expected to speak the same OmegaEvent / Intent dialect and reuse the agreed ids and metadata.


OmegaChannel

The channel is the single bus for the app. Parts of the system don’t call each other by deep imports; they publish and listen.

  • publish(name, payload, meta?) builds a full OmegaEvent (sequenced id, correlation, timestamp) and emits it.
  • emit / emitTyped are the primitive path when you already have the envelope.
  • on subscribes to one name; onAll sees the firehose (tracing, coordinators, inspectors).
  • namespace(name) returns a scoped view: emits are tagged; listeners resolve events that belong to that scope or carry no explicit namespace.

You normally get one channel instance from runtime setup and thread it everywhere that matters.


Events versus intents

Events (OmegaEvent) record what already occurred: bounded payload + EventMeta (correlation id, timestamp, optional source).

Intents (OmegaIntent, alias Intent) are commands: “someone requested this”. Same rough envelope as events—the split is intentional so flows and tooling can branch on semantics without overloading strings.

Builders:

  • omegaEventFromName(...) assigns a sequential ev:… id unless you override.
  • intentOf(...) does the symmetric job for intents (intent:…).

Correlation vs sequence

Correlation ids tie a chain of publishes together (replay, diagnostics, tracing). createCorrelationId() hands you a branded id (UUID where the runtime allows).

Sequential ids from omegaNextSequencedId(prefix) are for stable ordering inside logs and tooling. They answer a different question than correlation.


Wire names

Stringly event names drift. Helpers here constrain them:

| Shape | Meaning | |--------|---------| | omegaEventNameDottedCamel("authLoginSuccess") | "auth.login.success" via camelCase breakpoints | | omegaEventNameEnumWire("authLoginSuccess") | literal wire equals the identifier | | Same pair exists for intents (omegaIntentNameDottedCamel / omegaIntentNameEnumWire) |

OmegaAgentId / OmegaFlowId helpers exist so registration strings stay coherent.


OmegaObject and OmegaFailure

OmegaObject is the minimalist contract (id, meta) shared by intents, failures, anything we treat as first-class instrumentation.

OmegaFailure wraps a human-readable message, optional structured details, and the usual metadata.


IntentHandler

type IntentHandler<TPayload, TContext> = (payload: TPayload, ctx: TContext) => void | Promise<void>;

Runtime and glue layers compose these; definitions live here because every layer needs the same signature.


Layout

channel/     OmegaChannel + namespaced façade
events/      OmegaEvent, EventMeta, listeners
semantics/   intents, naming, typed envelopes, intentOf
types/       OmegaObject, OmegaFailure

Root-level omega-correlation-id.ts and omega-sequencer.ts are helpers too small for their own folder.


Dependents

@abeyjs/runtime, @abeyjs/flows, @abeyjs/agents, @abeyjs/http, and @abeyjs/view all anchor here. Respect the "sideEffects": false constraint: consumers should tree-shake what they never import.


Build

npm run build -w @abeyjs/core