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

@uvrn/algox

v4.0.0

Published

Tunable signal-ranking pipeline — turns a pile of agent-gathered candidates into a ranked list of the most prominent signals for any dashboard.

Readme

@uvrn/algox

Minimal install

npm install @uvrn/algox

No other @uvrn/* packages are required. @uvrn/algox has zero runtime dependencies.

@uvrn/algox turns a pile of candidates gathered by UVRN agents into a ranked list of the most prominent signals — scored, de-duplicated, diversity-capped, and freshness-filtered. It is pure logic with no UI, so any dashboard can call it and render the result.

The ranking shape is adapted from the x-algorithm (X's open-sourced "For You" feed algorithm, Apache License 2.0): a staged pipeline of Filter → Scorer → Selector. The reusable lessons kept here are weighted scoring, anti-domination diversity, and freshness — everything is a tunable knob, nothing is hardcoded. See the Attribution section and the NOTICE file for the full credit.

What this package provides

  • rankSignals(candidates, config) — one call, ranked result out.
  • A composable pipeline (runPipeline) and individual stages you can re-wire.

What you provide

  • Candidate[] — whatever your agents gathered. Only label is required; url, source, prominence, observedAt, and a free-form signals map are used when present, and any extra fields pass through to the output.

Install

pnpm add @uvrn/algox

Usage

import { rankSignals } from '@uvrn/algox';

const candidates = [
  { label: 'oversized blazers', url: 'https://vogue.com/a', source: 'vogue.com',
    prominence: 90, observedAt: '2026-05-20', signals: { mentions: 1200 } },
  { label: 'quiet luxury', url: 'https://vogue.com/b', source: 'vogue.com',
    prominence: 85, observedAt: '2026-05-21', signals: { mentions: 1500 } },
  // ...more from your agents
];

const result = await rankSignals(candidates, {
  topK: 10,          // how many to keep
  capPerSource: 3,   // max per source — stops one outlet dominating
  maxAgeDays: 30,    // drop stale signals (null disables)
  weights: { prominence: 1, mentions: 0.001 }, // blend signals, your weights
});

result.ranked;   // ScoredCandidate[] — highest score first, ready to render
result.dropped;  // what was filtered out, each with a `reason`
result.warnings; // e.g. insufficient_candidates, unparseable_date
result.config;   // the knobs actually used

Feed result.ranked straight into any dashboard component.

Tuning knobs

| Knob | Default | Effect | |---|---|---| | topK | 10 | How many signals to surface | | capPerSource | 3 | Max signals per source (diversity / anti-domination) | | maxAgeDays | 30 | Drop signals older than this; null disables | | weights | { prominence: 1 } | Per-signal weights blended into the score |

Composing your own pipeline

import {
  runPipeline, dropMissing, dedupByKey, weightedScorer, capPerGroup, topK, hostOf,
} from '@uvrn/algox';

const ctx = await runPipeline({
  query: { candidates },
  stages: [
    dropMissing('label'),
    dedupByKey((c) => c.url ?? c.label),
    weightedScorer({ weights: { prominence: 1 } }),
    capPerGroup({ groupBy: (c) => c.source ?? hostOf(c.url) ?? c.label, cap: 3 }),
    topK({ k: 10 }),
  ],
});
ctx.selected; // ranked output

Status

v4.0.0 — part of the v4 protocol generation. See CHANGELOG.md.

Attribution

The signal-ranking approach in this package — the staged Filter → Scorer → Selector pipeline shape, weighted scoring, anti-domination diversity capping, and freshness filtering — was adapted from xai-org/x-algorithm, the open-sourced recommendation system behind X's "For You" feed, released under the Apache License 2.0. The package name algox nods to that origin. The adaptation is a reimplementation for UVRN's use case, not a copy; full details in the NOTICE file shipped with this package. This package is not affiliated with or endorsed by X Corp. or X.AI Corp.

License

MIT — Suttle Media LLC / UVRN-org. Third-party attribution: see NOTICE.