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

@fcannizzaro/streamdeck-react

v0.1.12

Published

Build Stream Deck plugins with React — render components directly to keys, dials, and touch screens

Downloads

890

Readme

@fcannizzaro/streamdeck-react

npm npm npm

React primitives, hooks, and a custom renderer for building Stream Deck plugins with React across keys, dials, and touch surfaces.

Install

bun add @fcannizzaro/streamdeck-react react

Scaffolding

The fastest way to get started is with the create-streamdeck-react CLI:

bun create streamdeck-react
# or pnpm create streamdeck-react@latest
# or npm create streamdeck-react@latest

It walks you through project setup — name, UUID, package manager, starter example — then optionally installs dependencies and links the plugin to Stream Deck.

Quick Start

Create an action:

import { useState } from "react";
import { defineAction, useKeyDown, tw } from "@fcannizzaro/streamdeck-react";

function CounterKey() {
  const [count, setCount] = useState(0);

  useKeyDown(() => {
    setCount((value) => value + 1);
  });

  return (
    <div
      className={tw(
        "flex h-full w-full items-center justify-center bg-gradient-to-br from-[#0f766e] to-[#164e63] text-white",
      )}
    >
      <span className="text-[32px] font-bold">{count}</span>
    </div>
  );
}

export const counterAction = defineAction({
  uuid: "com.example.counter",
  key: CounterKey,
});

Register it in your plugin entrypoint:

import { createPlugin } from "@fcannizzaro/streamdeck-react";
import { counterAction } from "./actions/counter.tsx";

const plugin = createPlugin({
  fonts: [],
  actions: [counterAction],
});

await plugin.connect();

What You Get

  • React-driven rendering for Stream Deck keys, dials, and touch layouts
  • Hooks for key, dial, touch, lifecycle, SDK, and settings events
  • Optional wrappers for shared providers and external state libraries
  • Built-in primitives like Box, Text, Image, Icon, ProgressBar, and CircularGauge

Samples

  • samples/counter/ - local state, settings hook, dial interaction
  • samples/zustand/ - shared external store across multiple actions
  • samples/jotai/ - shared atom state with a plugin-level wrapper
  • samples/pokemon/ - richer plugin example with custom wrappers
  • samples/snake/ - snake game on the Stream Deck+ touch strip using dial controls and touch tap
  • samples/weather/ - weather forecast dials with animated detail panels and a shared Zustand store

DevTools

A browser-based inspector for debugging plugins during development. Enable it in your plugin config:

const plugin = createPlugin({
  devtools: true,
  // ...
});

Then open the hosted UI at streamdeckreact.fcannizzaro.com/devtools, or run a local copy:

npx @fcannizzaro/streamdeck-react-devtools

Panels include Console, Network, Elements (with on-device highlighting), Preview, and Events. All devtools code is automatically stripped from production builds.

Documentation

For setup guides, API reference, state-sharing patterns, and more examples, see:

https://streamdeckreact.fcannizzaro.com

License

MIT