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

@kernhq/ui

v0.7.0

Published

Kern design system — Svelte 5 components, tokens and app-shell layout (Ink/paper)

Readme

@kernhq/ui

Kern's design system — the "Ink / paper" look: warm paper surfaces, near-black ink text tiers, a single burnt-orange accent, hairline borders instead of shadows, Instrument Sans for UI and DM Mono for metadata. Built with Svelte 5 (runes) on top of Bits UI headless primitives.

The visual spec lives in app/DESIGN.md; every color, radius and size here comes from it.

Install

pnpm add @kernhq/ui

svelte >= 5.46 is a peer dependency. The styles ship as plain CSS:

// app entry css (Tailwind v4)
import 'tailwindcss'
import '@kernhq/ui/styles/index.css' // fonts + tokens (+ utilities)
import '@kernhq/ui/styles/theme.css' // shadcn-style vars + Tailwind @theme mapping
  • styles/fonts.css — Google-Fonts import for Instrument Sans, DM Mono and Vazirmatn (fa/ar).
  • styles/tokens.css — every --kern-* token, light + dark ([data-theme='dark']), scrollbars, kslide/kfade keyframes, helper classes (.kern-section-label, .kern-hairline, …).
  • styles/theme.css — maps tokens to shadcn variables (--background, --primary, …) and exposes them to Tailwind v4 via @theme inline (bg-kern-surface-hover, text-kern-ink-350, rounded-card, …).

Usage

<script>
  import { AppShell, Button, Command, Toaster, toast } from '@kernhq/ui'
</script>

<Button icon="plus" size="lg" rounded="xl">New issue</Button>
<Button variant="secondary" onclick={() => toast.success('Saved')}>Save</Button>
<Toaster />

What's inside

  • PrimitivesButton, IconButton, Input, Textarea, Select, Checkbox, Switch, Badge (chip / count / glow), Avatar + AvatarStack (deterministic identity colors), Tabs (underline + pill), SegmentedControl, Dialog, Sheet (440px detail panel), Popover, DropdownMenu, ContextMenu, Tooltip, Command (⌘K palette), toast/Toaster, Kbd, Skeleton, EmptyState, Separator, ScrollArea, table primitives, ListRow, StatTile, SectionLabel, SearchBox, Breadcrumb, StatusDot, ProgressBar, Spinner, Card, Field.
  • LayoutAppShell (60px rail · 268px sidebar · content grid, responsive: drawer ≤1024px, bottom tabs ≤768px), Rail/RailItem/RailLogo, Sidebar/SidebarSwitcher/SidebarGroup/SidebarItem/SidebarPill, PageHeader, Toolbar/ToolbarButton/ViewToggle, RightPanel, Page, BottomTabItem.
  • IconsIcon name-based wrapper over a curated Lucide registry (registerIcons to extend).
  • Module SDKdefineClientModule re-exported from @kernhq/kernel/client with contribution points typed as Svelte components.

RTL & dark mode

Everything uses CSS logical properties and flips correctly under dir="rtl" (fa/ar); Vazirmatn is in the font stacks. Dark mode is activated by setting data-theme="dark" (or class dark) on <html>.

Development

pnpm build      # svelte-package → dist + publint
pnpm typecheck  # svelte-check
pnpm test

Licensed under AGPL-3.0-only, like the rest of Kern.