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

jaml-mcp

v1.0.1

Published

MCP server for searching and analyzing Balatro seeds using MotelyJAML

Readme

jaml-mcp

MCP server for Balatro seed search and analysis using MotelyJAML (motely-wasm-compat). Deploys cleanly on Vercel (HTTP MCP) or runs locally over stdio (Claude Desktop, VS Code, Copilot).

Tests

pnpm install
pnpm test

Runs Vitest against motely-wasm-compat: boot, getVersion, loadJaml, presence of startRandomSearchFromJaml, and a small searchSeeds integration sample. CI runs the same on push/PR (.github/workflows/test.yml).

Tools

| Tool | Description | |------|-------------| | search_seeds | Random search up to 1M seeds against JAML or Jummy; returns JSON + MCP App UI in supported hosts | | analyze_seed | Full ante-by-ante breakdown for one seed | | validate_jaml | MotelyWasmHost.loadJaml — rejects invalid JAML | | get_version | Engine version string |

JAML and Jummy

  • JAML must be JSON that Motely accepts (canonical enum names as in jaml.schema.json / Motely docs). The server does not rewrite or “fix” casing in JS.
  • Jummy (jummy field) is compiled only by MotelyWasmHost.compileJummy in WASM — not by a second YAML parser in this repo.

Example Jummy-powered search

Use search_seeds with jummy:

{
  "jummy": "what: blueprint in ante 1\nwhere: deck red, stake white",
  "seed_count": 50000
}

MCP Apps (inline UI)

search_seeds registers an MCP Apps extension (Model Context Protocol Apps):

  • Resource: ui://jaml-mcp/jaml-search-app.html — single-file bundle (text/html;profile=mcp-app)
  • View: React 19 + Vercel json-render — generative UI catalog (Stack, StatsBlock, SeedRow, Button, Text) so you can evolve layouts from structured JSON
  • Hosts: Claude, ChatGPT, VS Code, and others that negotiate the Apps extension — behavior falls back to plain JSON text where UI is not available

Build (UI + CLI)

The server reads mcp-ui/dist/jaml-search-app.html at runtime and runs the compiled CLI from dist/. Build before deploy or running pnpm start (artifacts are gitignored by default):

pnpm install
pnpm run build

pnpm run build runs build:mcp-ui (Vite) and build:cli (tscdist/). UI only: pnpm run build:mcp-ui. Vercel: set Build Command to pnpm run build (or at least pnpm run build:mcp-ui) so the HTML exists when the function cold-starts. vercel.json includes mcp-ui/dist/** for api/server.ts.

Local MCP (stdio)

pnpm run build
pnpm start

Development without compiling: pnpm dev (runs tsx cli.ts).

npm install / global CLI

After pnpm run build, jaml-mcp points at dist/cli.js (no tsx required). Publishing runs prepack → full build. Install globally with npm install -g jaml-mcp once the package is on the registry, or npm pack / pnpm link from a clone.

HTTP MCP on Vercel

Endpoint: https://<deployment>.vercel.app/mcp

Optional: set MCP_API_KEY and send Authorization: Bearer <key>.

Public demo API

  • POST /api/search — body { "jaml": "<json string>", "seed_count": 100000 }

JAML format

Filters are JSON objects (same shape as Motely JAML-on-disk, expressed as JSON). Example:

{
  "deck": "Red",
  "stake": "White",
  "must": [{ "joker": "Blueprint", "antes": [1], "sources": { "shopItems": [0, 1] } }]
}

License

MIT