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

spotlibs-components

v0.1.32

Published

Shared UI component library untuk ekosistem BRISPOT microfrontend.

Readme

Spotlibs — Design System Component Library

Shared UI component library untuk ekosistem BRISPOT microfrontend.

Package name: spotlibs-components
Storybook: spotlibs-ui.bspt-dev.bri.co.id

Getting Started

# Install dependencies
pnpm install

# Run Storybook (dev mode)
pnpm storybook

# Build library
pnpm build

# Lint
pnpm lint

Architecture

  • Atomic Design: atoms → molecules → organisms
  • Build: tsup (ESM, tree-shakeable, "use client" auto-prepend)
  • Styling: Tailwind CSS v4 + MUI Emotion (hybrid)
  • Forms: react-hook-form + Yup validation
  • Testing: Vitest + Storybook test addon + Playwright
  • Documentation: Storybook 9 with versioned deployment

Usage in Microfrontend

pnpm add spotlibs-components
import { BaseButton, BaseTextField, BaseDropdown } from 'spotlibs-components';
import { IconPlus } from 'spotlibs-components/icons';
import { Box, Stack } from 'spotlibs-components/mui';

Exports

| Entry Point | Content | |-------------|---------| | spotlibs-components | All components (atoms + molecules + organisms) | | spotlibs-components/icons | Tabler icons + legacy BRISPOT icons | | spotlibs-components/mui | MUI layout utilities (Box, Stack, Grid, etc.) | | spotlibs-components/utils | Shared utilities (crypto, formatters, etc.) | | spotlibs-components/layout | Layout components (Sidebar, Header, etc.) | | spotlibs-components/types | TypeScript types |

Versioning & Storybook Deployment

Setiap release menghasilkan versioned Storybook deployment:

  • spotlibs-ui.bspt-dev.bri.co.id/ → Landing page (daftar versi)
  • spotlibs-ui.bspt-dev.bri.co.id/v0.1.32/ → Storybook versi spesifik

Version Workflow

  1. Bump version di package.json
  2. Push ke master
  3. Bamboo CI: Docker build → push image → helm deploy

Changelog di versions.html

Changelog otomatis di-generate dari commit messages dengan format:

[add]: Deskripsi penambahan component baru
[update]: Deskripsi update component
[fix]: Deskripsi fix bug
[delete]: Deskripsi penghapusan component

Commit tanpa format di atas tidak masuk changelog.

Retention Policy

  • Maksimal 5 versi retained di versions.json
  • Helm releases lama otomatis di-uninstall saat deploy

Storybook — Marking Changes

Gunakan withChangeNote decorator untuk menandai story yang baru/berubah:

import { withChangeNote } from "@/../.storybook/decorators/change-note";

export const MyNewStory = {
  tags: ["new"],  // dot indicator di sidebar
  decorators: [withChangeNote("0.1.32", "Deskripsi perubahan")],
  render: () => <MyComponent />,
};

Scripts

| Command | Description | |---------|-------------| | pnpm storybook | Run Storybook dev server (port 6006) | | pnpm build | Build library (tsup → dist/) | | pnpm build-storybook | Build static Storybook | | pnpm lint | ESLint check | | pnpm lint:fix | ESLint auto-fix |

Project Structure

src/
├── components/
│   ├── atoms/          (button, chip, icon, typography, etc.)
│   ├── molecules/      (dropdown, textfield, datatable, etc.)
│   ├── organisms/      (forms, modals, layout)
│   ├── legacy/         (deprecated — bugfix only)
│   └── mui/            (MUI layout re-exports)
├── helpers/            (API, session, cookies)
├── styles/             (globals.css, fonts)
└── utils/              (crypto, formatters, schema, etc.)

.storybook/
├── main.js             (Storybook config)
├── preview.jsx         (decorators, theme)
├── manager.js          (sidebar config, version-switcher)
├── decorators/         (withChangeNote helper)
└── addons/             (version-switcher)

scripts/
├── generate-versions.js   (auto-generate versions.json)
├── cleanup-old-versions.js (helm uninstall old releases)
└── deploy-storybook.sh    (reference deploy script)