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

@lyboai/media

v0.3.1

Published

LyboOS media layer for JS hosts — content-addressed media store, EXIF scrubbing, grounded-vision guardrails, OS-AI surface & bridge contracts. Mirrors lybo-core/src/media.

Readme

@lyboai/media

The LyboOS media layer for JavaScript hosts — multimodality with the same structural guarantees LyboOS gives text. Mirrors lybo-core/src/media (Rust) contract-for-contract; both sides are covered by tests against the same JSON shapes.

npm i @lyboai/media

What it does

  • Content-addressed media storeMediaStore.ingest() scrubs metadata before hashing (JPEG EXIF: GPS, device serials, comments), so the un-scrubbed original never exists in the store. Retention (sweep) is a policy, not a hope.
  • MediaRef / OsAiSurface contracts — the exact JSON shapes the Rust runtime consumes (register_os_ai_surface, ModelRequest.media). Media crosses the bridge by id + path, never as base64 blobs.
  • Grounded-vision guardrailscrossCheckWithOcr() verifies visual claims against an independent OCR pass (it can only confirm, never invent); visionGate() maps low confidence, unconfirmed critical claims, or empty extractions to needs_human_review. For pixels, the floor is a human — never a guess.
  • Media egress gateassertEnvelopePermitted() enforces the mesh doctrine: consent id required, scrub recorded, raw-to-cloud off by default, LocalOnly privacy mode always wins, hard size budget.

Quick example

import {
  MediaStore, crossCheckWithOcr, visionGate,
} from "@lyboai/media";

const store = new MediaStore("/data/lybo/media");
const rec = store.ingest(jpegBytes, "image", "image/jpeg", Date.now());
// rec.scrubbed → ["exif_stripped"]; rec.media_id → "med_…"

// After the OS vision engine extracts claims and OCR ran independently:
const checks = crossCheckWithOcr(claims, ocrText);
const outcome = visionGate(claims, checks, 0.75);
if (outcome.outcome === "needs_human_review") {
  // park for approval — same consent flow as any sensitive tool
}

Part of LyboOS

LyboOS is the agent layer for every OS — one governed agent across Gemini Nano (Android), Apple Foundation Models (iOS), Phi Silica (Windows) and a fully offline sovereign mode. Docs: https://lyboai.app/developers/docs/lyboos · Live demo: https://lyboai.app/lyboos/demo.html