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

@keegancodes/llm-kit-ui

v0.1.0

Published

Shared, themeable React UI components for Keegan's apps. Starts with a full application header shell (brand + primary nav + user menu).

Readme

@keegancodes/llm-kit-ui

Shared, themeable React UI for Keegan's apps. First component: AppHeader — a full application header shell (brand + primary nav + user menu) used by coding-stats and market-dashboard.

  • Themeable via a theme prop that maps to CSS custom properties — reskin the whole header (accent, surfaces, text, radius) without forking.
  • Pluggable navigation — pass a custom linkComponent (e.g. a progress-reporting link) or fall back to next/link.
  • Opinionated icons — nav items take lucide-react icon components; the header sizes and colors them consistently.

Install

pnpm add @keegancodes/llm-kit-ui
# peers (both apps already have these):
pnpm add next react react-dom lucide-react

Tailwind setup (required, one line)

The component ships compiled utility classes. Tailwind v4 ignores node_modules by default, so tell it to scan this package in your global stylesheet:

@import "tailwindcss";
@source "../../node_modules/@keegancodes/llm-kit-ui/dist";

The @source path is relative to the CSS file. From src/app/globals.css the path above is correct.

Usage

import { AppHeader } from "@keegancodes/llm-kit-ui";
import { LayoutDashboard, Rocket, Settings } from "lucide-react";

<AppHeader
  brand={<Wordmark />}
  entries={[
    { href: "/dashboard", label: "Dashboard", icon: LayoutDashboard },
    {
      label: "Activity",
      icon: Rocket,
      items: [{ href: "/deployments", label: "Deployments", icon: Rocket }],
    },
  ]}
  user={{ name, email, image }}
  userMenuItems={[{ href: "/settings", label: "Settings", icon: Settings }]}
  onSignOut={signOutAction}
  theme={{ accent: "#34d399", accentSoft: "rgba(52,211,153,0.12)", accentText: "#d1fae5" }}
/>;

Theming

Pass any subset of NavThemeTokens to theme (see src/theme.ts). Anything you omit falls back to the default dark/white skin (DEFAULT_THEME). Tokens are plain CSS values, so you can also drive them from your own CSS variables.

Timeline

A vertical event timeline with two modes, sharing spine/grouping/marker scaffolding. Cards, dots, and on-spine labels are consumer slots.

  • mode="alternating" — cards fan out on alternating sides of a centered spine (single-sided below sm); each item shows a spineLabel (e.g. a time pill). Optional sticky date markers (stickyDateMarkers, default on).
  • mode="rail" — cards to the right of a left rail; each item shows a dot (dotClassName), with a date chip on the rail at each group boundary.

Items are grouped by their date (a YYYY-MM-DD string) into date markers. Theme the spine/markers with TimelineThemeTokens; format labels with dateFormatOptions (serializable — safe from server components) or a formatDateLabel function (client only).

import { Timeline, type TimelineItem } from "@keegancodes/llm-kit-ui";

const items: TimelineItem[] = trades.map((t) => ({
  id: t.id,
  date: t.tradeDate, // YYYY-MM-DD
  dotClassName: t.side === "buy" ? "border-emerald-500 bg-emerald-500/20" : "border-red-500 bg-red-500/20",
  card: <TradeCard trade={t} />,
}));

<Timeline mode="rail" items={items} dateFormatOptions={{ weekday: "short", month: "short", day: "numeric", year: "numeric" }} />;

Local dev note: the card/spineLabel slots are React nodes. From a server component, pass only serializable content (no event handlers) and use dateFormatOptions rather than formatDateLabel.

Publishing

This package is consumed as a published dependency (so Vercel builds resolve it). After changes:

pnpm run build          # emits dist/
npm version patch       # or minor/major
npm publish             # requires your npm auth; access is public

Then bump the version in each consuming app and reinstall.

During local development you can link instead of publishing: pnpm add file:../keegandonley-ui in each app. Switch back to the semver range before committing, since Vercel can't resolve a local path.

pnpm snapshots a file: dependency at install time, so after you add or remove files in this package (not just edit existing ones), re-run pnpm add file:../keegandonley-ui in each consumer or the new modules won't resolve. (link: avoids the snapshot but Turbopack fails to resolve it, so stick with file: + reinstall.)