A JavaScript ecosystem for making games

Write your game in TypeScript and React.

QuickstartDiscordAsset Store

DropBall.tsxfrom the Quickstart
import { render, Button } from "onejs-react"
import {
    GameObject, PrimitiveType, Random, Rigidbody, Vector3
} from "UnityEngine"

function dropBall() {
    const ball = GameObject.CreatePrimitive(PrimitiveType.Sphere)
    ball.transform.position = new Vector3(Random.Range(-2, 2), 6, 0)
    ball.AddComponent(Rigidbody)
}

render(<Button text="Drop Ball" onClick={dropBall} />, __root)

TutorialsDocs

Why OneJS

  • TypeScript and ReactComponents, hooks, JSX and npm, as you write them for the web.
  • Native Unity performanceYour UI is Unity's own UI Toolkit, drawn by the engine. No browser, no webview.
  • The Asset StoreYour game is a Unity project, so Asset Store models, shaders, audio and tools work in it.

What we maintainGitHub

OJPlay alphaAll games

  • Fortnite HUD on OJPlayFortnite HUDA Fortnite style HUD: shield and health bars, an inventory bar, and a panning minimap.
  • Overwatch HUD on OJPlayOverwatch HUDAn Overwatch style HUD: a segmented health bar, an ultimate meter that crackles when full, and abilities on cooldown.

On JuiceboxMore

  1. Crusader Kings 3 game director admits he used AI to help write new scenes that "did not meet our quality standards" eurogamer.net
  2. UK government: games industry "must strengthen protections around loot boxes" because it's not been protecting children eurogamer.net
  3. Show HN: AI tools that run in browser via WebGPU with no uploads offlaneai.com
  4. C64 3D first person game written in assembly by an LLM github.com
  5. Godot Foundation Receives donation of console porting technology from W4 Games godotengine.org