About threejs-lite
A skill for building browser-based 3D games with Three.js, aimed at keeping rendering simple and mobile performance stable. It provides a workflow, guardrails, and references for Remix integration.
Key features
- 01Single-file starter workflow
- 02Simple scene and gameplay loop
- 03Low draw-call guidance
- 04Mobile performance patterns
- 05Remix SDK hooks and validation
Use cases
- 01Prototyping a lightweight 3D browser game
- 02Building a game with predictable rendering costs
- 03Preparing a single-file HTML upload for Remix
- 04Checking required Remix gameplay hooks
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ farworld-labs/ remix-skills --skill threejs-liteAfter installing, type/threejs-litein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
assets/starter-single-file.htmlreferences/sdk-integration.mdthreejs-mobile-patterns.mdDetails
From the project READMEThree.js Lite
Use this skill when a user wants a 3D browser game with minimal rendering complexity and stable mobile performance.
Workflow
- Start from
assets/starter-single-file.html. - Implement one camera, one scene, one gameplay loop.
- Add player input and terminal condition before adding visual polish.
- Keep geometry/material count small and predictable.
- If targeting Remix, apply hooks in
references/sdk-integration.md. - Validate required hooks (
gameOver,onPlayAgain,onToggleMute) before handoff.
Guardrails
- Keep draw calls low and avoid postprocessing by default.
- Prefer simple
MeshBasicMaterial/MeshStandardMaterialsetups. - Avoid dynamic shadows on first pass.
- For Remix uploads, output single-file HTML with inline JS/CSS unless user asks otherwise.
- For Remix uploads, include
<script src="https://cdn.jsdelivr.net/npm/@remix-gg/sdk@latest/dist/index.min.js"></script>in HTML<head>. - Treat 3D as optional style; gameplay clarity is higher priority than visual complexity.
References
references/threejs-mobile-patterns.mdfor scene setup, controls, and perf budgets.references/sdk-integration.mdfor SDK hooks required by Remix validation.
Comments
Markdown supported