
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
tgui-core
Advanced tools
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.
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.
(assuming you have a tgui folder, navigate to the specific package)
cd tgui/packages/{package name}
yarn add tgui-core
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";
You have two options for importing styles:
To import all styles at once, add the following line to your main Sass file:
@use "~tgui-core/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";
MIT
Contributions are welcome. Please open an issue or a pull request. I am available on the tgstation discord.
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.
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
FAQs
TGUI core component library
The npm package tgui-core receives a total of 2,736 weekly downloads. As such, tgui-core popularity was classified as popular.
We found that tgui-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.