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

@cogentic-co/ds

v0.7.0

Published

Cogentic Design System — UI components for building modern compliance applications

Readme

Cogentic Design System

UI component library for building modern compliance applications.

Package: @cogentic-co/ds Registry: npm


What's included

  • UI components — Primitives, blocks, charts, chatbot, workflow, shells
  • Animation components — BgShader, FadeIn, Marquee, Typewriter, AnimatedCounter, StreamingCards, SubtleShader
  • Product animations — Code-split feature animations for onboarding and help
  • Hooks — useMobile, useClipboard, useDebounce, useDisclosure, useLocalStorage, and more
  • Design tokens — OKLch colors, light/dark themes, Geist + JetBrains Mono fonts

Tech stack

  • React 19 (supports 18+) + TypeScript (strict)
  • Next.js 15+ (peer dependency)
  • Tailwind CSS v4 with @theme inline CSS variables
  • Base UI (@base-ui/react) headless primitives
  • Motion (framer-motion) for animations
  • CVA for component variants
  • Lucide icons
  • OKLch color space for all design tokens

Install

pnpm add @cogentic-co/ds

Styles setup

/* globals.css */
@import "tailwindcss";
@import "tw-animate-css";
@import "@cogentic-co/ds/styles.css";

/* Tell Tailwind to scan the package for class names */
@source "../node_modules/@cogentic-co/ds/dist";

Usage

import { Button, Card, CardHeader, CardTitle, CardContent } from "@cogentic-co/ds"

<Card>
  <CardHeader>
    <CardTitle>Hello</CardTitle>
  </CardHeader>
  <CardContent>
    <Button>Click me</Button>
  </CardContent>
</Card>

All components accept className and merge via cn() (clsx + tailwind-merge).


AI Skills

Install DS skills to give your AI assistant full component knowledge:

npx skills add cogentic-co/ds

Works with Claude Code, Cursor, Copilot, Cline, Windsurf, and 30+ other agents.


Entry points

| Import path | Contents | |---|---| | @cogentic-co/ds | All UI components, hooks, utils, animation constants | | @cogentic-co/ds/styles.css | Design tokens CSS (must be imported) | | @cogentic-co/ds/animations/* | Individual product animations (code-split) | | @cogentic-co/ds/blocks/* | Block components (code-split) | | @cogentic-co/ds/charts | Chart variants (requires recharts) | | @cogentic-co/ds/workflow | Workflow components (requires @xyflow/react) |


Development

Prerequisites

  • Node.js 20+
  • pnpm

Setup

git clone [email protected]:cogentic-co/ds.git
cd ds
pnpm install
pnpm dev          # Preview site at http://localhost:3000

Commands

| Command | Purpose | |---|---| | pnpm dev | Preview site (Next.js + Turbopack) | | pnpm build:pkg | Build package (tsup) | | pnpm test | Run component tests (Vitest) | | pnpm test:watch | Watch mode tests | | pnpm lint | Biome (lint + format) | | pnpm lint:fix | Auto-fix lint/format issues |

Adding a component

  1. Create src/components/my-component.tsx
  2. Use data-slot="my-component" on the root element
  3. Named exports: export { MyComponent }
  4. Use cn() from ../lib/utils for className merging
  5. Add export to src/index.ts
  6. Add test in src/components/__tests__/my-component.test.tsx
  7. Add preview in app/components/[slug]/previews.tsx
  8. Update skills/ds-expert/SKILL.md with the new component

Design tokens

All tokens live in src/styles/globals.css using OKLch color space with light (:root) and dark (.dark) modes.

Key tokens:

  • Brand: --cogentic-green -> bg-cogentic-green
  • Fonts: Geist (sans), JetBrains Mono (mono)
  • Radii: Base 0.625rem with sm/md/lg/xl variants
  • Dark mode via .dark class (not @media)