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

@zakkster/lite-noise

v1.0.2

Published

Zero-GC seeded Simplex 2D/3D noise + FBM + Curl. Deterministic via seeded permutation table.

Downloads

245

Readme

@zakkster/lite-noise

npm version npm bundle size npm downloads npm total downloads TypeScript Dependencies License: MIT

🌊 What is lite-noise?

@zakkster/lite-noise generates coherent noise for terrain, particles, animations, and procedural art — all deterministic and zero-allocation.

It gives you:

  • 🌊 Simplex 2D and 3D noise
  • 🏔️ FBM (fractal Brownian motion) with configurable octaves
  • 🌀 Curl noise for smoke/fluid particle movement
  • 🎲 Seeded via @zakkster/lite-random (deterministic, reproducible)
  • 0️⃣ Zero allocation in any hot-path function (unrolled FBM, no rest/spread)
  • 🧹 Caller-owned output for curl2 (no shared reference bugs)
  • 🪶 < 1.5 KB minified

Part of the @zakkster/lite-* ecosystem — micro-libraries built for deterministic, cache-friendly game development.

🚀 Install

npm i @zakkster/lite-noise

🕹️ Quick Start

import { seedNoise, simplex2, fbm2, curl2 } from '@zakkster/lite-noise';

// Seed for reproducibility
seedNoise(42);

// Terrain heightmap
for (let x = 0; x < 256; x++) {
    for (let y = 0; y < 256; y++) {
        heightmap[x + y * 256] = fbm2(x * 0.01, y * 0.01, 6);
    }
}

// Fluid particles (zero-GC)
const vel = { x: 0, y: 0 };
curl2(particle.x * 0.005, particle.y * 0.005, vel);
particle.vx += vel.x * 0.5;
particle.vy += vel.y * 0.5;

📊 Comparison

| Library | Size | Seeded | FBM | Curl | Zero-GC | Install | |---------|------|--------|-----|------|---------|---------| | simplex-noise | ~8 KB | No | No | No | No | npm i simplex-noise | | noisejs | ~4 KB | Yes | No | No | No | npm i noisejs | | lite-noise | < 1.5 KB | Yes | Yes | Yes | Yes | npm i @zakkster/lite-noise |

⚙️ API

seedNoise(seed?) — Build permutation table. Call once or re-seed.

simplex2(x, y) — 2D Simplex noise → [-1, 1]

simplex3(x, y, z) — 3D Simplex noise → [-1, 1]

fbm2(x, y, octaves?, lacunarity?, gain?) — 2D fractal noise (zero alloc, unrolled)

fbm3(x, y, z, octaves?, lacunarity?, gain?) — 3D fractal noise

curl2(x, y, out) — Divergence-free 2D vector. Caller owns out.

🧪 Benchmark

256×256 terrain (fbm2, 6 octaves):
  simplex-noise + manual FBM: 12ms (allocates per octave)
  lite-noise fbm2:             4ms (zero allocation, unrolled loop)

📦 TypeScript

Full declarations included in lite-noise.d.ts.

📚 LLM-Friendly Documentation

See llms.txt for AI-optimized metadata and usage examples.

License

MIT