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

@zaflun/lumio-sdk

v0.3.0

Published

Lumio Extension SDK — React components, hooks, and server utilities for building Lumio extensions

Downloads

381

Readme

@zaflun/lumio-sdk

The official SDK for building Lumio extensions — widgets, overlays, bot modules, integrations, and themes for live streamers.

Installation

npm install @zaflun/lumio-sdk react react-dom

Quick Start

import { Lumio, CompactView, Text, Toggle, useExtensionStorage } from "@zaflun/lumio-sdk";

function MyWidget() {
  const [storage, setStorage] = useExtensionStorage("settings", { visible: true });

  return (
    <CompactView title="My Widget">
      <Toggle
        label="Visible"
        checked={storage.visible}
        onChange={(checked) => setStorage({ ...storage, visible: checked })}
      />
      <Text content={storage.visible ? "Hello World!" : ""} />
    </CompactView>
  );
}

Lumio.render(<MyWidget />, { target: "editor" });

What's included

14 UI Components

Layout: Box, VStack, HStack, CompactView, List Display: Text, Image Input: Button, Toggle, TextField, TextArea, NumberField, Dropdown, Slider Animation: Animated (with 22 built-in presets)

10 Hooks

| Hook | Purpose | |------|---------| | useExtensionStorage() | Persistent key-value storage synced across surfaces | | useVisionState() | Per-key state with real-time sync | | useExtensionContext() | Extension metadata (ID, target, overlay) | | useLumioEvent() | Subscribe to platform events (49 event types) | | useLumioConfig() | Read/write extension config | | useLumioTheme() | Active overlay/widget theme (colors, fonts) | | useLumioIdentity() | Current user/account context | | useLumioAction() | Trigger platform actions (21 action types) | | useQuery() | Call server query functions | | useMutation() | Call server mutation functions |

Server Functions (@zaflun/lumio-sdk/server)

import { defineSchema, defineTable, v, queryRows, insertRow } from "@zaflun/lumio-sdk/server";

export default defineSchema({
  scores: defineTable({
    player: v.string(),
    points: v.number(),
  }).storage("instance"),
});

export const getScores = queryRows("scores");
export const addScore = insertRow("scores", { player: arg("player"), points: 0 });

Animation

import { Animated, useAnimation, defineKeyframes } from "@zaflun/lumio-sdk";

// Built-in presets: fadeIn, slideUp, zoomIn, bounce, pulse, ...
<Animated in="fadeIn" duration={500}>
  <Text content="Hello!" />
</Animated>

Custom Fonts

import { localFont } from "@zaflun/lumio-sdk";

const scoreFont = localFont({
  src: "./fonts/Orbitron-Bold.woff2",
  family: "Orbitron",
  fallback: ["sans-serif"],
});

Three Surfaces

| Surface | File | Where it renders | |---------|------|-----------------| | editor | src/editor.tsx | Dashboard sidebar panel | | layer | src/layer.tsx | OBS overlay (transparent) | | interactive | src/interactive.tsx | Audience page |

All surfaces share storage — changes in the editor propagate to the overlay in real time.

Security

Extensions run in a sandboxed Web Worker with zero DOM access. A custom React reconciler serializes the component tree to JSON, which the host renders. Extension code cannot access cookies, JWT tokens, localStorage, or any host resources.

Documentation

License

MIT © zaflun