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

@rbxts/rubine

v0.2.0-ts.1

Published

An ergonomic, runtime agnostic scheduler for jecs

Readme

CI License: MIT Typescript Version

An ergonomic, runtime agnostic scheduler for Jecs

Features

1. Phases

Rubine uses phases to bind systems to events and order them.

Phases live in rubine's Jecs world, having the Phase tag, and either the Event component or a dependant pair (pair(DependsOn, another_phase)).

Phases can be ordered implicitly:

local event = signal()
local my_phase = scheduler.phase("my_phase", event)
local my_phase_b = scheduler.phase("my_phase_b", event) -- Ordered after `my_phase`

or explicitly:

local event = signal()
local my_phase = scheduler.phase("my_phase", event)
local my_phase_b = scheduler.phase("my_phase_b", my_phase) -- Ordered after `my_phase`

Multiple phases cannot be bound to the same event, but instead depend on one another.

2. Systems

Systems are bound to phases. Whenever an event the system is (indirectly) on is fired, it's ran.

Systems live in rubine's Jecs world, having the System component describing it, and a pair describing what phase it runs on (pair(DependsOn, phase)).

Systems are created with scheduler.on:

local function system()
end

local my_system = scheduler.on(my_phase, system)

can have their execution paused:

scheduler.pause(my_system)

and unpaused:

scheduler.unpause(my_system)

Systems also contain data about the moment they started running and ended, being reset on every run.

type System = {
    run: (...any) -> (),
    paused: boolean,
    frame_start: number,
    frame_end: number,
}

Systems cannot yield without _G.__RUBINE_DEBUG_MODE being true.

3. Hooks

Hooks are available via the abstractions module. Under the hood, they use Jecs hooks to observe changes to the world and run user defined callbacks on them.

With them, you can hook onto system calls

abstractions.hook("SystemCall", function(system_id: Entity, system_data: System, previous_data: System)
end)

system additions

abstractions.hook("SystemAdd", function(system_id: Entity, system_data: System)
end)

system removals

abstractions.hook("SystemRemove", function(system_id: Entity)
end)

and all system changes

abstractions.hook("SystemChange", function(systme_id: Entity, system_data: System, previous_data: System)
end)

4. Pipes

Pipes are a tiny abstraction over phases, mainly meant to be used with pipelines. All pipe names are unique, being the script name and the line number of where they were defined.

local my_pipe = abstractions.pipe()
scheduler.phase(my_pipe, event)

5. Pipelines

Pipelines are an abstraction over phases, allowing for handy implicit ordering.

local pipe_a = abstractions.pipe()
local pipe_b = abstractions.pipe()
local pipe_c = abstractions.pipe()

-- Pipe A is bound to the given event
-- Pipe B depends on Pipe A
-- Pipe C depends on Pipe B
abstractions.pipeline()
    :with(pipe_a)
    :with(pipe_b)
    :with(pipe_c)
    :build(event)

Installation

Pesde

Available for use in standalone luau.

  1. pesde add mark_marks/rubine
  2. pesde install

Wally

Available for use in Roblox.

  1. Add it to your wally manifest
[dependencies]
rubine = "mark-marks/rubine@LATEST" # Replace LATEST with the latest version
  1. wally install

NPM (roblox-ts)

  1. npm add @rbxts/rubine
  2. npm install

Honorable Mentions