Real-time 3D for the web,written in TypeScript.
RhodoniteTS is a high-performance 3D graphics library based on WebGL2/WebGPU. Written in modern TypeScript, it provides an intuitive API.
npm install rhodoniteFeatures
Engine-grade architecture, in your browser
Rhodonite is designed for performance and flexibility, from memory layout to the rendering backend.
WebGL2 & WebGPU
Target both backends with one API. Switch between them by changing the process approach at initialization.
Blittable Memory
Component data lives in one contiguous memory pool that is sent to the GPU at once, avoiding the per-object setUniform bottleneck.
Component-Oriented
Entities gain capabilities by mounting components, the same design used by modern game engines.
Physically Based Rendering
PBR materials with image-based lighting, and broad glTF 2.0 support including many KHR extensions.
VRM Avatars
Load VRM 0.x and VRM 1.0 avatars, and animate them with VRMA (VRM Animation).
Tree-shakable ESM
Named exports and on-demand optional features keep your bundle lean.
And more
- Node-based shaders
- Raymarching
- Rapier physics
- Clustered forward rendering
- Draco · Basis · KTX2
- Effekseer particles
- WebXR (VR)
Quick start
From npm install to pixels in minutes
Initialize the engine with a canvas, create entities, and start the render loop. The same code runs on WebGL2 or WebGPU.
- Typed API with editor autocompletion
- Works with Vite, webpack, Rollup and esbuild
- Also usable as an ES module without a bundler
import Rn from 'rhodonite';
// Initialize Rhodonite with WebGPU (or Rn.ProcessApproach.WebGL2)
const engine = await Rn.Engine.init({
approach: Rn.ProcessApproach.WebGPU,
canvas: document.getElementById('world') as HTMLCanvasElement,
});
// Create a plane entity and rotate it
const plane = Rn.MeshHelper.createPlane(engine);
plane.eulerAngles = Rn.Vector3.fromCopy3(Math.PI * 0.5, 0, 0);
// Render the scene every frame
engine.startRenderLoop(() => {
engine.processAuto();
});Showcase
Built for realistic, expressive 3D
Physically based materials, avatars and a node-based shader system, all running in the browser.

PBR & IBL
glTF 2.0 PBR materials lit with HDR image-based lighting.

VRM
VRM 0.x / 1.0 avatars with MToon materials.

Shader Node Editor
Build shaders visually with the node-based shader system.
Try it now
Rhodonite Editor
Try Rhodonite with the official editor! Launch the editor and drag-and-drop a glTF or VRM file onto the screen.
Launch EditorOpen source, built in the open
RhodoniteTS is MIT-licensed. Star the repository, report issues, or chat with the developers on Discord.
