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

@tablefolk/paint

v0.1.0

Published

Pictures from a sentence in the browser (WebGPU): tiny-sd at 512 px or Chitra Tiny at 256 px, chosen for the device; nothing sent anywhere.

Readme

@tablefolk/paint

Pictures from a sentence, in the browser: nothing is sent anywhere. Two small models, chosen for the device:

| model | picture | download | where it runs | licence | |---|---|---|---|---| | tiny-sd (segmind, a distilled Stable Diffusion 1.5) | 512×512, recognisable | ~0.9 GB once | WebGPU, ~11 s (RTX 2060) | CreativeML Open RAIL-M: commercial use allowed, with use restrictions you must pass on | | Chitra Tiny (Udgam Labs, 212M, trained only on public-domain and CC0 images) | 256×256, rough and dreamy | ~745 MB once | WebGPU, ~6 s; or the processor, ~40 s | Apache-2.0 |

import { createPainter, choosePainter } from '@tablefolk/paint';
const p = await createPainter({ model: 'auto', freeGB: 3, onStatus: s => console.log(s) });
p.model, p.cpu, p.why        // 'chitra', true, '3 GB free on the graphics card: the small painter, on the processor (slower)'
const { blob, url, seconds } = await p.paint('a lighthouse at sunset, oil painting', { seed: 7 });
img.src = url;

'auto' picks, in order:

  • tiny-sd when the graphics card has 4 GB free;
  • Chitra on the card with 3.5 GB free;
  • Chitra on the processor otherwise.

Pass freeGB: the graphics memory your other models leave. The default is all of what @tablefolk/device finds. cpu: true forces the processor, which works without WebGPU too.

If a painting fails for lack of graphics memory, step down the same way: the Tablefolk game's painting skill does this. Measured on a 6 GB card beside Gemma 4 E2B and a 3D world, only the processor had room.

The models come from Hugging Face:

They're kept in the browser's Cache API. The Chitra sampling follows mrfakename's Apache-2.0 WebGPU Space.

Part of Tablefolk (libs/). MIT.