Documentation

CarverJS

A React game engine built on Three.js with P2P multiplayer. Build 2D and 3D games with components, hooks, physics, audio, and more.

bash
pnpm add @carverjs/core

Explore the Docs

Quick Start

tsx
import { Game, World, Actor } from "@carverjs/core/components";

function App() {
  return (
    <Game>
      <World>
        <Actor
          type="primitive"
          shape="box"
          color="red"
          position={[0, 1, 0]}
          castShadow
        />
        <Actor
          type="primitive"
          shape="plane"
          color="#eee"
          size={20}
          rotation={[-Math.PI / 2, 0, 0]}
          receiveShadow
        />
      </World>
    </Game>
  );
}