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

@bek-ui/backgrounds

v1.0.0-beta.1

Published

BEK Design System animated backgrounds — Matrix rain, Dot field, Grain gradient, Aurora (canvas React components on @bek-ui/tokens)

Readme

@bek-ui/backgrounds

BEK Design System animatsiyali fonlari — Figma 2.6 Backgrounds sahifasining React (<canvas>) nusxasi: Matrix rain, Dot field, Grain gradient, Aurora. Ranglar faqat @bek-ui/tokens dan (--bek-bg-base, --bek-text-*, --bek-accent-*, --bek-gradient-brand-*, --bek-effect-matrix-*); canvas ularni ish vaqtida getComputedStyle bilan o'qiydi — Light/Dark (data-theme="dark") avtomatik. Runtime bog'liqlik — faqat react.

Ishlatish

import '@bek-ui/tokens/tokens.css';
import '@bek-ui/backgrounds/styles.css';
import { Aurora, DotField, GrainGradient, MatrixRain } from '@bek-ui/backgrounds';

<section style={{ position: 'relative', minHeight: 480 }}>
  <MatrixRain tone="brand" intensity="subtle" />
  <h1 style={{ position: 'relative' }}>BEK bilan dizaynni o'rganing</h1>
</section>;
  • Konteyner: fon position: absolute; inset: 0 — ota element position: relative (yoki boshqa positioned) bo'lsin; kontent fon ortidan keladi. O'lcham ResizeObserver bilan, devicePixelRatio ≤ 2.
  • Bezak (BGR-01): aria-hidden="true", pointer-events: none; kursor window da kuzatiladi, bosishlar ostidagi elementlarga o'tadi.
  • Harakat (BGR-03, BGR-04): standart 30 fps (fps prop'i); ekrandan tashqarida (IntersectionObserver) va yashirin tabda to'xtaydi; prefers-reduced-motion: reduce → bitta statik kadr, kursor effektlarisiz (sozlama o'zgarishi tinglanadi).
  • Client/Server: komponentlar 'use client'; SSR'da faqat bo'sh <canvas> chiqadi, chizish effektda boshlanadi. Unmount'da hamma kuzatuvchi va tinglovchilar tozalanadi.
  • Ranglar: har komponent ranglari CSS o'zgaruvchilarida (--bek-matrix-rain-head, --bek-dot-field-hot, --bek-grain-gradient-blob-1, --bek-aurora-band-1-start …) — CSS bilan ham almashtirish mumkin.
  • Qoidalar: ekranda bitta animatsiyali fon (BGR-05); forma, jadval va zich kontent ostida emas — hero, auth, onboarding, bo'sh holat, 404, yuklanish, muqova (BGR-06); ustidagi matn eng yomon kadrda ham kontrastdan o'tsin (BGR-02).

O'z fonini yozish uchun umumiy sikl ham eksport qilinadi: useBackgroundCanvas({ render, fps, trackPointer, redrawKey }).

Komponentlar

| Komponent | Figma sahifasi | Hujjat | | --------------- | -------------------------------- | ------------------------------------------------- | | MatrixRain | 2.6 Backgrounds · Matrix rain | README | | DotField | 2.6 Backgrounds · Dot field | README | | GrainGradient | 2.6 Backgrounds · Grain gradient | README | | Aurora | 2.6 Backgrounds · Aurora | README |

Figma ↔ kod

Har komponent papkasida figma.json (Figma spec); tekshiruv: pnpm --filter @bek-ui/backgrounds check:figma --strict.