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-js/scheduler

v17.3.7-ts.1

Published

A Roblox Lua port of the `scheduler` package from React, which is used under the hood by the Fiber Reconciler logic.

Downloads

3,114

Readme

scheduler

A Roblox Lua port of the scheduler package from React, which is used under the hood by the Fiber Reconciler logic.

Status: ✔️ Ported

Source: https://github.com/facebook/react/tree/master/packages/scheduler


✏️ Notes

  • The upstream implementation of min-heap does not include tests. To validate the port, src/__tests__/SchedulerMinHeap.spec.lua was added
  • The scheduler contains two sets of tests
    • A small, basic set of tests using the real scheduler and mock timers.
    • A more thorough test suite that uses MockSchedulerHostConfig.lua, which mocks the entire HostConfig interface and provides functionality to manipulate it within tests.

Profiling

src/SchedulerProfiling.js
src/__tests__/SchedulerProfiling-test.js

Profiling logic used for debugging the Scheduler. Includes tests that produce flamegraphs of processed tasks. This functionality is gated behind the enableProfiling flag defined in SchedulerFeatureFlags.js. Additional functionality is gated behind the enableSchedulingProfiler flag in ReactFeatureFlags. When enabling the Scheduling Profiler, you'll need to plug in a table with a mark function to the _G.performance global, like this:

_G.performance = {
	mark = function(str)
		debug.profileBegin(str)
		debug.profileEnd(str)
}

We may customize this for deeper integration with the Roblox Studio profiler in the future, based on specific performance optimization workflow needs.

❌ Excluded

Post Task

unstable_post_task.js
src/SchedulerPostTask.js
src/__tests__/SchedulerPostTask-test.js

An alternate implementation of the Scheduler interface based on the new postTask browser API. There are relatively recent commits to these files, as well, suggesting new or ongoing development. Since the underlying browser API isn't relevant to the Roblox environment, this logic has been excluded.