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

@djangocfg/ui-tools

v2.1.468

Published

Heavy React tools with lazy loading - for Electron, Vite, CRA, Next.js apps

Readme

@djangocfg/ui-tools

@djangocfg/ui-tools

Heavy, lazy-loaded React components for admin, devtools, and dashboards. Pairs with @djangocfg/ui-core (primitives + theme tokens).

Every tool is React.lazy by default — import what you use, pay only its bundle cost.

Install

pnpm add @djangocfg/ui-tools @djangocfg/ui-core
/* your app's globals.css — Tailwind v4 must scan this package's sources */
@import "@djangocfg/ui-core/styles/full";
@import "@djangocfg/ui-tools/styles";   /* ← add this */

Without the styles import, Tailwind never sees this package's classes and tools render partially unstyled.

Wrap your app in <UiProviders> from @djangocfg/ui-core once at the root (gives Tooltip/Dialog/Toast context to every tool).

Catalogue

| Group | Tools | |---|---| | chat/ | ChatLauncher, MessageList, Composer, SuggestedPrompts | | data/ | DataGrid · DataTable · JsonTree · Kanban · Listbox · Masonry · Timeline · Tree | | dev/code/ | PrettyCode · DiffViewer · MarkdownMessage | | dev/api/ | OpenapiViewer · ApiRefTable · RequestViewer | | dev/ops/ | LogViewer · EnvTable | | dev/ (top) | Mermaid · Map | | forms/ | CodeEditor (Monaco) · JsonEditor · JsonForm · MarkdownEditor · NotionEditor · FileUpload · Uploader | | input/ | Combobox · CronScheduler (+ CronPreview) · Scroller · Sortable · SpeechRecognition | | media/ | AudioPlayer · VideoPlayer · ImageViewer · LottiePlayer · Gallery | | overlay/ | ResponsiveDialog · ScrollSpy · SelectionToolbar · Tour | | visual/charts/ | Gauge · ActivityGraph · CommitGraph · Sparkline | | visual/indicators/ | StatusIndicator · Fps · Rating | | visual/design/ | ColorPicker · ColorPalette · FileIcon | | visual/ (top) | Marquee · QRCode |

Sub-grouping is internal — public imports stay flat.

Usage

import { JsonTree, LogViewer, DiffViewer, CronScheduler } from '@djangocfg/ui-tools';

<JsonTree data={response} compactHeader />
<LogViewer entries={logs} />
<DiffViewer oldCode={a} newCode={b} language="ts" view="split" />
<CronScheduler value={cron} onChange={setCron} />

Subpath imports avoid loading siblings:

import { JsonTree } from '@djangocfg/ui-tools/json-tree';
import { LogViewer } from '@djangocfg/ui-tools/log-viewer';

Theming

All tools render through @djangocfg/ui-core semantic tokens (bg-card, text-foreground, border-border, status surfaces) — they adapt automatically to light/dark and to the theme presets in ui-core.

Two intentional exceptions, both opt-in via prop:

  • PrettyCode — fixed dark surface regardless of UI theme. Code blocks ship their own contrast model (GitHub/VSCode/ChatGPT convention); mixing with light UI produces low-contrast pastel renders. Override via mode="light".
  • DiffViewer — adaptive; uses themes.github on light, themes.vsDark on dark via useResolvedTheme().

Canvas/SVG components (charts, viz) sample theme colors via useThemeColor/alpha from @djangocfg/ui-core/styles/palette — never color-mix/oklch strings (Canvas2D rejects them).

Lazy loading

Every tool's default export is React.lazy-wrapped; initial bundle stays small. Heaviest:

Mermaid ~800KB · Monaco CodeEditor ~550KB · PrettyCode (shiki) ~500KB · OpenapiViewer ~400KB · JsonForm ~300KB · AudioPlayer (WaveSurfer) ~200KB · LottiePlayer ~200KB · NotionEditor (TipTap) ~200KB · VideoPlayer (media-chrome) ~150KB · JsonTree ~100KB · ImageViewer ~50KB · CronScheduler ~15KB.

Works in Next.js, Vite, Wails, CRA — no framework lock-in.

Build discipline

After any src/ change, run pnpm build before considering the change done — consumers pick up dist/ via pnpm sync:cfg; a stale dist/ ships old code silently. See CLAUDE.md for details.

pnpm build    # rebuild dist/ (tsup)
pnpm check    # tsc --noEmit

Requirements

  • React 18 or 19
  • @djangocfg/ui-core (peer)
  • Tailwind CSS v4 (host imports @djangocfg/ui-core/styles)

License

MIT — © djangocfg.