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

@rbxts/forge

v0.5.1

Published

A window manager for Vide — rules for what may be open, when

Downloads

511

Readme

Forge

A window manager for Vide — rules for what may be open, when. Forge owns no rendering, no popups, no notifications. It just decides whether a window is allowed to open, and gives you a reactive Vide.Source<boolean> per window to bind however you like.

⚠️ Upgrading from Forge < 0.5.0?

Forge 0.5.0 is a complete rewrite with a different API and no code shared with the old "app manager" version (decorators, @App, @ChildApp, context providers, etc. are all gone).

If you're using an older Forge and aren't ready to migrate, pin the old version:

There is no automated migration path — the new API is small enough to rewrite by hand once you read below.

Install

npm install @rbxts/forge

Usage

import Forge from "@rbxts/forge";

const forge = new Forge({
	windows: {
		hud: { defaults: { open: true }, persistent: true },
		shop: { hotkey: Enum.KeyCode.B },
		buyPrompt: { parent: "shop" },
	},
	exclusive: {
		main: ["shop", "inventory"],
	},
});

forge.shop.open();
forge.shop.toggle();
Visible={forge.shop.state}

Window names, and every parent/closes/blockedBy/lane reference to another window, are typed against the config itself — typos are compile errors and everything autocompletes.

Rules per window

  • parent — closing (or displacing) the parent closes this window too, recursively.
  • closes — opening this window force-closes these, regardless of exclusivity.
  • blockedBy — this window refuses to open while any of these are open.
  • defaults.open — starting state override (e.g. a HUD that starts open).
  • persistent — survives closeAll().
  • hotkey — one bind or several: a Enum.KeyCode, or { hold, press } for hold-combos (e.g. controller shoulder + face button). Built on Roblox's Input Action System.
  • onOpen / onClose — side-effect callbacks.

Exclusivity lanes

exclusive: {
	main: ["shop", "inventory"],               // shorthand, mode defaults to "displace"
	modal: { mode: "block", members: ["shop", "settings"] },
}
  • "displace" (default) — opening a lane member closes whichever other member is open.
  • "queue" — opening a lane member while another is open queues it; it opens automatically once the lane frees up.
  • "block" — opening a lane member while another is open fails (open() returns false).

Handle API

Every registered window gets:

forge.<name>.open(force?)  // returns false if blocked/queued (unless force)
forge.<name>.close()
forge.<name>.toggle()
forge.<name>.state         // Vide.Source<boolean> — pass, don't call, to stay reactive

Plus manager-level methods:

forge.closeAll()               // closes everything except persistent windows
forge.reset()                  // restores every window to its defaults
forge.attachHotkeys(parent)    // binds all `hotkey`s under an Instance, returns a cleanup fn

License

MIT