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

ju-library

v1.1.6

Published

JU Design — A personal React component library

Downloads

637

Readme

JU Design

Bibliotheque de composants React personnelle, construite autour d'une esthetique Glassmorphism 2.0 white-first.

67 composants — Atoms, Molecules, Organisms, Layouts, Widgets — types TypeScript, animes en CSS pur, avec support dark mode natif.

Installation

pnpm add ju-library

Peer dependencies requises :

pnpm add react react-dom lucide-react prismjs

Utilisation

import { JUButton, JUCard, JUModal } from 'ju-library';
import 'ju-library/styles';   // styles complets (tokens + reset + composants)

Pour importer uniquement les design tokens :

import 'ju-library/tokens';

Dark mode

Le theming fonctionne via l'attribut data-theme sur un element parent :

<div data-theme="dark">
  <JUButton label="Action" variant="primary" />
</div>

Sans attribut explicite, le systeme respecte la preference OS via prefers-color-scheme.

Composants

| Categorie | Nb | Exemples | |-----------|----|----------| | Atoms | 10 | Button, Badge, Avatar, Switch, Divider, PingDot, Status, Signature, UserPill, Typography | | Molecules | 17 | Input, Card, SearchBar, AskBar, Breadcrumbs, Pagination, Skeleton, Toast, Tooltip, ChatBubble, Callout, TextField, TagInput, Slider, VideoPlayer, SectionHeader, CodeBlock | | Organisms | 17 | Modal, Editor, FileUpload, Carousel, Dock, ContextualMenu, CommandPalette, StatCard, NotificationCenter, StepWizard, AuthPanel, Timeline, CreditCard, ProjectCard, CommentThread, CommentBox, SubCalendar | | Layouts | 2 | Sidebar, Island | | Widgets | 21 | NerveCenter, GPUPulse, PriorityHorizon, BioSync, SystemHealth, WorkflowTrigger, ModelSelector, TemporalBridge, GlobalContext, SemanticRadar, AppAudit, GitPulse, DigestSentinel, DependencyGuardian, TaskCard, FeedLayout, PricingCard, WelcomeCard, ReferralCard, FinancialFlow, QuoteFooter |

Chaque composant est disponible dans le Storybook avec des controles interactifs.

Design Tokens

Les tokens sont definis en CSS Custom Properties dans src/tokens/tokens.css :

  • Couleurs : primary (#1b82ff), accent (#ff4e6b), danger, success, warning, info + echelle de gris
  • Typographie : Inter Variable, tailles xs a xl, graisses 400-700
  • Spacing : xs (4px) a 2xl (48px)
  • Radius : sm (8px) a full (999px) — rounded par defaut
  • Shadows : ultra-diffuses, 4 niveaux de profondeur
  • Glass : surfaces translucides avec blur, variantes subtle/default/strong
  • Animations : easings bounce, smooth, spring + durations fast/normal/slow

Stack technique

  • React 18/19 + TypeScript (strict)
  • tsup — build ESM + CJS
  • Storybook 8 — documentation et playground
  • Vitest + Testing Library — 55 suites de tests
  • CSS Modules + CSS Custom Properties — zero runtime CSS-in-JS
  • Animations en CSS pur — aucune dependance d'animation externe

Developpement

pnpm install          # installer les dependances
pnpm dev              # lancer Storybook (port 6006)
pnpm build            # compiler la bibliotheque
pnpm test             # lancer les tests
pnpm test:watch       # tests en mode watch
pnpm lint             # type-check (tsc --noEmit)

Structure du projet

src/
  components/         # 67 composants (un dossier par composant)
    ju-button/
      ju-button.tsx          # composant
      ju-button.css          # styles (CSS Module)
      ju-button.test.tsx     # tests
      ju-button.stories.tsx  # story Storybook
  tokens/
    tokens.css        # design tokens (custom properties)
  styles/
    reset.css         # reset CSS minimal
  index.ts            # barrel export (API publique)

Licence

MIT — Julien Lietard