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

@deemwario/mochallama

v0.1.6

Published

Run a local llama.cpp LLM from the terminal — JVM-powered (Project Panama FFM), shipped as self-contained jlink runtime images. Cross-platform via per-platform optional dependencies.

Readme

@deemwario/mochallama

Run a local llama.cpp LLM from your terminal. The engine is JVM-powered — mochallama-core bridges llama.cpp via Project Panama (the Foreign Function & Memory API), no Python and no separate llama.cpp install required.

This npm package is a thin cross-platform launcher. The actual payload — a self-contained jlink runtime image (a trimmed JRE plus the native llama.cpp libraries) — ships in a per-platform companion package that npm installs automatically for your OS/CPU. You do not need a JDK installed to use it.

Platform support

Installs and runs on:

| platform | companion package | |------------------------|---------------------------------------| | macOS Intel (x64) | @deemwario/mochallama-darwin-x64 | | macOS Apple Silicon | @deemwario/mochallama-darwin-arm64 | | Linux (x64) | @deemwario/mochallama-linux-x64 | | Windows (x64) | @deemwario/mochallama-win32-x64 |

npm pulls in only the companion matching your host (via each companion's os/cpu fields); the others are skipped. The launcher resolves the right one at runtime.

Install / run

# One-shot via npx — drops straight into a chat session.
npx @deemwario/mochallama

# Or install globally.
npm i -g @deemwario/mochallama

Usage

# Bare invocation starts chatting immediately (defaults to `chat`).
mochallama

# List available model profiles and whether they're cached locally.
mochallama models

# Chat with a specific model (downloads it on first use into ~/.chatbot_models).
mochallama chat --model llama-3.2-1b

# Help.
mochallama --help

How it works

mochallama (this npm bin)
  └─ bin/mochallama.js                        # cross-platform launcher
       └─ @deemwario/mochallama-<platform>    # resolved via os/cpu
            └─ image/bin/mochallama           # jlink launcher (trimmed JRE + JVM args)
                 └─ mochallama-core           # Panama FFM bridge → llama.cpp natives

The jlink launcher runs with --enable-native-access=ALL-UNNAMED and --add-modules=jdk.incubator.vector baked in. A bare invocation with no arguments forwards chat so you start talking to a model right away.

Building / publishing (maintainers)

The companion packages' image/ directories are not committed — they're produced by Gradle (:cli:jlink) and copied in before publishing. Locally (macOS x64), from the repo root:

task cli:npm:pack      # builds the jlink image, stages it into the darwin-x64
                       # companion + the main package, then `npm pack` both

All four platforms' images are produced by the GitHub Actions release matrix on a v* tag — see .github/workflows/release.yml.

License

MIT