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

@lordnik10/cyberkit-ui

v1.0.3

Published

Libreria di componenti **React** per interfacce coerenti. Lo stile si basa su **variabili CSS** (token `--ck-*`) e su un foglio di stile **pubblicato nel pacchetto**: importandolo una sola volta nell’app, i componenti ricevono colori, spaziature e tipogra

Readme

@lordnik10/cyberkit-ui

Libreria di componenti React per interfacce coerenti. Lo stile si basa su variabili CSS (token --ck-*) e su un foglio di stile pubblicato nel pacchetto: importandolo una sola volta nell’app, i componenti ricevono colori, spaziature e tipografia allineati. Puoi personalizzare l’aspetto senza forkare i componenti, sovrascrivendo i token su :root o su un contenitore antenato.

Installazione

npm install @lordnik10/cyberkit-ui

Peer dependencies (obbligatorie nell’app che consuma la libreria):

  • react ^19.2.4
  • react-dom ^19.2.4

Stili (obbligatori)

I componenti dipendono dai token CSS e dal CSS bundlato. Importa il foglio di stile una volta (ad esempio nel layout radice o prima del primo utilizzo):

import '@lordnik10/cyberkit-ui/styles.css'

Poi importa i componenti come di consueto:

import { Button, Input } from '@lordnik10/cyberkit-ui'

Componenti

| Componente | Note | |------------|------| | Button | Varianti (es. primary, secondary, outlined). Documentato in Storybook. | | Input | Campo di testo stilizzato con i token della libreria. | | Select | Presente nel codice sorgente del repository e nelle story di Storybook; non è ancora esportato da src/index.ts, quindi non fa parte dell’API pubblica del pacchetto finché non viene aggiunto l’export. |

L’entry pubblica del package (exports su ".") espone attualmente Button e Input.

Test dei componenti

I componenti sono stati testati con Vitest usando snapshot testing: il rendering dei componenti viene confrontato con baseline salvate (file *.snap versionati), così si rilevano regressioni nella struttura del markup senza dover scrivere asserzioni esplicite per ogni nodo.

Per lanciare la suite di test dalla root del repository:

npm run test

Per la qualità del codice è disponibile anche il lint:

npm run lint

La verifica visiva e il comportamento in contesto restano supportati da Storybook (vedi sotto).

Storybook

Storybook serve a documentare e provare i componenti in isolamento.

La versione deployata è consultabile su GitHub Pages: https://lordnik10.github.io/cyberkit-ui.

  • Avvio in sviluppo (porta predefinita 6006):

    npm run storybook
  • Build statica (output in storybook-static/, adatta a hosting statico o CI):

    npm run build-storybook

Configurazione attuale:

  • Framework: Storybook 10 con @storybook/react-vite (allineato a Vite).
  • Add-on: @storybook/addon-docs (documentazione) e @storybook/addon-a11y (controlli di accessibilità).
  • Le story sono file *.stories.tsx (e opzionalmente *.mdx) sotto src/.
  • Le story dei componenti usano il formato CSF 3 (Meta, StoryObj); dove presente, il tag autodocs genera pagine di documentazione automatiche da Storybook.
  • In .storybook/preview.ts viene importato src/styles/tokens.css, così le anteprime usano gli stessi token della libreria.

Theming

Sovrascrivi i token su :root (o su un antenato) per cambiare colori senza modificare i componenti:

:root {
  --ck-color-primary: #7c3aed;
  --ck-color-primary-contrast: #ffffff;
}

Le variabili primitive (es. --ck-blue-500) sono mattoni opzionali; quando possibile preferisci sovrascrivere i token semantici --ck-color-*.

Sviluppo della libreria

Dal clone del repository:

npm install
npm run build

Genera dist/ (bundle ESM/CJS, dichiarazioni TypeScript e cyberkit-ui.css).