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

banana-panels

v0.1.2

Published

Composable React panels for container-scoped workspaces, docked operator consoles, and resizable multi-panel application surfaces.

Readme

banana-panels

Composable React panels for container-scoped workspaces, docked operator consoles, and resizable multi-panel application surfaces.

What This Package Is For

Use banana-panels when your product needs one or more of these patterns:

  • draggable and resizable workspace panels
  • docked context surfaces anchored to layout corners
  • container-scoped panel systems inside application screens
  • modal overlays that match the same panel design language
  • runtime theming for panel chrome, gradients, typography, and status accents

Install

npm install banana-panels react react-dom

Live Demo

Production Storybook demo for the npm package:

  • https://panels.banana.engineer/

Direct interaction demo route:

  • https://panels.banana.engineer/?path=/story/panels-interactions-docking-labels--default

Get Started

The most important integration pattern is:

  1. create a relatively positioned host element
  2. mount a PanelStage inside it
  3. render ResizablePanel and/or ResizableDockGrid with hostMode="container"
import { PanelStage } from 'banana-panels';
import { ResizablePanel } from 'banana-panels/resizable-panel';

export function Example() {
  return (
    <div style={{ position: 'relative', minHeight: 560 }}>
      <PanelStage label="Example workspace">
        <ResizablePanel
          id="example-panel"
          title="Example Panel"
          hostMode="container"
          x={16}
          y={16}
          width={360}
          height={240}
          onMove={() => {}}
          onResize={() => {}}
          onFocus={() => {}}
          onAnchorCommit={() => {}}
        >
          Container-scoped panel content.
        </ResizablePanel>
      </PanelStage>
    </div>
  );
}

Common Usage Scenarios

Free Panel Workspace

Use this for builder UIs, control rooms, inspectors, and multi-pane editing surfaces.

Core primitives:

  • PanelStage
  • ResizablePanel

Docked Context Surface

Use this when panels should seed into corners and stay grouped as supporting context around a main task.

Core primitives:

  • PanelStage
  • ResizableDockGrid

Modal or Interruptive Step

Use this when a user needs a temporary overlay that still looks and behaves like the rest of the panel system.

Core primitives:

  • PanelOverlay
  • PanelBase

Themeable Workspace

Use this when consumers need runtime theming for product skins, branded workspaces, or scenario-based visual presets.

Core primitives:

  • theme-pipeline
  • tailwind/preset

Storybook Surfaces

Themes

Theme stories show runtime styling systems, visual codenames, and container-scoped panel layouts.

Interactions

Interaction stories now live under Panels / Interactions and are organized around behavioral categories such as drag and snap, docking labels, dialog flows, closable panels, and cross-panel relationships.

Interaction guide:

Package Wiki

Use the package wiki for component-by-component guidance.

Wiki index:

Recommended reading order:

  1. wiki/getting-started.md
  2. wiki/components/panel-stage.md
  3. wiki/components/resizable-panel.md
  4. wiki/components/resizable-dock-grid.md
  5. wiki/components/theme-pipeline.md
  6. wiki/components/panel-overlay.md
  7. wiki/components/panel-base.md
  8. wiki/components/composition-and-behavior.md

Public API Overview

Main entrypoints developers typically need:

  • banana-panels
  • banana-panels/panel-stage
  • banana-panels/resizable-panel
  • banana-panels/resizable-dock-grid
  • banana-panels/panel-base
  • banana-panels/panel-overlay
  • banana-panels/theme-pipeline
  • banana-panels/tailwind/preset

Lower-level APIs are available for advanced integrations, but most consumers should start with the primitives above.

Maintainer Notes

Local Storybook:

cp .env.example .env
bun run storybook

Static Storybook build:

bun run build-storybook

Repository-root helper commands:

bun run storybook:panels:build
bun run storybook:panels:local
PANELS_STORYBOOK_DEPLOY_USER=<ssh-user> bun run storybook:panels:deploy

First npm publish workflow:

cd src/typescript/packages/panels
bun install
bun run build
npm publish --access public