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

@gustavolmo/react-window-manager

v0.4.3

Published

A flexible window management system for React applications.

Downloads

242

Readme

React Window Manager (RWM)

A flexible window management system for React applications.


INSTALL RWM

1. Install Dependencies

Install React Window Manager along with React and React DOM.

React and React DOM (v19+) are peer dependencies.

pnpm add @gustavolmo/react-window-manager
pnpm add react react-dom
npm install @gustavolmo/react-window-manager
npm install react react-dom
yarn add @gustavolmo/react-window-manager
yarn add react react-dom

2. Import Default Styles

The library includes its own compiled CSS. Import it once at your application root:

import "@gustavolmo/react-window-manager/index.css"

QUICK START

1. Create a Window

Call createWindowStore() to create a new window instance.

const myWindow1 = createWindowStore()
const myWindow2 = createWindowStore()

Each instance contains everything needed to render and control a window.


2. Render the Window

All windows must be rendered inside WorkspaceLayout.

This component acts as:

  • The rendering surface
  • The coordinate system
  • The stacking context for all windows
import { WorkspaceLayout } from "@gustavolmo/react-window-manager"

// ...

<WorkspaceLayout>
  {/* any valid code */}

  <myWindow1.Window>
    {/* any valid code */}
  </myWindow1.Window>

  <myWindow2.Window>
    {/* any valid code */}
  </myWindow2.Window>
</WorkspaceLayout>

3. Adjusting the Workspace Layout

By default, the workspace layout is fixed with full width and height. You can override this using className.

All windows will adjust their coordinates accordingly.

To prevent visual overflow outside the workspace layout, elements placed outside must have a higher z-index than the total number of windows.

Example:

// Example with Tailwind (regular CSS also works)

<section className="fixed w-full h-full flex flex-col">
  <WorkspaceLayout className="h-full w-full grow">
    {/* any valid code */}
  </WorkspaceLayout>

  <nav className="w-full h-12 bg-neutral-900 flex gap-2 px-4 z-50">
    {/* any valid code */}
  </nav>
</section>

4. Control the Window

Use the .Button property from the window store to control visibility.

Buttons can be placed anywhere and can control the same window from multiple locations.

<myWindow1.Button>
  {/* any valid code */}
</myWindow1.Button>

5. Defaults

The default setup includes:

  • Built-in styling
  • Docking panel
  • Resize edge detection

No additional configuration is required for basic usage.


FURTHER READING

For advanced usage patterns and API details:

Full documentation: https://gustavolmo.github.io/react-window-manager/