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

@appport/core

v1.0.2

Published

AppPort capability runtime: registry, dispatcher, events, streams, sessions.

Readme

@appport/core

The capability runtime: registry, dispatch pipeline, validation, sessions, events, streams, operations and telemetry.

Core knows nothing about HTTP, WebSocket, IPC, or any storage engine.

import { createApplication, defineCapability, defineEvent } from "@appport/core";
import { s } from "@appport/schema";

const application = createApplication({
  application: { id: "com.example.docs", name: "Docs", version: "1.0.0" },
  capabilities: [documentsSave],
  events: [documentsChanged],
  authorizer: permissionAuthorizer()
});

const response = await application.handleRequest(envelope, { session, transport: "http" });

The pipeline

receive -> validate -> authorize -> execute -> serialize -> respond

Authorization always runs before privileged logic. Input is validated before authorization, so policies see well-formed input. Output is validated too, so a handler cannot silently break its published contract.

What the runtime provides

  • Registry and manifest — the application's contract, rendered as JSON Schema.
  • Application registration — define an application, verify it, and register for durable tracking with identity, manifest, fingerprint, and verification state.
  • Events — at-most-once publication, with payload validation.
  • Streams — async iterables or context.createStream(), with cancellation.
  • Sessions — transport-neutral, pluggable storage.
  • Idempotency — replayed responses for capabilities that declare support.
  • Concurrency — parallel, serialized, or keyed(field).
  • Timeouts — per capability and per request, clamped by the server.
  • Operations — operations.status, operations.cancel, operations.events for work that outlives a request.
  • Telemetry — identifiers and outcomes, never credentials or payloads.
  • Sanitization — production errors carry no stack traces, paths or secrets.

The reserved appport.manifest and appport.ping capabilities are registered automatically, so discovery works identically on transports that have no URLs.

Application Registration (PR20)

Define, verify, and register applications for durable tracking:

import { defineApplication, ApplicationRegistry, MemoryApplicationStateStore } from "@appport/core";

// 1. Define an application (PR18)
const application = defineApplication({
  identity: { id: "invoicing", name: "Invoicing", version: "1.0.0" },
  provides: [invoiceCreate, invoiceSend],
  requires: [{ name: "payments.charge", version: 1 }],
  implementations: { "invoice.create@1": createImpl, "invoice.send@1": sendImpl }
});

// 2. Verify the application (PR19)
const verification = application.verify();
if (!verification.ready) throw new Error("Application verification failed");

// 3. Get the canonical manifest and fingerprint (PR19)
const manifest = application.manifest();
const fingerprint = application.fingerprint();

// 4. Register for durable tracking (PR20)
const store = new MemoryApplicationStateStore();
const registry = new ApplicationRegistry(store);

const registered = await registry.register({
  identity: application.identity,
  manifest,
  fingerprint,
  verification
});

// Tracked application state with identity, manifest, fingerprint, verification
console.log(registered.id, registered.status, registered.revision);

The registered application state is portable and contains no implementation details — only the contract, identity, verification state, and lifecycle.