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

@cmd-kit/preact

v0.1.4

Published

Preact bindings for cmd+kit

Readme

@cmd-kit/preact

npm version Preact TypeScript License

Preact adapter for Cmd+kit with the same UI and behavior baseline as @cmd-kit/react.

Website: https://cmd-kit.vercel.app/
Docs: https://cmd-kit.vercel.app/docs/preact

🌐 Language


🇪🇸 Español

⚡ Instalación

npm install @cmd-kit/preact preact

✅ Qué incluye

  • CommandPalette para Preact.
  • useCommandPalette con API equivalente a React.
  • Mismos defaults visuales/comportamiento que React.
  • Soporte de theme simple o dual (light/dark).
  • Atajos, navegación por teclado, anidado, async y recientes.

🚀 Uso rápido

import { CommandPalette } from "@cmd-kit/preact";

export function App() {
  return <CommandPalette />;
}

🧩 Configuración base

import { CommandPalette } from "@cmd-kit/preact";

const sections = [
  {
    id: "workspace",
    title: "Workspace",
    items: [
      { id: "overview", title: "Overview", shortcut: "mod+o" },
      { id: "projects", title: "Projects", shortcut: "mod+p" }
    ]
  }
];

export function App() {
  return <CommandPalette sections={sections} title="Command menu" />;
}

🎨 Personalización

Igual que React:

  • theme
  • reducedMotion (disable hover/motion animations)
  • classNames
  • renderers
  • renderItem

Ejemplo de tema dual:

<CommandPalette
  sections={sections}
  theme={{
    light: { accentColor: "#0fa6d8", backgroundColor: "#ffffff" },
    dark: { accentColor: "#35d7ff", backgroundColor: "#0b1116" }
  }}
  title="Command menu"
/>

🛝 Integración desde Playground

  1. Configura en playground.
  2. Exporta target Preact.
  3. Copia estructura (sections/items) y opcionales (messages, theme, recents, reducedMotion).
  4. Integra en <CommandPalette />.

🤝 Contribuciones

PRs bienvenidas para bugs, mejoras de DX y parity entre adapters.


🇬🇧 English

⚡ Install

npm install @cmd-kit/preact preact

✅ What you get

  • CommandPalette for Preact.
  • useCommandPalette with React-like API.
  • Same visual/behavior defaults as React.
  • Supports single or dual theme mode (light/dark).
  • Shortcuts, keyboard navigation, nested flows, async source, and recents.

🚀 Quick start

import { CommandPalette } from "@cmd-kit/preact";

export function App() {
  return <CommandPalette />;
}

🎨 Customization

Same customization surface as React (theme, classNames, renderers, renderItem, reducedMotion).

Dual-theme example:

<CommandPalette
  sections={sections}
  theme={{
    light: { accentColor: "#0fa6d8", backgroundColor: "#ffffff" },
    dark: { accentColor: "#35d7ff", backgroundColor: "#0b1116" }
  }}
  title="Command menu"
/>

🛝 Playground integration

Use the Preact export target, then paste sections/items (+ optional messages, theme, recents, reducedMotion) into your integration.

🤝 Contributing

PRs are welcome for bugs, DX improvements, and adapter parity.


Portfolio: Fr4n0m → https://codebyfran.es