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

@qvac/fabric

v0.7.0

Published

Shared bare addon hosting the qvac-fabric (forked llama.cpp + ggml) runtime for QVAC inference addons

Readme

@qvac/fabric

Shared bare addon that hosts the qvac-fabric runtime (Tether's fork of llama.cpp + ggml) as a single prebuilt shared library. Consumer addons (@qvac/llm-llamacpp, @qvac/embed-llamacpp, …) declare @qvac/fabric as an npm dependency and dynamically link against it, so the multi-hundred-megabyte llama/ggml runtime is built once and loaded once per process instead of being statically embedded into every addon.

It is modeled on @qvac/onnx and follows the same npm + prebuilds/ + include_bare_module(... PREBUILD) + companion-.bare pattern. See INTEGRATION.md for the consumer guide.

What it ships

  • Prebuilt .bare shared library (prebuilds/<platform>/qvac__fabric.bare) — contains libllama, libcommon, libmtmd, and libggml-base. It exports the full llama_* / LLAMA_* / ggml_* / gguf_* / mtmd_* C API plus the common_* and json_schema_to_grammar C++ symbols.
  • C++ headers (prebuilds/include/) — ggml*.h, gguf.h at the root and llama.h, llama-cpp.h, common/*.h, mtmd/*.h under include/llama/.
  • CMake config (prebuilds/share/qvac-fabric/) — find_package(qvac-fabric) exposes qvac-fabric::headers for compile-time includes
  • ggml compute backends — on Linux and Android, separate shared libraries ship under prebuilds/<platform>/qvac__fabric/ and are loaded at runtime via ggml_backend_load_all_from_path(). On macOS, Windows, and iOS the backends are linked statically inside qvac__fabric.bare and self-register on load.

Architecture

┌──────────────────────────────────────────────────────────┐
│  Consumer addons (.bare)                                   │
│  @qvac/llm-llamacpp   @qvac/embed-llamacpp   …             │
│  link qvac-fabric::headers + DT_NEEDED [email protected] │
└───────────────────────────┬────────────────────────────────┘
                            │ (ELF SONAME dedup → one load)
┌───────────────────────────▼────────────────────────────────┐
│  [email protected]  (this package)                        │
│  libllama · libcommon · libmtmd · libggml-base              │
│  + ggml backends (.so on Linux/Android; static elsewhere)   │
│  exports llama_* / LLAMA_* / ggml_* / gguf_* / mtmd_* /     │
│          common_* / json_schema_to_grammar                  │
└───────────────────────────┬────────────────────────────────┘
                            │
┌───────────────────────────▼────────────────────────────────┐
│  qvac-fabric vcpkg port (forked llama.cpp + ggml)           │
└──────────────────────────────────────────────────────────┘

Key design points:

  • Single runtime load — Every consumer addon's .bare has DT_NEEDED: [email protected]. The dynamic linker deduplicates by SONAME, so the llama/ggml runtime is loaded exactly once per process, no matter how many fabric-based addons are present.
  • No JS API@qvac/fabric is a carrier module. Consumers require() it only to register the .bare with the bare runtime before resolving their own addon (see INTEGRATION.md Step 5). All inference happens through the consumer's own C++ code against the shipped headers.
  • Backends — ggml compute backends resolve their ggml_* references against the single loaded [email protected].

Build

npm install
npm run build   # bare-make generate && bare-make build && bare-make install

Supported platforms

| Platform | Triplet | Backends | |----------|---------|----------| | Linux | x64-linux, arm64-linux | shared .so under prebuilds/<platform>/qvac__fabric/ | | macOS | arm64-osx | static (CPU, Metal) inside .bare | | Windows | (default MSVC) | static inside .bare | | Android | arm64-android | shared .so under prebuilds/<platform>/qvac__fabric/ | | iOS | arm64-ios | static inside .bare |