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

@browser.style/gui-panel

v1.0.6

Published

GUI Panel

Readme

GUI Panel

A draggable, resizable popover-based GUI panel web component. Features docking capabilities, color scheme toggle, and uses the native Popover API.

Installation

npm install @browser.style/gui-panel

Usage

Import and use the component in your JavaScript:

import GuiPanel from '@browser.style/gui-panel';

Add the component to your HTML:

<gui-panel>
  <div slot="content">
    <!-- Your panel content here -->
  </div>
</gui-panel>

Slots

  • content - Main panel content
  • close - Optional custom close button icon
  • scheme - Optional custom color scheme toggle icon
  • externalend - Custom icon for external panel (right side)
  • sidebarend - Custom icon for docked panel (right side)
  • externalstart - Custom icon for external panel (left side)
  • sidebarstart - Custom icon for docked panel (left side)

Attributes

  • open - Shows the panel when added
  • title - Sets the panel title (default: "GUI Panel")
  • dock - Docks the panel to either side ("start" or "end")
  • docked - Start panel as docked
  • dismiss - Makes the panel auto-dismiss when clicking outside
  • noscheme - Hides the color scheme toggle button
  • noshadow - Disables Shadow DOM encapsulation
  • popover - Controls popover behavior ("auto" or "manual")
  • position - Sets initial position ("top", "bottom", "left", "center" or combinations)
  • resize - Enables resize handlers ("inline-start", "inline-end", "block-start", "block-end")

CSS Custom Properties

Dimensions & Spacing

  • --gui-panel-w - Width (default: 265px)
  • --gui-panel-h - Height (auto by default)
  • --gui-panel-gap - Internal spacing (default: .5rem)
  • --gui-panel-m - Margin (default: 1rem)

Visual Styling

  • --gui-panel-bg - Background color (default: Canvas)
  • --gui-panel-bdrs - Border radius (default: 10px)
  • --gui-panel-bxsh - Box shadow
  • --gui-panel-c - Text color (default: CanvasText)

Typography

  • --gui-panel-ff - Font family (default: system-ui)
  • --gui-panel-fs - Font size (default: 1rem)

Resize Handles

  • --gui-panel-rz-touch - Touch target size for resize handles (default: 12px)
  • --gui-panel-rz-area - Visual size of resize handles (default: 6px)

Resize & Position

  • --gui-panel-w - Width and minimum width when resizing (default: 265px)
  • --gui-panel-x - Horizontal position
  • --gui-panel-y - Vertical position

Features

  • Draggable panel (drag by title)
  • Color scheme toggle
  • Resizable from any edge (when enabled)
  • Dockable to either side of the viewport
  • Uses native popover API
  • Touch-optimized resize handles
  • RTL support
  • Light/dark mode support

Example

<gui-panel 
  open 
  resize="inline-end block-end" 
  position="bottom left" 
  dock="start"
  dismiss
>
  <div slot="content">
    Panel content here
  </div>
</gui-panel>