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/shieldcore

v0.0.6

Published

Shieldcore is a Roblox framework for creating command-based systems.

Readme

🛡️ ShieldCore Chat Command System

A simple command system for Roblox-TS.

✨ Features

  • Easy command registration via ShieldCore.registerCommand(...)
  • Supports command descriptions
  • Chat-based command execution using /command args...
  • Clean architecture

📦 Installation

npm i @rbxts/shieldcore

🧠 Usage

Registering a Command

Create a command:

import { Command } from "@rbxts/shieldcore";
import { ShieldCore } from "@rbxts/shieldcore";

const flyCommand = new Command(
    "fly",
    (args) => {
        print("Fly command executed with args:", args);
    },
    "Fly",
    "/fly <player>",
    (player) => player.UserId === 123456,
);

ShieldCore.registerCommand(flyCommand);
ShieldCore.start(); // Start Shieldcore

Getting Started

Installation

npm install @rbxts/shieldcore

Starting Shieldcore

Centurion only needs to be started once on the server

import { Shieldcore } from "@rbxts/shieldcore";

Shieldcore.start()

Registration

Here is a example of how you can register a command

import { COMMAND } from "./path/file"
import { Shieldcore } from "@rbxts/shieldcore";

Shieldcore.RegisterCommand(COMMAND);

Examples

Kick Command

import { Command } from "@rbxts/shieldcore";
import { Players } from "@rbxts/services";

const Moderators = [12345678];

function isModerator(player: Player): boolean {
	return Moderators.includes(player.UserId);
}

export const kickCommand = new Command(
	"kick",
	(args: string[], player: Player) => {
		const targetName = args[0];

		const target = Players.FindFirstChild(targetName) as Player | undefined;
		if (!target || !target.IsA("Player")) {
			player.Kick(`Player "${targetName}" not found.`);
			return;
		}

		target.Kick(`You were kicked by ${player.Name}.`);
		print(`${player.Name} kicked ${target.Name}`);
	},
	"Kicks a player from the server.",
	"/kick [player]",
	isModerator,
);

Defining commands

Commands are defined using the command class

A command can be defined like so:

import { Command, Shieldcore } from "@rbxts/shieldcore";

const printCommand = new Command(
    "print",
    (args, player) => {
        print(`Arguments: ${args.join(", ")} from ${player}`)
    },
    "print something",
    "/print <args...>",
    (player) => player.UserId === 1,
)

Registering commands

A command can be register like so:

// server
import { YOURCOMMAND } from "./path/file"; // import your command
import { Shieldcore } from "@rbxts/shieldcore";

Shieldcore.RegisterCommand(YOURCOMMAND);

Starting Shieldcore

Centurion only needs to be started once on the server

// server
import { Shieldcore } from "@rbxts/shieldcore";

Shieldcore.start()