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

@lisachandra/types

v0.1.2

Published

Global types for @lisachandra packages and games

Downloads

29

Readme

@lisachandra/types

Global type declarations and augmentations for Roblox services. This is the leaf package with no internal dependencies — all other @lisachandra packages depend on it.

Install

pnpm add @lisachandra/types

Peer dependencies:

{
	"type-fest": "*",
	"@rbxts/types": "*",
	"@rbxts/compiler-types": "*",
	"@rbxts/matter": "*"
}

What It Provides

Global Type N<T>

A shorthand for optional values. Equivalent to T | undefined.

type N<T> = T | undefined;

Usage:

import type { N } from "@lisachandra/types";

const value: N<number> = 42; // ok
const missing: N<number> = undefined; // ok

Global Type Table

Represents any Lua table.

type Table = Record<number | string | symbol, unknown>;

Global Type IsNominal<T>

Checks whether an object type has Flavor-branded nominal keys.

type IsNominal<T> = Exclude<keyof T, ExcludeNominalKeys<T>> extends never ? false : true;

_G Global Augmentations

Globally-available feature flags:

| Property | Type | Purpose | | ------------------------------- | -------------------------------------- | ----------------------------- | | __COMPAT_WARNINGS__ | boolean? | Enable compatibility warnings | | __DEV__ | boolean? | Development mode flag | | __EXPERIMENTAL__ | boolean? | Enable experimental features | | __PROD__ | boolean? | Production mode flag | | __PROFILE__ | boolean? | Enable profiling | | __REACT_MICROPROFILER_LEVEL__ | IntRange<0, 11>? | React microprofiler level | | __TEST__ | boolean? | Test environment flag | | __VERSION__ | `${number}.${number}.${number}`? | Semantic version string | | NOCOLOR | boolean? | Disable colored output |

LuaGlobals Augmentations

declare global {
	interface LuaGlobals {
		/** Lua `unpack` with typed return. */
		unpack: <T extends Array<unknown>>(...args: T) => T;
		/** Lua `setfenv` with typed signature. */
		setfenv: (func: Callback, fenv: Table) => void;
	}
}

Instance Augmentations

Every Instance gets type-safe, generic versions of common methods:

| Method | Enhancement | | ------------------------------ | ------------------------------------------------------ | | FindFirstAncestor<T>(name) | Returns N<T> (typed ancestor) | | FindFirstDescendant<T>(name) | Returns N<T> (typed descendant) | | GetAttribute<T>(name) | Returns N<T> instead of AttributeValue | | WaitForChild<T>(name) | Returns T (blocking) or N<T> (timeout overload) | | FindFirstChild<T>(name) | Returns N<T>, with a generic overload for known keys |

Example:

const part = model.FindFirstChild<BasePart>("Handle");
// part: BasePart | undefined (typed!)

Service Augmentations

Typed children for standard Roblox services:

Workspace:

interface Workspace {
	Map: Folder;
	Characters: Folder;
	NPCs: Folder;
	Items: Folder;
	Nodes: Folder;
	Caches: Model & { Sound: Folder };
}

ReplicatedStorage:

interface ReplicatedStorage {
	Animations: Folder & { Tools: Folder };
	Models: Folder & { Items: Folder; Tools: Folder };
	UI: Folder;
	Tools: Folder;
	VFX: Folder;
	HumanoidDescriptions: Folder;
}

SoundService:

interface SoundService {
	Sounds: Folder;
	Master: SoundGroup;
}

Players:

interface Players {
	Hotbars: Folder;
}

Matter SystemStruct Augmentation

Adds phase? support with Roblox-specific phase names:

type PhaseName =
	| "Hz1"
	| "Hz5"
	| "Hz10"
	| "Hz15"
	| "Hz30"
	| "Hz60"
	| "stepped"
	| "heartbeat"
	| "preRender"
	| "renderLast"
	| "renderFirst"
	| "renderInput"
	| "preAnimation"
	| "renderCamera"
	| "renderStepped"
	| "preSimulation"
	| "postSimulation"
	| "renderCharacter"
	| "playerModuleCamera";

Also augments World with startDeferring() and stopDeferring().

RuntimeLib

Luau runtime bridge providing async utilities, generators, module loading, and error handling:

declare const RuntimeLib: RuntimeLib;

| Member | Description | | -------------------------------------------------- | ------------------------------------------------------- | | RuntimeLib.Promise | Promise constructor | | RuntimeLib.TRY_BREAK / TRY_CONTINUE / TRY_RETURN | Try-control flow constants (2, 3, 1) | | RuntimeLib.async(fn) | Wraps a callback as a Promise-returning function | | RuntimeLib.await(promise) | Await a Promise or pass through non-Promise values | | RuntimeLib.bit_lrsh(a, b) | Logical right shift | | RuntimeLib.generator(fn) | Wrap a generator function | | RuntimeLib.getModule(context, scope, name) | Require a ModuleScript | | RuntimeLib.import(context, module, ...path) | Import from a module | | RuntimeLib.instanceof(obj, class) | Runtime instanceof check | | RuntimeLib.reset() | Reset the runtime | | RuntimeLib.try(tryFn, catchFn?, finallyFn?) | Try/catch/finally returning LuaTuple<[number?, ...T]> |