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

@arnilo/prism-server

v0.3.0

Published

Optional framework-free Web Request-to-Response handler for explicitly selected Prism agents and workflows.

Readme

@arnilo/prism-server

Optional framework-free Web Request -> Response exposure for selected Prism agents and workflows.

npm install @arnilo/prism @arnilo/prism-workflows @arnilo/prism-server
import { createPrismHandler } from "@arnilo/prism-server";

const handler = createPrismHandler({
  agents: { support: agent },
  workflows: { publish: { definition: workflow, checkpoints } },
  authorize: async ({ request }) => validHostToken(request)
    ? { ownership: { tenantId: "tenant-1", userId: "user-1" } }
    : false,
});

const response = await handler(new Request("https://api.example.test/prism/agents/support/runs", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({ input: "Hello" }),
}));

Routes: direct/SSE agent run, cross-replica durable event reconnect through object agent exposures with events + resolveRun, explicitly selected durable agent status/resume through agentRuns, direct/SSE workflow run, durable workflow enqueue/status/cancel/resume/replay, and optional ownership-scoped schedule create/list/pause/resume/trigger/delete. agentRuns uses core createAgentRunLifecycle(); no lifecycle route exists by default. Agent resume accepts legacy binary decision or batch decisions: RunDecision[] (exactly one). All bodies, responses, events, queues, concurrency, and timeouts are bounded.

Optional 0.0.14 co-work handlers (mount beside the API handler): createConversationHandler (durable user-scoped conversation threads with reconnectable redacted replay — createConversationService) and createArtifactHandler (artifact revisions, approve/reject review, expiring authorized delivery links — createArtifactService over the existing checkpoint store). Both are ownership-scoped and fail closed without authorization.

Optional deployment helpers (compose beside the API handler — no embedded listener):

import {
  createPrismDrainController,
  createPrismHealthHandler,
  createMemoryRateLimiter,
  createPrismDeploymentLease,
} from "@arnilo/prism-server";

const drain = createPrismDrainController();
const handler = createPrismHandler({
  agents: { support: agent },
  authorize,
  drain,
  rateLimit: createMemoryRateLimiter({ maxRequests: 60, windowMs: 60_000 }),
});
const health = createPrismHealthHandler({ drain, ready: () => store.ping() });
// Workers: createWorkflowCoordinator(...). Coordinators: createPrismDeploymentLease({ key: "coordinator", ... }).

Nothing is exposed by default. Authorization is required; ownership comes only from its result. No listener, framework, auth provider, user database, credential discovery, queue adapter, or hidden package activation ships.

Full API, route, limits, security, and deployment notes: docs/server.md.