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

@agent-finops/core

v0.9.7

Published

Canonical aibill evidence engine for agent work, billing semantics, attribution, provenance, runway, and Context Health.

Readme

@agent-finops/core

The canonical local-first evidence and decision engine for aibill: Claude Code/Codex activity ingestion, experimental Gemini CLI financial ingestion, provider cost semantics, attribution, provenance, runway, Context Health, and the shared Glance contract. Gemini support is fixture-verified and does not enter the Glance/status-line or Context Health contracts.

Most users should run npx aibill. This package is for integrations that need the same evidence-labeled calculations as the CLI and MCP server.

Supported library preview

Use Node.js 22+ ESM and import only from the package root:

import { analyzeSpend, parseUsageRecord } from "@agent-finops/core";

The supported 0.x subset covers usage-record validation/parsing, analyzeSpend, Receipt v0 creation/parsing, opaque source-record references, and the explicitly version-pinned FOCUS, OpenTelemetry GenAI, and Tokenomics projections. Tokenomics remains a not_published, zero-row tracking stub.

An explicit export map blocks unsupported deep imports. Other historical root exports remain available for compatibility but are not stabilized by this narrow preview. See the complete library contract, including the runnable JavaScript/TypeScript example and 0.x deprecation policy.

The supported functions are local, deterministic operations on caller-supplied objects for a given package version. Importing this package does not read transcripts or credentials, write state, call a provider, upload evidence, or send telemetry.

Schema parsing checks structure and internal consistency; it does not authenticate a source, verify a price, or reconcile an invoice. Callers must keep provenance and confidence labels truthful: reserve verified for official provider-reported financial evidence, keep modeled/local value estimated or missing, and leave unvalidated adapters untested.

This is the open foundation for aibill's financial-accountability mission. This package includes contracts for locally confirmed ownership, local self-attested approvals, and opt-in accepted GitHub outcomes. Those are not company-wide identity, RBAC, approval routing, invoice reconciliation, or verified business ROI.

Local API-equivalent estimates, subscription context, and official provider-reported cost are separate concepts and must not be added together. Reader/connector validation (live_verified, fixture_verified, untested, or failed) is also separate from each number's financial evidence (verified, estimated, detected_unverified, or missing). A live-tested local reader still emits estimates or missing cost—not billed spend. Source-boundary approval is a third, permission-only field: approving a folder for read-only scanning never verifies any financial number inside it.

MIT licensed. See the repository README and public roadmap.