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

grout-render

v0.2.0

Published

A Text-to-Graphics Protocol for Procedural Pixel Art - Pure JavaScript rendering engine with zero dependencies

Readme

Grout Studio & Library

A Text-to-Graphics Protocol for Procedural Pixel Art

Grout is a lightweight, AI-friendly graphics protocol that stores pixel art as JSON "recipes" instead of binary images. It includes both a library for rendering and a full-featured web-based editor.

License: MIT Version


Table of Contents


Overview

Grout is a text-based graphics protocol that stores pixel art as JSON instead of binary images. It is designed to be compact, easy for LLMs to generate, and flexible for runtime edits such as flips, rotations, or palette swaps.

Why Choose Grout?

Grout provides a comprehensive texture system (TEX) that outclasses other libraries with:

  • Full-featured visual editor with timeline and animation support
  • Multiple rendering backends (Canvas, WebGL, WebGPU)
  • Advanced texture utilities including noise generation, pattern builders, and instant presets
  • 32x32 texture optimization perfect for retro gaming (PS1/N64/DOOM aesthetics)
  • Comprehensive documentation with migration guides and cookbooks
  • Three.js integration with optimized examples
  • Production-oriented local release checks for package, docs, and examples

Features

Grout Studio (Visual Editor)

  • Drawing tools for pixels, lines, rectangles, and circles
  • Multi-frame animation timeline with onion skinning
  • Palette management integration
  • Import/export workflows for JSON and PNG sprite sheets
  • Dark theme with responsive design
  • Undo/redo with keyboard shortcuts
  • Live preview with multiple zoom levels
  • Procedural variation system for randomized pixel art
  • GroutPaintEngine — embeddable headless paint engine for use in any vanilla JS or React app (no framework required)

Grout Library (Core Rendering)

  • Zero-dependency JavaScript core for rendering
  • Canvas, WebGL, and WebGPU rendering backends
  • Public grout-render/adapters helpers for Three.js, Phaser 3, and Phaser 4 texture payloads
  • Public grout-render/worker helpers for versioned module-worker rendering, stale request suppression, and sync fallback
  • Public grout-render/protocol helpers for format versioning, strict/compat parsing, and path-based validation errors
  • Compact JSON shorthands for code golfing
  • Multiple compact path formats for 60-75% size reduction
  • Frame modifiers for rotation, flip, and hue shifting
  • Advanced texture utilities for retro gaming
  • TEX pattern generation functions
  • Preset templates for instant 32x32 textures
  • Variation engine for procedural generation with seeded random
  • Sprite packing utilities for data compression and character count reduction
  • Semantic color naming for LLM understanding (color to human-readable names)
  • Font & Atlas optional module (grout-render/font-atlas, browser/ESM only) — TextureAtlas, SDFFont, sprite slicing, and WebGL/WebGPU SDF shaders
  • Worker optional module (grout-render/worker, ESM only) — structured render requests, transferable buffers, and client helpers
  • Protocol optional module (grout-render/protocol, ESM only) — CURRENT_FORMAT_VERSION, parseSpec(), validateSpec(), and migrateSpec()

Grout Tools (Utilities)

  • SVG conversion utilities (SVG → Grout, Grout → SVG) with optional sprite packing

  • Color palette extraction from images with semantic names

  • Semantic color naming (RGB/hex → human-readable color names)

  • Texture generation and procedural art tools

  • Bezier curve utilities for smooth paths

  • Sprite packing for efficient binary data compression (30-75% size reduction)


Quick Start

Follow the canonical guide in docs/GETTING_STARTED.md for a step-by-step walkthrough of running the studio or using the library in your project.

Quality gate

Run the repository-wide integrity check before major merges:

npm ci
npm run qa

npm ci uses the committed lockfile for reproducible dev tooling. npm run qa runs lint checks, the full headless browser suite, the Node-compatible coverage subset, and export/declaration parity validation in one command.

Runtime/package consumers remain supported on Node >=14.0.0. Local release tooling uses the locked dev toolchain and requires Node 20 LTS or Node 22+; .nvmrc records Node 22 as the default local release target.


Installation

For full installation options (CDN, npm, direct file copy, and studio setup), see docs/GETTING_STARTED.md.


Documentation

Getting Started

Texture Creation

Advanced Topics


Examples


Getting Help

If you have questions or run into issues:


License

MIT License. See LICENSE.