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

tgui-core

v5.9.0

Published

TGUI core component library

Downloads

11,992

Readme

tgui-core

npm version

A collection of utilities and components for the tgui framework.

This package was built to help the various downstream SS13 servers stay up to date with TGUI without having to keep a local version of each file.

Testing / Demos

This project uses Storybook both for testing locally (via bun storybook) and our live demo site (https://tgstation.github.io/tgui-core/).

Storybook is a sandbox environment for UI components so you can test them in isolation without needing to boot the game.

Links

Usage

(assuming you have a tgui folder, navigate to the specific package)

cd tgui/packages/{package name}
yarn add tgui-core

Using the components

Now, you can use them like normal TGUI components.

import { Button } from "tgui-core/components";

<Button>Click</Button>;

You can even use it in tandem with your own in house TGUI components,

import { Button } from "tgui-core/components";
import { Box } from "../components";

Using the styles

You have two options for importing styles:

1. Importing All Styles

To import all styles at once, add the following line to your main Sass file:

@use "~tgui-core/styles";

2. Importing Individual Styles

To import individual styles, add any of the exported styles to your main Sass file:

@use "~tgui-core/styles/components/Button";
@use "~tgui-core/styles/components/Dialog";
@use "~tgui-core/styles/components/NoticeBox";

License

MIT

Contributing

Contributions are welcome. Please open an issue or a pull request. I am available on the tgstation discord.

Releasing a new version

To automagically release a new version of the tgui-core package, simply create a new release with the tag set to the new version you want to publish. Set the tag to be the commit you want to base the version off of (likely the latest, being the default).

The release workflow will take care of setting the package.json version, building, and publishing to npm.

Development

This project uses bun for its package manager.

To set up the repository: bun install

To test your changes using Storybook run: bun storybook

To run unit tests run bun test

To build dist folder bun run build-rslib