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

@atsumell/trace-weave

v0.1.1

Published

Finite-trace temporal test oracle framework based on LTLf

Readme

trace-weave

Japanese version: README.ja.md

Finite-trace temporal test oracle framework based on LTLf for TypeScript.

trace-weave lets you describe temporal properties over event traces and verify them against finite executions. It is designed for cases where single-step assertions are too weak, such as request/response ordering, bounded eventuality, and value correlation across events.

Runnable repository examples live in examples/README.md. The full guide map is in docs/README.md. The AI-agent install guide is in docs/skills.md.

Requirements

  • Node.js 20 or later
  • ESM-only package

Node Support Policy

  • trace-weave 0.x supports Node.js 20 or later.
  • Node.js 20 support remains in place through the upstream Node.js 20 end-of-life date, April 30, 2026.
  • After April 30, 2026, a later release may raise the minimum supported version to Node.js 22 or later. Any such change will be called out in the release notes.

Installation

npm install @atsumell/trace-weave

Optional peer dependencies:

npm install fast-check vitest

Quick Example

import { predicate, always, implies, eventually } from "@atsumell/trace-weave/builder";
import { predicateId } from "@atsumell/trace-weave/core";
import { runOracle } from "@atsumell/trace-weave/monitor";

type AppEvent = { type: string };

const isRequest = predicateId("isRequest");
const isResponse = predicateId("isResponse");

const formula = always(
  implies(predicate(isRequest), eventually(predicate(isResponse))),
);

const result = runOracle(
  formula,
  {
    predicates: {
      [isRequest]: (event) => event.type === "request",
      [isResponse]: (event) => event.type === "response",
    },
    selectors: {},
  },
  [{ type: "request" }, { type: "response" }],
);

console.log(result.verdict); // "satisfied"

Modules

  • @atsumell/trace-weave/core: IDs, types, verdict algebra, runtime interfaces
  • @atsumell/trace-weave/builder: temporal formula builders
  • @atsumell/trace-weave/compiler: compile, validate, and print formula documents
  • @atsumell/trace-weave/monitor: batch and online evaluation
  • @atsumell/trace-weave/patterns: higher-level temporal patterns
  • @atsumell/trace-weave/fast-check: property-based testing helpers
  • @atsumell/trace-weave/vitest: custom matchers
  • @atsumell/trace-weave/ai: report formatting and AI-oriented helpers

Development

npm run lint
npm run skills:validate
npm run typecheck
npm test
npm run build
npm run pack:smoke

Documentation

License

MIT