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

@nocoo/basalt

v2.1.0

Published

<p align="center"> <img src="https://raw.githubusercontent.com/nocoo/basalt/main/assets/brand/icon-rounded.png" alt="Basalt" width="128" height="128" /> </p>

Readme

@nocoo/basalt

Matte design system component library. ESM, granular exports, Tailwind CSS v4 or standalone CSS.

BasaltMark and the default LoadingScreen mark embed the transparent corner-tower identity, so consuming applications need no public asset path. The README uses the separate large presentation. Logo comparison · Brand usage.


Installation

npm install @nocoo/basalt lucide-react
# or
bun add @nocoo/basalt lucide-react

Peer Dependencies

  • react: ^19 (Required)
  • react-dom: ^19 (Required)
  • lucide-react: * (Required for icons across controls)
  • tailwindcss: ^4 (Optional; required only if using the Tailwind stylesheet contract)
  • recharts: ^3 (Optional; required for chart subpaths such as @nocoo/basalt/charts/*)
  • react-day-picker: ^10 (Optional; declared peer for custom calendar integrations; the current DatePicker implementation does not call it)
  • @tanstack/react-table: ^9 (Optional; declared peer for custom table integrations; the current DataTable implementation does not call it)

Note on optional peers: Basalt's built-in DatePicker and DataTable operate independently without requiring react-day-picker or @tanstack/react-table. Only install optional peers when your application directly utilizes them or imports Recharts visualizations.


Styling Contracts

Contract 1: Tailwind CSS v4

Import order is strict. Register Basalt tokens before the Tailwind framework imports:

@source "../node_modules/@nocoo/basalt/dist/**/*.{js,jsx,ts,tsx}";
@import "@nocoo/basalt/styles/tailwind";
@import "tailwindcss";

@layer base {
  html, body, #root {
    height: 100%;
  }
  body {
    @apply bg-basalt-background text-basalt-foreground antialiased;
  }
}
  • @nocoo/basalt/styles/tailwind (or @nocoo/basalt/styles): Defines --basalt-* design tokens, luminance surfaces (L0/L1/L2), and --color-basalt-* utility classes.

Contract 2: Standalone CSS (No Tailwind)

For projects without Tailwind CSS (e.g. vanilla Vite, legacy frameworks, or Next.js with custom CSS):

import "@nocoo/basalt/styles/standalone";

Standalone CSS contains compiled design tokens, scoped control classes, keyframes, and base surface properties. It does not inject global CSS resets or Preflight. Ensure your container sets height: 100%.


Import Architecture

1. Root Barrel (@nocoo/basalt)

Contains lightweight base components, inputs, layout surfaces, and providers:

import {
  Button,
  Input,
  LayerCard,
  ThemeProvider,
  ThemeToggle,
  Tooltip,
  Toast,
  Sidebar
} from "@nocoo/basalt";

2. Granular Subpaths (@nocoo/basalt/components/*, @nocoo/basalt/charts/*, @nocoo/basalt/providers/*)

Keeps initial bundle size small by isolating complex or specialized dependencies:

import { DatePicker } from "@nocoo/basalt/components/date-picker";
import { DataTable } from "@nocoo/basalt/components/data-table";
import { DonutChart } from "@nocoo/basalt/charts/donut";
import { useTheme } from "@nocoo/basalt/providers/theme";

Framework Integration Highlights

React 19 & Next.js Client Boundaries

Basalt controls require browser event listeners and React context. When using Next.js App Router, render Basalt components within a client module:

// app/basalt-app.tsx
"use client";

import { Button, ThemeProvider } from "@nocoo/basalt";

export function BasaltApp() {
  return (
    <ThemeProvider>
      <Button variant="default">Client Control</Button>
    </ThemeProvider>
  );
}

Server-Side Theme Pre-Hydration

To eliminate theme flashing (FOUC), inject the theme class before React renders:

<script>
  (function() {
    try {
      var stored = localStorage.getItem("theme");
      var prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
      var isDark = stored === "dark" || (stored !== "light" && prefersDark);
      document.documentElement.classList.toggle("dark", isDark);
      document.documentElement.classList.toggle("light", !isDark);
      document.documentElement.dataset.mode = isDark ? "dark" : "light";
    } catch (e) {}
  })();
</script>

Upgrades & Compatibility Policy

Basalt follows strict Semantic Versioning (SemVer):

  • PATCH (2.0.x): Bug fixes, internal optimizations, visual refinements that do not break layout contracts.
  • MINOR (2.x.0): New components, additive props, opt-in features, and backward-compatible changes.
  • MAJOR (3.0.0): Breaking changes to public component signatures, DOM/ARIA structures, or removal of deprecated export paths.

All 110 exported entrypoints from v2.0.3 are locked as a permanent compatibility baseline. See ai/COMPATIBILITY.md for full details.

For comprehensive architectural recipes, form adapters, and framework migration instructions, consult the complete package guide at ai/INTEGRATION.md.

License

MIT