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

rbx-resources

v0.0.16

Published

Centralize game assets with a Resources folder.

Readme

rbx-resources

rbx-resources lets you easily access game assets and create named instances in your game.

rbx-resources exports two functions: getResource and getLocalResource.

getResource with Instances

When you call getResource with an Instance value from the rbx-new package and a name from the server, rbx-resources will:

  • Create a folder named Resources in ReplicatedStorage if it doesn't already exist
  • Create a sub-folder named after the ClassName of the Instance type
  • Instantiate that Instance on the server, set its name to what you specified, and then parent it to the sub-folder.

When you call getResource from the client, it will follow the same process above, except it will use WaitForChild instead of creating new instances.

This means that getting the same RemoteEvent on both the server and client is as easy as this:

import { RemoteEvent } from 'rbx-new';
const event = getResource(RemoteEvent, "SomeRemoteEvent");

getResource with custom types

You can also call getResource with a string instead of an Instance type as the first parameter. This will follow roughly the same process as above, but for prefabricated instances that you would have already placed in the Resources folder in Studio.

For example, you could create a Weapon folder inside of the Resources folder in ReplicatedStorage, and then you can place named weapon models inside of it. Then, in your code:

const sword = getResource<Model>("Weapon", "Darkheart");

getLocalResource

getLocalResource is very similar to getResource, except it does not replicate across the network.

On the server, calling getLocalResource will look for or create a Resources folder inside ServerStorage.

On the client, it will look for or create a Resources folder inside the Player object.

This is useful for things like BindableEvents, where they don't need to exist on the server:

const event = getLocalResource(BindableEvent, "FooBarBaz");

Credits

rbx-resources is inspired by RoStrap's Resources library.