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

thoth-blocks

v1.0.0

Published

A React component library built with Vite and documented with Storybook. Ships ESM, CJS, TypeScript declarations, and a combined CSS file.

Downloads

37

Readme

thoth-blocks

A React component library built with Vite and documented with Storybook. Ships ESM, CJS, TypeScript declarations, and a combined CSS file.

Installation

npm install thoth-blocks

Usage

import { Button } from "thoth-blocks";
import "thoth-blocks/styles.css";

function App() {
  return <Button variant="default">Click me</Button>;
}

Theming

thoth-blocks supports two built-in themes: punctum and thoth. Apply a theme by setting the data-theme attribute:

<div data-theme="punctum">
  <button>Punctum themed</button>
</div>

Each theme defines its own color palette and border radius. Themes use shadcn/ui CSS variable conventions (--primary, --secondary, --background, etc.) so shadcn-based components work out of the box.

| Theme | Primary Color | | --------- | ------------- | | punctum | #000000 | | thoth | #6e4f7f |

Development

Prerequisites

  • Node.js (see .nvmrc for version)

Setup

npm install

Scripts

| Command | Description | | ------------------------- | --------------------------------------- | | npm run storybook | Start Storybook dev server on port 6006 | | npm run build | Build the library to dist/ | | npm run build-storybook | Build static Storybook site | | npm test | Run all tests (Vitest + Playwright) | | npm run lint | Lint with oxlint | | npm run lint:fix | Auto-fix lint issues | | npm run fmt | Format with oxfmt | | npm run fmt:check | Check formatting |

Project Structure

src/
  components/         # Component source + co-located stories
    Button/
      Button.tsx          # shadcn/ui Button (Tailwind + CVA)
      Button.stories.ts
    Header/
    Page/
  lib/
    utils.ts          # cn() utility (clsx + tailwind-merge)
  themes/
    themes.css        # Theme definitions (punctum, thoth) using shadcn variable conventions
  globals.css         # Tailwind imports + @theme inline token mapping
  docs/
    Configure.mdx     # Storybook documentation pages
  index.ts            # Barrel export
.storybook/
  main.ts             # Storybook config
  preview.ts          # Theme decorator, controls
  Page.stories.ts     # Page-level demos (not packaged)

Stories follow Atomic Design hierarchy:

| Level | Description | Examples | Story title | Location | | ------------- | ------------------------------------------------ | ------------------------------------------- | ------------------ | ----------------- | | Atoms | Smallest indivisible UI elements | Button, Input, Label, Icon, Badge, Checkbox | Atoms/<Name> | src/components/ | | Molecules | Small groups of atoms with a single purpose | Search bar, Form field, Menu item | Molecules/<Name> | src/components/ | | Organisms | Complex sections composed of molecules and atoms | Header, Card, Sidebar, Footer | Organisms/<Name> | src/components/ | | Templates | Page layouts with placeholder content | Dashboard layout, Settings layout | Templates/<Name> | .storybook/ | | Pages | Templates filled with real content | Home, Login, Dashboard | Pages/<Name> | .storybook/ |

Atoms, Molecules, and Organisms are co-located with their components in src/components/ and shipped with the library. Templates and Pages live in .storybook/ so they stay out of the published package.

Adding a Component

  1. Create src/components/<Name>/<Name>.tsx — use Tailwind classes with the cn() utility from src/lib/utils.ts
  2. Use shadcn CSS variables (--primary, --background, --border, etc.) via Tailwind's theme mapping for theming
  3. Export the component and its props type from src/index.ts
  4. Add <Name>.stories.ts in the same directory (or .storybook/ for pages)

Compatibility

  • React 18 and 19

License

Apache-2.0