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

@touch-grass-ds/react

v1.1.0

Published

React 19 component library for Touch Grass — brutalist primitives and patterns. Zero rounded corners, zero motion, tokens only.

Readme

@touch-grass-ds/react

React 19 components for Touch Grass — the open-source brutalist design system. Ten primitives and eight patterns. No rounded corners, no grey text, no motion, no exceptions.

Install

npm install @touch-grass-ds/tokens @touch-grass-ds/react
# or
pnpm add @touch-grass-ds/tokens @touch-grass-ds/react

@touch-grass-ds/tokens is a required peer — the components read CSS variables it defines, so the tokens stylesheet has to be imported first.

Usage

/* your global stylesheet */
@import "@touch-grass-ds/tokens";
@import "@touch-grass-ds/react/styles/base.css";
import { Button, Badge, Stat } from "@touch-grass-ds/react";

export function Dashboard() {
  return (
    <>
      <Stat label="STREAK" value="14" unit="DAYS" />
      <Badge variant="earned">NEW</Badge>
      <Button variant="primary">START</Button>
    </>
  );
}

Components

Primitives

| Component | What it is | |---|---| | Button | Uppercase mono button. 3 variants × 5 states. 48px tap target. Block-character loading state — never a spinner. | | Input | Text input with hard-halo focus and uppercase mono label. Supports error state via aria-invalid. | | Badge | Small inline tag for status (neutral, earned, danger). Non-interactive. | | Card | Bordered container. No rounding, no shadow. Just a hairline and padding. | | Tag | Like Badge but dismissible (onDismiss prop). Shows an X on hover. | | Divider | Horizontal or vertical hairline. Optional label inset. | | Stat | Numeric stat with uppercase label and optional unit. Tabular nums. | | Timer | Countdown / count-up display. HH:MM:SS in mono, tabular, huge. |

Patterns

Composed of primitives. App-level building blocks.

| Pattern | What it is | |---|---| | LeaderboardRow | Rank, avatar placeholder, name, handle, time, badge. For the Timeouts leaderboard, but re-usable anywhere you need a ranked row. | | FocusTimerDisplay | Full-screen Timer + label + state-aware Button. Used for active focus sessions. | | BeRealStamp | Timestamped "proof" card. Border, date, time, caption. | | PatternInterruptModal | Full-bleed modal for breaking a scroll spiral. Uppercase headline, two-button CTA row. | | SessionSummaryCard | Post-session recap: duration, earned amount, streak delta, badge list. |

Conventions

Every component follows the same rules:

  • forwardRef everywhere — no exceptions
  • cn() helper for className merging
  • Token-only — no hex codes, no raw pixel values
  • Uppercase mono for any human-readable label (buttons, stats, headings)
  • 48px minimum tap target for anything interactive
  • Dashed border for disabled state; hard-halo (box-shadow: 0 0 0 2px var(--color-fg)) for focus
  • Block-character loading states (█ ▓ ▒ ░), never spinners

See CONTRIBUTING.md in the monorepo root for the full component-adding workflow.

Docs

Each component has a live demo page in the docs site:

# from the repo root
corepack pnpm dev
# visit http://localhost:5173

Published docs at timeouts.app/touch-grass (coming soon).

License

MIT © Thiago Xikota