Winbox is a browser-based windowing system and JavaScript library for creating draggable and resizable floating windows within a web interface. It functions as a floating window framework that enables the development of desktop-like experiences using a configurable viewport and coordinate system.
The system allows for the rendering of various content types, including raw HTML, existing DOM elements, and remote URLs loaded via iframes. It provides extensive UI customization through custom window layout templates, visual theme application via CSS classes, and the addition of custom controls to the window toolbar.
The framework includes a comprehensive window management suite for orchestrating multiple independent instances. This covers focus tracking and z-index stacking, programmatic control of window states—such as minimizing, maximizing, and hiding—and the ability to restrict movement or resizing through viewport limit configurations. It also features event-driven lifecycle callbacks for handling window movement, resizing, and closing interception.