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

@3xjn/prism

v0.1.0

Published

A typed Roblox UI kit for rbxts-react.

Readme

Prism

A Roblox TypeScript UI kit for rbxts-react — typed components, theme tokens, and Roblox-native sizing.

Components

| | | | --- | --- | | Layout | Box, Stack, Divider, Card, ScrollArea | | Text and media | Text, Icon, Image, Avatar | | Inputs and forms | Button, Pressable, Input, KeybindInput, Checkbox, Switch, StepperInput, Slider | | Feedback | Progress, CircularProgress, Backdrop | | Navigation | SegmentedControl, Tabs, Menu, Select | | Overlays | WorldPortal, Popover, Modal, Tooltip | | Utility | Draggable |

Also: @3xjn/prism exports ThemeProvider and tokens, motion hooks, unit helpers, and mountPrism for Luau interop.

Setup

Needs Node, Rojo, and Roblox Studio.

npm install
npm run build
rojo serve

Usage

npm install @3xjn/prism @rbxts/react @rbxts/react-roblox
import React from "@rbxts/react";
import { Button, Divider, Stack, Text, ThemeProvider, theme } from "@3xjn/prism";

export function ServerControls() {
	return (
		<ThemeProvider>
			<Stack width={280} bg={theme.primary.main} radius="md" p="md" gap="sm">
				<Text size="lg" color={theme.text.inverse} text="Server controls" />
				<Divider color={theme.border.subtle} />
				<Button variant="light" color="secondary" label="Save changes" />
			</Stack>
		</ThemeProvider>
	);
}

Because Prism uses a custom npm scope, add that scope beside @rbxts in both consumer mappings:

// tsconfig.json
"typeRoots": ["node_modules/@rbxts", "node_modules/@3xjn"]
// default.project.json, under rbxts_include
"node_modules": {
	"$className": "Folder",
	"@rbxts": { "$path": "node_modules/@rbxts" },
	"@3xjn": { "$path": "node_modules/@3xjn" }
}

Text goes through text / label props — JSX text children aren't type-supported on forwardRef components in this toolchain.

Controlled inputs are plain React state:

const [query, setQuery] = React.useState("");

<Input value={query} onChange={setQuery} placeholder="Search" variant="outline" fullWidth />

Tokens and units

Intent props take strings (color="success"); concrete color props take theme.* refs or raw Color3 values. Dotted strings like "text.secondary" are not accepted.

<Button color="success" variant="filled" label="Publish" />
<Text color={theme.text.secondary} text="Autosaved just now" />
<Stack bg={Color3.fromRGB(20, 20, 20)} radius="lg" p="md" />

Sizing is Roblox-native — numbers are pixel offsets, percentage strings are scale, UDim/UDim2 pass through:

<Stack width={280} />
<Stack width="50%" />
<Stack width={new UDim(0, 280)} />

Size tokens ("xs" … "xl") cover spacing, radius, and text size. Invalid tokens throw in dev.

Slot props

Escape hatch for instance properties the component API doesn't cover. Applied last.

<Button
	label="Danger"
	color="error"
	variant="outline"
	slotProps={{
		root: { LayoutOrder: 10 },
		stroke: { Thickness: 2 },
	}}
/>

Motion

useMotion animates numbers, Color3 values, and theme refs with the same tokens Prism uses internally:

const animated = useMotion({
	values: {
		scale: hovered ? 1.04 : 1,
		bg: hovered ? theme.primary.light : theme.background.surface,
	},
	transition: { duration: "fast", easing: "out" },
});

Components own their internal motion — overriding the same property via slotProps can fight a managed animation.

Playground

ui-labs stories live in src/playground/stories. index.storybook.ts is the storybook config; index.ts imports each *.story module so roblox-ts emits them. Add *.story.tsx files there for new components.

Non-goals

Wally, polymorphic as props, app shell patterns, and timeline/keyframe animation.