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

@geenius/storybook

v0.16.0

Published

Shared storybook shell bridge and Vite preset for all @geenius packages

Readme

@geenius/storybook

Shared storybook shell bridge and Vite preset for @geenius/* package demos.

@geenius/storybook gives package families a standard story surface contract, a shared shell runtime, a dedicated Vite preset subpath, and buildable React and SolidJS demo scaffolds without each package re-inventing navigation, keyboard shortcuts, theming, or comparison layouts.

The package deliberately ships two runtime styles per framework:

  • Headless runtimes: @geenius/storybook/react, @geenius/storybook/solidjs
  • Bundled CSS runtimes: @geenius/storybook/react-css, @geenius/storybook/solidjs-css

Installation

pnpm add @geenius/storybook

Supported Imports

| Import | Purpose | | --- | --- | | @geenius/storybook | Shared contract for surfaces, runtime helpers, and typed errors | | @geenius/storybook/shared | Explicit alias to the shared contract | | @geenius/storybook/runtime | Runtime-safe shared helpers and typed errors for browser code | | @geenius/storybook/vite | Config-only Vite preset entry for build-time integration | | @geenius/storybook/react | Headless React shell runtime | | @geenius/storybook/react-css | React shell runtime with bundled vanilla CSS | | @geenius/storybook/solidjs | Headless SolidJS shell runtime | | @geenius/storybook/solidjs-css | SolidJS shell runtime with bundled vanilla CSS |

Quick Start

1. Define a story surface

import { defineSurface } from "@geenius/storybook/runtime";

export const STORY_SURFACE = defineSurface([
  {
    title: "Primitives",
    stories: [
      {
        id: "button",
        label: "Button",
        description: "Primary button states and variants",
        tags: ["comparison", "forms"],
      },
    ],
  },
] as const);

2. Create a Vite config

import react from "@vitejs/plugin-react";
import { createStorybookViteConfig } from "@geenius/storybook/vite";

export default createStorybookViteConfig({
  framework: "react",
  port: 3060,
  plugins: [react()],
});

3. Mount the styled runtime

import { ReactStorybookApp } from "@geenius/storybook/react-css";

export function App() {
  return (
    <ReactStorybookApp
      packageName="@geenius/ui"
      frameworkLabel="React"
      overview="Shared component stories with the standard Geenius shell."
      sections={STORY_SURFACE}
      components={{
        button: () => <button>Button story</button>,
      }}
      defaultStoryId="button"
    />
  );
}

Headless vs CSS Variants

  • Use @geenius/storybook/react or @geenius/storybook/solidjs when you want the shell runtime without bundled styles.
  • Use @geenius/storybook/react-css or @geenius/storybook/solidjs-css when you want the same runtime with the standard vanilla CSS shell styling included.
  • The package ships React and SolidJS demo apps in this repository as release-gate checks, not as part of the published npm contract.

Demo Apps

The repository includes React and SolidJS demo apps that act as the real-consumer verification surface for this package.

Both demos intentionally show the headless and bundled CSS runtime variants side by side while mounting the published @geenius/storybook/* exports. The demo sources live in the package repository and are exercised by the release gate rather than being part of the published npm contract.

Repository demo links:

Run them locally with:

pnpm --filter ./apps/storybook-react dev
pnpm --filter ./apps/storybook-solidjs dev

Release Gate

The package release gate requires all of the following to pass:

  • pnpm build
  • pnpm lint
  • pnpm lint:apps
  • pnpm test
  • pnpm build:apps

License

MIT. See LICENSE.