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

@vali98/uma-reader

v0.0.1

Published

Browser-focused OCR/matcher reader for Uma Musume screenshots (stats page, deck, podium).

Readme

uma-reader

Browser OCR for Uma Musume statsheets, support decks and podium screenshots.

Install

npm install @vali98/uma-reader
npx uma-reader-assets --out public/uma-reader

Serve public/uma-reader/ at /uma-reader/. Run the asset-copy command before builds to refresh descriptors and the packaged OCR runtime/model.

Read an image

import { readStats, readDeck, readPodium } from "@vali/98uma-reader";

const { data, warnings } = await readStats(file);

Readers accept a File, Blob, image URL, canvas, ImageBitmap, ImageData, or RGBA PixelImage. Results contain data, warnings and optional debug boxes. Unreadable fields are null. In Next.js, call readers from a client component's event handler or effect.

For podiums, optionally validate the event header:

const result = await readPodium(file, { checkHeader: "Sagittarius" });
// result.header: { text, cup, isFinals, matches }

Use checkHeader: true to accept any zodiac Cup Finals header. Failed checks add a warning and preserve the detected rows.

Preload assets

Assets load on the first read and are reused across calls. To preload:

import { loadStatsAssets, readStats } from "@vali/98uma-reader";

await loadStatsAssets();
const result = await readStats(file, { loadAssets: false });

Also available: loadDeckAssets(), loadPodiumAssets(), loadAllAssets() and loadOnnx(). loadOnnx() downloads ONNX runtime files; the first OCR session initializes WASM. Read options are optional; loadAssets defaults to true.

The OCR model and runtime are served from the copied assets and load on demand. Model and WASM bytes are cached in browser storage when available.

Configure

Call configure() before loading to customize URLs or receive progress:

import { configure } from "@vali/98uma-reader";

configure({
  baseUrl: "/uma-reader/",
  onProgress: ({ stage, loaded, total }) => console.log(stage, loaded, total),
});

Other options: modelUrl, cacheModel, cacheWasm, fetch and signal. Inference uses one thread. Cross-origin asset hosts need CORS headers. Custom models must use ORT format and match the runtime operators and packaged charset.

Contributing