Loomgetting started

Installation

Install the loom CLI or the Vite plugin, and confirm a preview renders.

Loom ships as two packages. Most projects need only one.

How you want to run itInstall
The loom preview / loom build CLI, no Vite config of your ownloom-dev
loomPreview() in your own vite.config.ts@loom-dev/preview, react@18, vite
BothAll of the above

Install the CLI

Start here if you’re unsure. It is one dependency and needs no config file:

pnpm add -D loom-dev

loom-dev brings its own @loom-dev/preview, React and Vite.

Install the plugin

To add the plugin to a Vite project you already have, install it with its peers:

pnpm add -D @loom-dev/preview react@^18.3.1 vite

The peers are react ^18.3.1 and vite ^6.0.0 || ^7.0.0. Then follow Vite integration.

Verify

Run this in a roblox-ts project that has a client entry:

Smoke test
pnpm exec loom preview .

Open the printed URL, by default on port 5173. A dark page with your UI on it means everything is working. A blank page usually means the entry doesn’t mount itself; see Your first preview.

What you don’t install

  • No roblox-ts build step. esbuild transpiles your TSX directly.
  • No Rust toolchain. The layout engine ships prebuilt as a .wasm file inside @loom-dev/layout.

Both packages are ESM-only and MIT-licensed. Keep every @loom-dev/* package on the same version: they release together, and mixed versions are not supported.

Next step

Point loom at a project and get a preview on screen: Your first preview.