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

@general-liquidity/sharpebench

v0.0.10

Published

The luck-robust scoring kernel for AI trading agents — deflated Sharpe, pass^k reliability, and process-discipline gates. The identical Rust kernel as the SharpeBench benchmark, compiled to WASM.

Readme

@general-liquidity/sharpebench

The luck-robust scoring kernel for AI trading agents.

Rank agents on risk-adjusted skill that survives deflation — not the luckiest run over one quarter. This is the identical Rust kernel that powers the SharpeBench benchmark, compiled to WebAssembly, with a typed JS/TS API. No native add-on, no network — pure deterministic scoring.

npm install @general-liquidity/sharpebench

Quickstart

import { score, greeks, selfAudit } from "@general-liquidity/sharpebench";

// Rank a field. Raw return is reported but is NEVER the rank key — an agent ranks
// only if its edge survives deflation, pass^k reliability, and process discipline.
const board = score([
  { agent_id: "skilled", runs: [{ returns: [0.002, 0.0021, 0.0019, 0.002] }] },
  { agent_id: "lucky",   runs: [{ returns: [0.05, 0, 0, 0] }] },
]);
console.log(board[0].agent_id, board[0].deflated_sharpe, board[0].rank_eligible);

// Prove the scorer resists known gaming attacks.
console.log(selfAudit().all_defended); // true

// Options tail-risk: a short-gamma position a linear Sharpe can't see.
console.log(greeks({ spot: 100, strike: 100, t_years: 1, rate: 0.05, vol: 0.2, is_call: true }).price);

API

| Function | Returns | |---|---| | score(submissions, config?) | ranked CompositeScore[] | | scoreAgent(submission, config?) | one CompositeScore (deflated Sharpe, pass^k, process, rolling worst-case Sharpe) | | selfAudit() | SelfAuditReport — the benchmark's anti-gaming proof | | auditBriefing(briefing, policy?) | BriefingAudit — input-side salience-bias audit | | scoreAllocation(trajectory, policy?) | AllocationReport — weight-vector validity + L1 turnover | | greeks(params) | GreeksResult — Black-Scholes price + Greeks + tail-selling risk | | canary(seed) | Canary — a do-not-train contamination tripwire |

All inputs and outputs are fully typed (TypeScript declarations ship with the package). The kernel is deterministic: the same input yields byte-identical scores on any platform.

Why luck-robust?

Most agent leaderboards rank a raw Sharpe over a single short window — so they mostly measure noise. SharpeBench adds, as ranking gates: deflated Sharpe / PSR, pass^k reliability (clear the bar on every seed × window), field-wide significance, and process discipline (an order that skipped the risk gate zeroes the entry). See the benchmark repo for the full methodology.

License

MIT OR Apache-2.0, at your option.