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

@digiko-npm/ds-shaders

v0.1.0

Published

WebGL shaders for @digiko-npm/designsystem — opinionated React wrappers around @paper-design/shaders-react with DS token palettes.

Downloads

81

Readme

@digiko-npm/ds-shaders

WebGL shaders for the Digiko Design System. Opinionated React wrappers around @paper-design/shaders-react that read DS color tokens at runtime and react to theme changes.

Install

npm install @digiko-npm/ds-shaders

Peer dep: react >= 18.

Use

All components are client components. Add "use client" to the parent file when consuming from a Next.js Server Component.

"use client";
import { MeshGradient } from "@digiko-npm/ds-shaders/effects";

export function Hero() {
  return (
    <MeshGradient
      palette="brand"
      style={{ width: "100%", height: "60vh" }}
      distortion={1}
      swirl={0.8}
      speed={0.2}
    />
  );
}

Palettes

Every shader accepts a palette prop that resolves to DS tokens at mount and re-resolves on data-theme change.

| Palette | Tokens | |---------|--------| | brand (default) | --ds-color-brand, --ds-color-brand-hover, --ds-color-interactive, --ds-color-text | | mono | --ds-color-text, --ds-color-text-secondary, --ds-color-text-tertiary, --ds-color-border-active | | editorial | --ds-color-brand, --ds-color-brand-subtle, --ds-color-surface-elevated, --ds-color-text-tertiary | | surface | --ds-color-surface, --ds-color-surface-muted, --ds-color-surface-elevated, --ds-color-border |

You can always override with explicit color props:

<MeshGradient colors={["#ff00ff", "#00ffff", "#ffff00", "#ff8800"]} />

Categories

import { /* 20 components */ } from "@digiko-npm/ds-shaders/effects";
import { /* 6 components */ } from "@digiko-npm/ds-shaders/filters";
import { /* 3 components */ } from "@digiko-npm/ds-shaders/logos";

Effects (background, no input): MeshGradient, StaticMeshGradient, StaticRadialGradient, SmokeRing, NeuroNoise, PerlinNoise, SimplexNoise, DotOrbit, DotGrid, Metaballs, Waves, Voronoi, Warp, GodRays, Spiral, Swirl, Dithering, GrainGradient, PulsingBorder, ColorPanels.

Filters (image input, optional): PaperTexture, FlutedGlass, Water, ImageDithering, HalftoneDots, HalftoneCmyk.

Logos (image input, required for shape): Heatmap, LiquidMetal, GemSmoke. Pass image="/logo.svg" to apply the shader to your logo's silhouette.

SSR

Shaders need a browser canvas. The wrappers use useEffect for token resolution; on the server they render with hardcoded fallback colors and hydrate once mounted. No next/dynamic required, but adding ssr: false is fine if you want to skip the fallback flash.

License

@paper-design/shaders-react is licensed under PolyForm Shield 1.0.0 — free for commercial use except for products competing with Paper. This package inherits the same license. See LICENSE and REQUIRED-NOTICES.md.