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

@absolutejs/outcomes

v0.1.1

Published

Outcome feedback loop for AI agents — typed artifact features + attribution-joined outcome stats + evidence rendering, so an agent's context (not its weights) gets measurably better per user. Experiment variants bolt on.

Readme

@absolutejs/outcomes

The outcome feedback loop that makes an AI agent measurably better per user — without training anything.

Built for the AbsoluteJS AI Studio.

The idea

An agent produces artifacts (outreach emails, generated pages, drafts). Things happen to them (opens, replies, conversions, meetings). If you record both sides with typed features frozen at production time, the agent's context can get smarter every week — and you can show users the receipts.

You define the vocabulary once — artifact kinds with typed, bucketable features, and an ordered list of outcome events — and the package derives:

  • The ledger contract (OutcomeStore): record artifacts + outcomes, attribution is the join on your artifact id.
  • The stats (computeOutcomeStats): each outcome's rate overall, per feature bucket, and per experiment variant when present (the A/B bolt-on). Below your minSample it reports not-ready, so hosts stay quiet instead of showing confident noise — the cold-start contract.
  • The evidence (renderEvidence): a compact text block your OWN AI call distills into a "what works for you" memo that conditions future generations. The package never calls a model itself.
import {
  computeOutcomeStats,
  defineOutcomeVocabulary,
  renderEvidence,
} from "@absolutejs/outcomes";

const vocabulary = defineOutcomeVocabulary({
  artifacts: {
    outreach_email: {
      label: "Outreach email",
      features: {
        subjectWords: {
          type: "number",
          buckets: [
            { label: "short", max: 7 },
            { label: "medium", max: 12 },
          ],
          overflowLabel: "long",
        },
        mode: { type: "string", values: ["outreach", "followup"] },
        hasQuestion: { type: "boolean" },
      },
    },
  },
  outcomes: ["opened", "replied", "meeting_scheduled"],
});

// At production time: store.recordArtifact({ id: sendId, ownerId, kind, features })
// From your signal hooks: store.recordOutcome({ artifactId: sendId, outcome: "replied" })

const rows = await store.listArtifactsWithOutcomes(
  ownerId,
  "outreach_email",
  since,
);
const stats = computeOutcomeStats(vocabulary, "outreach_email", rows, {
  minSample: 10,
});
if (stats.ready) {
  const memo = await yourAiCall(
    `Distill what works:\n${renderEvidence(stats)}`,
  );
  // …feed `memo` into every future draft; show `stats` in your UI.
}

Same machinery for an outreach copilot (features: subject length, tone; outcomes: replies) and an AI website builder (features: hero copy length, layout; outcomes: conversions from your analytics beacon).

License

Business Source License 1.1 — free for your own products and internal use; you may not offer it as a competing hosted experimentation/analytics/ optimization service. Converts to Apache 2.0 on July 8, 2030. See LICENSE.