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-ui

v0.22.2

Published

Balatro rendering components, sprite metadata, and optional Motely helpers for React apps.

Downloads

4,512

Readme

jaml-ui

React components, UI tokens, sprites, and utilities for Balatro/JAML apps.

Install

npm install jaml-ui react react-dom

Package exports

| Entry | Contents | |-------|----------| | jaml-ui | Game card components, JAML IDE, Analyzer Explorer, hooks | | jaml-ui/ui | Jimbo design system — JimboPanel, JimboButton, JimboModal, tokens | | jaml-ui/core | Pure asset helpers, sprite metadata, decode utilities (no React) | | jaml-ui/motely | motely-wasm decode helpers (requires motely-wasm peer) | | jaml-ui/r3f | 3D card component via React Three Fiber (requires r3f peers) |

Quick start

import { JamlGameCard, AnalyzerExplorer, JamlIde } from "jaml-ui";
import { JimboPanel, JimboButton } from "jaml-ui/ui";

Game card

import { JamlGameCard } from "jaml-ui";

<JamlGameCard
  type="joker"
  card={{ name: "Blueprint", edition: "Foil", isEternal: true, scale: 1.5 }}
/>

Jimbo UI (Balatro design system)

import { JimboPanel, JimboButton, JimboModal } from "jaml-ui/ui";
import { JimboColorOption } from "jaml-ui/ui";

<JimboPanel sway onBack={() => setOpen(false)}>
  <JimboButton variant="primary" onClick={handleSearch}>Search</JimboButton>
</JimboPanel>

Available variants: primary, secondary, danger, back, ghost

JAML IDE

import { JamlIde } from "jaml-ui";

<JamlIde
  jaml={jaml}
  onChange={setJaml}
  searchResults={results}
  onSearch={handleSearch}
  isSearching={isSearching}
/>

Analyzer Explorer

import { AnalyzerExplorer } from "jaml-ui";

// antes: AnalyzerAnteView[] — stream from motely-wasm createSearchContext
<AnalyzerExplorer antes={antes} totalAntes={8} highlights={highlights} />

JAML Map Preview

import { JamlMapPreview } from "jaml-ui";

<JamlMapPreview jaml={jaml} />

Asset handling

By default sprites resolve from the package assets/ directory via import.meta.url.

Override at app startup:

import { setJamlAssetBaseUrl, clearJamlAssetBaseUrl } from "jaml-ui";

setJamlAssetBaseUrl("/vendor/jaml-ui/");  // custom CDN
clearJamlAssetBaseUrl();                   // back to default

Core utilities

import { SPRITE_SHEETS, getSpriteData, resolveJamlAssetUrl } from "jaml-ui/core";

Motely decode helpers

import { decodeMotelyItemName, motelyItemTypeName } from "jaml-ui/motely";

3D card (optional)

npm install three @react-three/fiber @react-three/drei @react-spring/three
import { Card3D } from "jaml-ui/r3f";

<Card3D itemName="Blueprint" />

Next.js

Import pure helpers from jaml-ui/core for server components. For local workspace installs add:

// next.config.ts
const nextConfig = { transpilePackages: ["jaml-ui"] };

Search Worker Architecture

The library provides useAnalyzer to interact with motely-wasm's search context natively. Important: As of [email protected], the search worker utilizes Vite's ?worker&inline pattern. You no longer need to pass motelyWasmUrl.

Ensure motely-wasm is imported and booted at the module level in your application:

import { boot } from "motely-wasm";
boot(); // Call early in your application lifecycle

Peer dependencies

| Peer | Required for | |------|-------------| | react, react-dom | All components | | motely-wasm ^14.3.3 | jaml-ui/motely, AnalyzerExplorer, useAnalyzer data | | three, @react-three/fiber, @react-three/drei, @react-spring/three | jaml-ui/r3f only |