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

@gungorbasa/retrievalkit-embedding

v0.1.0

Published

Optional local FP32 MiniLM embeddings for Node.js on macOS arm64

Readme

RetrievalKit Embedding for Node.js

@gungorbasa/retrievalkit-embedding is RetrievalKit's optional Node.js embedding package. It produces local FP32 MiniLM embeddings through the official ONNX Runtime 1.24.3 without adding embedding dependencies to the base retrieval package.

The production contract is fixed: at most 256 tokens and exactly 384 finite, L2-normalized Float32Array values. RetrievalKit databases continue to accept F32 vectors publicly and may store them with the independent I8ScalarQuantized database encoding.

import { OnnxEmbedder } from "@gungorbasa/retrievalkit-embedding";

await using embedder = await OnnxEmbedder.load({
  runtimeLibraryPath: "/application/lib/libonnxruntime.1.24.3.dylib"
});
const vector = await embedder.embed("local semantic retrieval");

load() and prefetch() are the only APIs that may acquire verified model artifacts. embed() and embedBatch() use an already-loaded session and do not perform network or model-cache access. Set localOnly: true to refuse model downloads.

The application normally supplies the official runtime with runtimeLibraryPath or RETRIEVALKIT_ONNX_RUNTIME_LIBRARY. A repository-local packaging build can opt into copying a verified runtime:

RETRIEVALKIT_BUNDLE_ONNX_RUNTIME=1 \
RETRIEVALKIT_ONNX_RUNTIME_LIBRARY=/path/libonnxruntime.1.24.3.dylib \
npm run build:native

Only the qualified runtime with exact size 27,724,968 bytes and SHA-256 b65e22247d3ce2976931cfc6be3929e6fb81cd55e2f202e95e0ab8c9de5fa729 is accepted for package-local discovery. The binary is not stored in this repository.

The package is included in the v0.1.0 release inventory but is not available from npm until the protected release gates pass.