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

@ewhauser/eve-ambient

v0.6.3

Published

Durable ambient attention engine for typed channel events.

Downloads

6,241

Readme

@ewhauser/eve-ambient

Provider-independent durable attention with one standard Workflow run per correlation.

pnpm add @ewhauser/eve-ambient@^0.6.0 [email protected]

Bind an application to Workflow:

import { workflow } from "@ewhauser/eve-ambient/workflow";

const ambient = application.with(workflow({
  callbackUrl: "https://agent.example.com",
  callbackSecretEnv: "AMBIENT_CALLBACK_SECRET",
  maxCallbackRequestBytes: 16 * 1024 * 1024,
}));

export const POST = ambient.fetch;

Re-export the packaged workflow so the consumer's Workflow compiler discovers it:

// workflows/ambient.ts
export * from "@ewhauser/eve-ambient/workflows";

The package also exposes the defining correlation and callback-step modules so Workflow can assign package-based durable IDs instead of embedding package-manager or build-system filesystem paths. Applications should continue to use the aggregate workflows export shown above.

The binding provides:

  • engine.accept() for grouped correlation admission; and
  • fetch() for authenticated /ambient/prepare and /ambient/deliver callbacks.

Workflow admission shares resolved hook-owner handles across engine instances in a process-local 1,024-entry LRU with a 10-minute idle TTL. A missing or inactive cached owner is evicted, and the unchanged append safely retries by token before cold initialization. This is an advisory optimization over the standard Workflow API and requires no additional infrastructure.

Workflow selects its standard World. Vercel uses the managed World automatically. For Workflow 5 self-hosting, use the official Postgres package's beta channel or published @ewhauser/world-celld@^0.3.0; both require the startup and infrastructure documented by their linked deployment guides in the repository README.

For deterministic tests:

import { memory } from "@ewhauser/eve-ambient/memory";

const ambient = application.with(memory({ clock, maxRecentMessages: 48 }));
await ambient.engine.runDue();

Each correlation Workflow keeps a 48-entry recent-message ring and caps applied full-value reducer state at 1,000 pending branches and 16 MiB by default. It stops consuming the durable hook while at capacity, leaving overflow queued in Workflow until due work drains state. It does not rotate automatically, so the Workflow event history continues to grow while that correlation remains active.

The Workflow publisher also bounds each process-local operational lane at 1,000 queued-or-publishing appends and 64 MiB of canonical append bytes by default. Overflow rejects with retryable WorkflowAdmissionBackpressureError; retry the original stable input after capacity becomes available.

Immutable Workflow options are fingerprinted into correlation ownership. Changing them starts a new owner for new events and does not migrate the old owner's reducer state. Final effects must deduplicate the stable wakeKey because prepare and delivery are at-least-once.