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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@rbxts/quirk-ui

v1.0.8

Published

A modern, component-based UI library for Roblox-TS with reusable components and utilities

Readme

@rbxts/quirk-ui

A modern, component-based UI library for Roblox-TS with reusable components and utilities.

Features

  • 🎨 Component-based architecture - Build UIs with reusable components
  • 🎮 Roblox-TS optimized - Built specifically for Roblox TypeScript development
  • 🛠️ Template-based hydration - Uses Roblox GUI templates that get hydrated with TypeScript logic
  • 🔧 Utility classes - GuiController, GuiBase, GuiButton, and more
  • 📦 Easy to use - Simple API for managing UI state and interactions
  • 🔧 TypeScript support - Full type definitions included

Installation

npm install @rbxts/quirk-ui

Quick Start

This library uses a template-based approach where you create GUI templates in Roblox Studio and hydrate them with TypeScript logic.

1. Create GUI Templates in Roblox Studio

Create a Templates folder in ReplicatedStorage and organize your UI templates by functionality:

Template Structure Example

Each template should be a Folder containing your UI elements with descriptive names (e.g., "Button1", "Button2").

2. Hydrate with TypeScript

import { UiManager, GuiController, GuiBase } from "@rbxts/quirk-ui";

// Create a custom pane that hydrates your template
class MyCustomPane extends GuiBase<"Button1" | "Button2"> {
    private button1 = this.resolve<ImageButton>("Button1");
    private button2 = this.resolve<ImageButton>("Button2");

    constructor() {
        super({ 
            Template: "MyCustomPane", // Name of your GUI template
            InstanceKeys: { 
                Button1: "Button1", 
                Button2: "Button2" 
            } 
        });
    }
}

// Create a controller
class MyController extends GuiController {
    constructor() {
        super("MyController", new MyCustomPane(), {
            CanHide: true,
            IgnoreGuiInset: false,
            DisabledCoreGuis: [Enum.CoreGuiType.PlayerList],
        });
    }
}

// Register and use
const controller = UiManager.RegisterController(new MyController());
UiManager.Show("MyController");

How It Works

This library follows a template hydration pattern:

  1. Design in Roblox Studio: Create organized template folders in ReplicatedStorage
  2. Hydrate with TypeScript: Use GuiBase to connect your template to TypeScript logic
  3. Manage with Controllers: Use GuiController to handle show/hide logic and settings
  4. Coordinate with UiManager: Register controllers and manage UI state globally

Utility Classes

  • UiManager - Main UI management system
  • GuiController - Base controller for UI components
  • GuiBase - Base class for GUI components
  • GuiButton - Enhanced button component
  • GuiSound - Sound management utilities

API Reference

UiManager

The main UI management system that handles registration and display of controllers.

// Register a controller
UiManager.RegisterController(controller: GuiController): GuiController

// Show a controller
UiManager.Show(namespace: string): void

// Hide a controller
UiManager.Hide(namespace: string): void

// Mount all registered controllers
UiManager.Mount(): void

GuiController

Base class for creating UI controllers.

class MyController extends GuiController {
    constructor(
        namespace: string,
        gui: GuiBase<string>,
        settings: GuiControllerSettings
    ) {
        super(namespace, gui, settings);
    }
}

GuiControllerSettings

Configuration options for GUI controllers.

interface GuiControllerSettings {
    HideWithState?: boolean;
    CanHide?: boolean;
    Visible?: boolean;
    DisabledCoreGuis?: Enum.CoreGuiType[];
    PopUp?: boolean;
    IgnoreGuiInset?: boolean;
    DisplayOrder?: number;
}