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

@systemfsoftware/effect-daemon-conformance

v1.0.0

Published

Pairwise conformance for effect-daemon-spec media — scripted child lifecycles, a medium-independent scenario catalogue, trace projection to a medium's declaration, and a fiber-reference comparison.

Downloads

828

Readme

@systemfsoftware/effect-daemon-conformance

Pairwise conformance for @systemfsoftware/effect-daemon-spec media: scripted child lifecycles, a medium-independent scenario catalogue, trace projection to a medium's declaration, and a comparison against the fiber reference.

Installation

pnpm add @systemfsoftware/effect-daemon-conformance

Features

  • Medium-independent scenarios: Conformance.Scenarios holds supervision-tree shapes and per-child ChildScripts — become ready, exit normal, exit abnormal, ignore a graceful stop, never become ready — with a control sequence that drives them.
  • One call to prove a medium: Conformance.prove(driver) runs the whole catalogue against the fiber reference and returns one ConformanceReport.
  • Declared loss, not assumed: both traces are projected through the medium's MediumDeclaration — its reporting level and group-stop guarantee — before comparison, so a medium is held only to what it can observe and honour.
  • Typed mismatches: Conformance.compare(reference, candidate, declaration) returns TracesConform or TracesDiverge, and a divergence names the scenario, the medium and the first diverging index.
  • A medium declares its own margins: a driver whose start costs real time — a VM boot, a process spawn — declares scenario: { millis, startTimeoutMillis }. Both sides of every comparison then run with each child role's start timeout raised to at least startTimeoutMillis, and each side is bounded by millis instead of the catalogue's five seconds.

Usage

import { NodeChildProcessSpawner, NodeFileSystem, NodePath } from '@effect/platform-node-shared'
import { Conformance } from '@systemfsoftware/effect-daemon-conformance'
import { ProcessMedium } from '@systemfsoftware/effect-daemon-process'
import { Effect, Layer } from 'effect'

const media = Layer.mergeAll(
  Conformance.FiberReferenceLayer,
  ProcessMedium.layer({ readyLine: ProcessMedium.fixtureReadyLine }),
  NodeChildProcessSpawner.layer.pipe(Layer.provide(Layer.merge(NodeFileSystem.layer, NodePath.layer))),
)

const conforms = Conformance.prove(ProcessMedium.conformanceDriver({ fixturePath: './child-script.mjs' })).pipe(
  Effect.map(Conformance.isConforming),
  Effect.provide(media),
)

A driver is { name, declaration, port, launch }. ProcessMedium.conformanceDriver is one; SocketMedium, ClusterMedium and MicroVMMedium ship theirs the same way.

launch turns a ChildScript into the medium's own program and hands back the control channel that advances it — a queue for the fiber reference, stdin or a fixture socket for another medium. The control channel reaches the child directly and never the supervisor's mailbox, so no control step appears in a trace.

A step is addressed to the generation of the incarnation it is for. A medium whose incarnation stops its own consumer when the kernel stops it may ignore the generation, as the fiber reference does; a medium whose channel outlives the stop it was told about must not, or the step a restarted child is for reaches the incarnation on its way out.

The reference is Conformance.FiberReference, proven against itself by construction:

Conformance.prove(Conformance.FiberReference).pipe(Effect.provide(Conformance.FiberReferenceLayer))

License

Apache-2.0