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

@m4ike1/chord

v0.1.1

Published

Application composition runtime for services, replicated state, RPC, and plugins

Readme

@m4ike1/chord

Application-composition runtime for systems assembled from plugins: facets, services (singleton and keyed), replicated state, and a pluggable remote-service boundary.

Chord is developed in the Ion monorepo but is not an Ion package: it has no dependency on any other Ion workspace package and can be used by unrelated applications. The only runtime dependency is esbuild, used by the facet bundler.

Entrypoints

| Import | Contents | |---|---| | @m4ike1/chord | Facets, services, bindings, replicated state, wire helpers, errors | | @m4ike1/chord/context | Invocation context (cancellation, scoped values) | | @m4ike1/chord/delta | Standalone JSON change-tracking primitive | | @m4ike1/chord/bundler | Facet bundler (bundleFacets, bundleFacetPackage) | | @m4ike1/chord/node | Node-only facet bundle loaders |

Minimal example

import { createFacetHost, defineFacet, defineService } from "@m4ike1/chord";
import { BACKGROUND_CONTEXT } from "@m4ike1/chord/context";
import type { Context } from "@m4ike1/chord";

interface Greeter {
	greet(name: string, ctx: Context): Promise<string>;
}

const GreeterService = defineService<Greeter>("example.greeter");

const provider = defineFacet({
	id: "example.greeter-impl",
	setup(env) {
		env.provide(GreeterService, {
			greet: async (name) => `hello ${name}`,
		});
	},
});

const consumer = defineFacet({
	id: "example.consumer",
	setup(env) {
		const greeter = env.use(GreeterService);
		env.onActivate(async () => {
			console.log(await greeter.greet("ion", BACKGROUND_CONTEXT));
		});
	},
});

const host = await createFacetHost({ facets: [provider, consumer] });
// ... later
await host.dispose();

Rules visible here: setup is synchronous declaration only (no service calls during setup); the host validates the graph, binds services, and activates providers before consumers.

Constraints that apply everywhere

  • Remote service arguments, results, snapshots, and updates must be finite strict JSON (null for absence, never undefined). Process-local services (declared with { local: true }) accept unrestricted contracts but are never published remotely.
  • Service IDs beginning with $chord. are reserved. $chord.service is the control service used for catalogue and subscription calls.
  • Import context constants and functions from @m4ike1/chord/context; their generic names do not pollute the root API.

Docs

  • docs/facets.md — facets, hosts, loaders, lifecycle, reload
  • docs/services.md — service tokens, singleton/keyed modes, contracts, facades
  • docs/state-delta.md — replicated state and the delta primitive
  • docs/remote.md — provider, endpoint, transport adapters, bindings, wire helpers
  • docs/bundling.md — bundling facet packages and loading them on Node
  • docs/context.md — invocation context and cancellation
  • docs/reference.md — per-entrypoint API inventory