Roblox TypeScript and ECS Guide
Open in the libraryWhat’s inside
29files
124 KBin total
17,395words of method
351hard numbers
SKILL.md1 KB
Markdown · 12 lines · 140 words · sha ab6602578a3d
Roblox TypeScript and ECS Guide5 lines
ARCHITECTURE.md782 B
Markdown · 7 lines · 87 words · sha 2f343e0a1379
Hand-offs4 lines
BRAIN.md229 B
Markdown · 8 lines · 22 words · sha e268d6cb0b09
roblox-typescript-and-ecs-guide5 lines · 4 numbers
CHANGES.md395 B
Markdown · 12 lines · 41 words · sha e8ee8e8db3a7
ToggleOps packaging (2026-11-11, mechanical, no content changed)7 lines · 1 number
DEMO.md331 B
Markdown · 3 lines · 56 words · sha d040b4c279cf
Demo1 line · 1 number
QUESTIONS.md5 KB
Markdown · 37 lines · 782 words · sha 810dc2768677
Open questions0 lines
Server authority over client data (all networking samples)1 line · 1 number
Where the two roblox-ts sources disagree (both views are kept in12 lines · 18 numbers
Flamework7 lines · 7 numbers
ECS design3 lines · 3 numbers
TAGS.md950 B
Markdown · 12 lines · 122 words · sha fb3b4122e6f3
Roblox TypeScript and ECS Guide9 lines · 3 numbers
skills22 files · 115 KB
ecs-design/references/component-design.md8 KB
Markdown · 211 lines · 1,156 words · sha 1639476f6962
Component design1 line
The deciding question1 line
"Atomic" means indivisible for you, not smallest possible24 lines
Grouping by meaning10 lines
Separate by how often data changes6 lines
Presence means capability9 lines
Tags versus data25 lines
Rich data is allowed18 lines
Entity ids in components versus relationship pairs34 lines
Classic mistakes8 lines
Checklist5 lines
ecs-design/references/data-as-columns.md6 KB
Markdown · 181 lines · 915 words · sha a52307a86068
Data as columns1 line
The full mapping10 lines
Rows versus columns6 lines
Start from the queries4 lines
Normal forms for components43 lines
Queries read like SQL13 lines
Archetypes and fragmentation32 lines · 4 numbers
Joins7 lines · 3 numbers
Checklist5 lines · 5 numbers
ecs-design/references/entity-design.md3 KB
Markdown · 72 lines · 443 words · sha 10ab2e83c332
Entity design1 line
The question to ask first3 lines
Create entities late10 lines · 1 number
What should not be an entity3 lines
What should be4 lines
Many similar things: type plus per-copy state12 lines
On Roblox1 line
Checklist5 lines
ecs-design/references/query-design.md2 KB
Markdown · 62 lines · 299 words · sha bf3ad574cd6a
Query design1 line
Break the question into constraints8 lines
Questions that span entities9 lines
Which way are you looking?11 lines
Walking up a hierarchy12 lines
ecs-design/references/system-design.md8 KB
Markdown · 238 lines · 1,165 words · sha f2ae079f29fe
System design1 line
Systems are for behaviour that repeats25 lines · 2 numbers
Query once, handle many15 lines
Skip work34 lines
Order13 lines
Systems talk through data26 lines · 2 numbers
Keep systems stateless7 lines · 1 number
Never yield inside a system20 lines
Do not change structure while iterating9 lines · 2 numbers
Cached queries live at module scope13 lines
Checklist7 lines
ecs-design/SKILL.md4 KB
Markdown · 62 lines · 528 words · sha 89ad979731d2
ECS design1 line
Think of the world as a column database7 lines
Fast answers8 lines
Mistakes to avoid7 lines
Principles6 lines · 6 numbers
References8 lines
flamework-game-framework/references/components.md8 KB
Markdown · 196 lines · 1,049 words · sha 69e864318fba
Components3 lines
The smallest component14 lines
Typed attributes and instance type17 lines · 2 numbers
Decorator options45 lines · 6 numbers
The `Components` handle32 lines
Lifecycle, attribute changes and injection16 lines
A fuller example in words1 line
Good habits8 lines · 8 numbers
Troubleshooting6 lines · 2 numbers
flamework-game-framework/references/macros.md6 KB
Markdown · 144 lines · 885 words · sha 1d5524bf2ba3
Macros1 line
Cost at a glance9 lines
`Flamework.addPaths()` and `addPathsGlob()`14 lines
`Flamework.id<T>()`8 lines
`Flamework.implements<T>(value)`10 lines
`Flamework.createGuard<T>()`18 lines
`Flamework.hash(text, context?)`11 lines
`Dependency<T>()`1 line
User macros8 lines
Good habits6 lines · 6 numbers
Troubleshooting6 lines
flamework-game-framework/references/modding.md7 KB
Markdown · 195 lines · 980 words · sha 232c5446c6d9
Modding: your own decorators and metadata1 line
Two kinds of decorator37 lines · 1 number
Reading decorators back22 lines · 1 number
Asking for metadata24 lines
Your own singleton kinds13 lines
Native roblox-ts decorators8 lines
Pattern: a custom lifecycle hook22 lines · 6 numbers
Good habits8 lines · 8 numbers
Troubleshooting6 lines
flamework-game-framework/references/networking.md8 KB
Markdown · 211 lines · 1,099 words · sha 0b3c08f78a7f
Networking3 lines
Events: one-way messages58 lines · 12 numbers
Functions: request and reply41 lines · 10 numbers
Middleware20 lines
Guards9 lines
Putting it together1 line
Good habits8 lines · 8 numbers
Troubleshooting6 lines
flamework-game-framework/references/setup-and-config.md7 KB
Markdown · 172 lines · 957 words · sha 165fff195f9d
Setup and configuration0 lines
Starting a project17 lines
tsconfig.json35 lines
default.project.json (Rojo)9 lines
flamework.json (optional, project root)9 lines
Folder layout19 lines
package.json scripts6 lines
Editor2 lines
Day to day3 lines · 3 numbers
Upgrading from before v1.05 lines · 4 numbers
Common problems7 lines
Good habits8 lines · 8 numbers
flamework-game-framework/references/singletons-and-lifecycle.md6 KB
Markdown · 168 lines · 841 words · sha 6f53bd7f9339
Singletons, injection and lifecycle1 line
Singletons32 lines
Load order12 lines · 5 numbers
Getting another singleton25 lines
Lifecycle hooks24 lines
Ignition10 lines
Metadata behind the scenes4 lines
Troubleshooting6 lines
flamework-game-framework/SKILL.md5 KB
Markdown · 80 lines · 553 words · sha 9ddf1e8c6575
Flamework game framework2 lines · 1 number
The parts at a glance10 lines
Minimum to get running23 lines · 4 numbers
Rules that hold everywhere5 lines
When something does not work8 lines
Asking well2 lines
roblox-typescript/references/build-and-habits.md3 KB
Markdown · 86 lines · 476 words · sha daaa6ff677f2
Building, publishing and good habits0 lines
Compiler commands9 lines
Publishing4 lines · 4 numbers
Build problems7 lines
Organising code6 lines
Type safety5 lines · 5 numbers
Performance5 lines · 5 numbers
Errors3 lines
Debugging5 lines · 5 numbers
Testing5 lines · 5 numbers
Git4 lines · 4 numbers
roblox-typescript/references/language-rules.md6 KB
Markdown · 188 lines · 907 words · sha 7b4a7079b520
Language rules: what works, what is missing1 line
Works as you would expect20 lines · 2 numbers
JavaScript that does not exist29 lines · 5 numbers
Claims about unsupported TypeScript (from the older notes)5 lines
Arrays, Maps and Sets26 lines · 16 numbers
Modules and exports4 lines
Async code26 lines · 1 number
Everyday syntax6 lines · 7 numbers
Lua habits to drop7 lines · 2 numbers
Good habits8 lines · 8 numbers
roblox-typescript/references/luau-interop.md4 KB
Markdown · 128 lines · 576 words · sha 57395940bf20
Luau interop and porting Lua1 line
Multiple return values14 lines · 7 numbers
Typing an existing Luau module44 lines
Dot or colon calls8 lines
Porting Lua to TypeScript24 lines · 7 numbers
roblox-typescript/references/packages-and-ui.md2 KB
Markdown · 72 lines · 270 words · sha 3906c4da323d
Packages and UI1 line
Which package for what13 lines
Roact UI38 lines · 23 numbers
roblox-typescript/references/project-setup.md7 KB
Markdown · 187 lines · 958 words · sha 69a46ab5d88b
Project setup0 lines
Before you start9 lines · 1 number
Folders34 lines
tsconfig.json22 lines
default.project.json (Rojo)10 lines
package.json12 lines · 5 numbers
Working with Rojo3 lines · 1 number
Editor set-up6 lines
Your own template1 line
.gitignore12 lines
Development and production configs6 lines
Fixing setup problems8 lines
Good habits8 lines · 8 numbers
roblox-typescript/references/roblox-api.md7 KB
Markdown · 214 lines · 822 words · sha e5a5a337fde9
The Roblox API from TypeScript1 line
Services5 lines
Constructors and datatypes17 lines · 24 numbers
Instances17 lines · 6 numbers
Typing your own game tree27 lines
Players and characters16 lines · 1 number
Remotes33 lines · 4 numbers
DataStores16 lines · 1 number
Tweens5 lines · 5 numbers
Input5 lines
Good habits6 lines · 6 numbers
roblox-typescript/references/runtime-checks.md3 KB
Markdown · 85 lines · 490 words · sha ca90b256d5e4
Runtime type checks1 line
The tools24 lines · 5 numbers
Your own guards10 lines · 1 number
Shapes with `@rbxts/t`8 lines
Checking what clients send10 lines
Casting versus checking1 line
roblox-typescript/references/type-utilities.md2 KB
Markdown · 84 lines · 335 words · sha 6256420bc274
Type utilities1 line
`satisfies` for object literals13 lines · 3 numbers
Names of an instance's members6 lines
Lookup interfaces11 lines
Filtering keys by value type11 lines
Standard TypeScript helpers15 lines
roblox-typescript/SKILL.md4 KB
Markdown · 54 lines · 441 words · sha 5fb4cd73130f
Roblox games in TypeScript (roblox-ts)2 lines · 2 numbers
Where to look10 lines
Ten rules to keep in mind17 lines · 13 numbers
Where the two sets of notes disagree1 line
Asking well1 line
The text is never on this site. It loads into your Claude when a task needs it.