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

@noyzi/core

v0.1.7

Published

Seed-based deterministic gradient generator. Every seed maps to the same structured gradient — forever.

Downloads

1,283

Readme

Why Noyzi? 🎨

  • Deterministic — perfect for users, teams, playlists, or anything with an ID
  • Portable — render to CSS, SVG, canvas, WebP, or PNG
  • Tiny & flexible — framework-free, typed, and tree-shakeable
  • Private by design — use seedHash() before exposing emails or usernames

Install

npm install @noyzi/core

Quick start 🚀

import { generate, seedHash, toSvgDataUri } from "@noyzi/core";

const seed = seedHash("[email protected]");
const gradient = generate(seed, {
  palette: ["#f5eee0", "#8fb9be", "#ebdac3"],
});

const image = toSvgDataUri(gradient, { width: 800, height: 800 });

document.body.style.backgroundImage = `url("${image}")`;

The same input and options always produce the same result—across sessions, devices, and servers. Pass 2–8 hex colors with palette; the first becomes the background and the rest become accents. Without a palette, Noyzi derives one from the seed as before.

API

| Function | Returns | Description | | --- | --- | --- | | generate(seed, options?) | GradientSpec | Creates a deterministic gradient specification. Configure its palette, generated color count, and vignette. | | seedHash(input) | string | Converts a string or number into a short, reusable seed. Sequential numeric IDs remain sequential. | | isSeedHash(value) | boolean | Checks whether a value already has the eight-character seedHash format. | | isSequentialSeed(seed) | boolean | Checks whether a seed is a safe integer or an integer-like string. | | paletteFromSeed(seed, count?) | ColorStop[] | Returns the exact deterministic color palette for a seed. The count is clamped from 2 to 8. | | oklchToHex(color) | string | Converts an OKLCH color to a clamped sRGB #rrggbb value. | | hexToOklch(color) | Oklch | Converts a #rgb or #rrggbb color to OKLCH. | | toCss(spec, options?) | CssOutput | Produces complete CSS background properties for the rendered SVG. | | toSvg(spec, options?) | string | Renders the full gradient as an SVG string. | | toSvgDataUri(spec, options?) | string | Renders an SVG data URI ready for an image source or CSS background. | | drawToCanvas(spec, canvas, options?) | Promise<void> | Draws the SVG renderer's output onto an existing browser canvas. | | toCanvas(spec, options?) | Promise<HTMLCanvasElement> | Creates and renders a new browser canvas, with optional dimensions and scale. | | toBlob(spec, options?) | Promise<Blob> | Encodes a browser raster image as WebP by default, with PNG or another supported MIME type available. | | toDataUrl(spec, options?) | Promise<string> | Encodes a browser raster image as a data URL. |

See the full API documentation for options, types, and examples.

Pick your renderer

import { generate, toBlob, toCss, toSvg } from "@noyzi/core";

const gradient = generate("team-rocket");

const css = toCss(gradient, { width: 480, height: 320 });
const svg = toSvg(gradient, { width: 512 });
const webp = await toBlob(gradient);

| Output | API | Best for | | --- | --- | --- | | CSS | toCss() | Inline styles and framework-free rendering | | SVG | toSvg(), toSvgDataUri() | Sharp, scalable artwork | | Canvas | drawToCanvas(), toCanvas() | Interactive browser rendering | | Raster | toBlob(), toDataUrl() | Downloads, uploads, and sharing |

Explore every option in the API docs. 📖

License

MIT © Noyzi