Skip to content

The native runtime for three.js: three.js, down to the metal. 45× smaller than Electron, on a Sony PS3, and path-traced at 60 fps on ray-tracing GPUs.

README: the app template is now threert/native-app-template (one repository, a folder per platform) (#153)

Evan (Yifeng) Wang3834acef2f79
diff --git a/README.md b/README.md
index e68d64b..d29bfec 100644
--- a/README.md
+++ b/README.md
@@ -115,15 +115,15 @@ The same address in any browser shows the game as three.js. The full walk-throug
### Build your own app on the engine
-To put ThreeRT inside a native app of your own, start from the **[macOS app template](https://github.com/threert/macos-app-template)**. It is the recommended way to embed the engine, and it is set up for building with a coding agent:
+To put ThreeRT inside a native app of your own, start from the **[native app templates](https://github.com/threert/native-app-template)**: one repository with an app per platform in its own UI framework, macOS (SwiftUI) first. It is the recommended way to embed the engine, and it is set up for building with a coding agent:
- a SwiftUI app whose window is a live path-traced view (the engine's `LiveCore` on a `CAMetalLayer`, behind a small C ABI), with a sample scene that uses physics, glass, metal and moving lights;
- the Claude Code or Codex already on the machine, in a side panel over the [Agent Client Protocol](https://agentclientprotocol.com): ask for a change and the agent edits the scene's TypeScript, which the view hot-reloads within a second;
- a code viewer with syntax highlighting that follows the agent's edits, a console, and a `scene check` / `scene shot` command line the agent uses to verify its own work.
```bash
-git clone --recursive https://github.com/threert/macos-app-template my-app
-cd my-app && bun tools/app.ts --run
+git clone --recursive https://github.com/threert/native-app-template my-app
+cd my-app && bun tools/macos.ts --run
```
### Packages
@@ -199,7 +199,7 @@ npm run test:render # the r
- [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md), [`docs/REPORT.md`](docs/REPORT.md): the serverless gameplay and rendering runtime the engine was built for
- [`docs/ROADMAP.md`](docs/ROADMAP.md): the goal, the plan, and what each step measured
- [Scene authoring skill](.claude/skills/threert-scene-authoring/SKILL.md): photo-referenced scenes with a coding agent
-- [macOS app template](https://github.com/threert/macos-app-template): the engine embedded in a SwiftUI app, with a local coding agent that edits the scene live; start here to build an app on ThreeRT
+- [Native app templates](https://github.com/threert/native-app-template): the engine embedded in a native app (macOS/SwiftUI first), with a local coding agent that edits the scene live; start here to build an app on ThreeRT
## Contributing