create-three-bun-ox
v0.3.2
Published
A minimal Bun + Three.js template with oxlint and oxfmt.
Downloads
219
Readme
create-three-bun-ox
A minimal Three.js template for Bun.
It includes:
- a plane
- the Three.js logo loaded from a
.glbwithGLTFLoader, scaled and rested on the plane - one directional light and a hemisphere fill light
OrbitControls- a tiny on-screen slider panel for the logo rotation and light intensity
Requirements
- Bun
Setup
bun installRun
bun run devThe server listens on PORT if it is set, otherwise it uses 3000.
Quickstart:
bunx create-three-bun-ox my-appOr with npm:
npm create three-bun-ox my-appYou can also use the GitHub repo directly:
bun create github.com/spinualexandru/create-three-bun-ox my-appScripts
bun run start
bun run dev
bun run fmt
bun run fmt:fix
bun run fmt:check
bun run lint
bun run lint:fix
bun run typecheck