Reading the repo
Opening the box…
Reading the repo
Opening the box…
Written by AI from the README.
Saved setup from 14 h ago
Will it work on macOS?
CONTRIBUTING.mdThanks for helping improve Open-Voxel. This project is a local-first, agent-native studio for authoring rigged voxel units, deterministic animation, VFX, and transparent sprite sheets from TypeScript.
Contributions are welcome from artists, game developers, tooling engineers, and coding-agent enthusiasts. You do not need to be a voxel artist to help: documentation, bug reports, workflow improvements, and new deterministic effects are all valuable.
Be respectful, constructive, and specific. Assume good intent, critique the work rather than the person, and help keep discussions useful for everyone. Harassment, discrimination, and hostile behavior are not welcome.
For large features or architectural changes, open an issue first so the approach can be discussed before significant work is done.
Open-Voxel requires Node.js 20 or newer.
git clone <your-fork-url>
cd open-voxel
npm install
npm run dev
Open the local URL printed by Vite. The development server also exposes the filesystem-backed /api/* routes used for saving tuned parameters, deleting units, and storing frame comments.
Useful commands:
npm run dev # local studio + filesystem API
npm run typecheck # TypeScript only
npm run build # typecheck + production bundle
npm run preview # static production preview; /api routes are unavailable
For code-only changes, one npm run typecheck or npm run build pass is usually enough. Start the development server when you need to verify visual behavior, interactions, or source-editing APIs.
These rules are non-negotiable because they keep generated assets reproducible and the studio agent-friendly:
Math.random(), wall-clock time, or mutable global state inside clip evaluation or VFX generation. Use frame progress and seeded helpers.VoxelSceneRig converts to parent-relative positions internally.VoxelSpriteRenderer.src/engine/ Voxel builders, animation presets, VFX, Three.js rig, sprite renderer
src/units/ Registered unit definitions, one folder per unit
src/components/ Dashboard, studio, inspection, timeline, modal, and export UI
src/types/ Shared TypeScript contracts
src/utils/ Small shared utilities and API clients
.agents/skills/ Canonical agent skills
.claude/skills/ Mirrored skills for Claude Code
.opencode/skills/ Mirrored skills for OpenCode
vite.config.ts Vite setup plus the development filesystem API
New units live at src/units/<unit-id>/unit.ts and must be registered in src/units/index.ts.
Follow the create-voxel-unit skill for the full workflow. If you are using an agent, invoke:
/create-voxel-unit <unit-slug> "<category>: <art-direction-and-animations>"
Custom categories are encouraged. The internal VoxelUnitDefinition.category field remains character, artillery, or prop, so map flexible prompt categories to the closest structural archetype while preserving the intended subject in the geometry and naming.
Before opening a unit PR:
idle, locomotion or action, attack/fire, and death clips when they fit the subject.npm run typecheck.Reusable effects belong in src/engine/voxelVfx.ts; unit-specific one-offs may live near the unit only when reuse is unlikely. Effects should accept progress in [0, 1], use seeded randomness, fade cleanly, and return no particles after completion. Add a catalog entry in src/engine/vfxCatalog.ts when an effect should appear in the VFX Library.
The skill files are mirrored in three locations:
.agents/skills/
.claude/skills/
.opencode/skills/
When changing a skill, update all three copies so Claude Code, OpenCode, and other agent workflows stay consistent. Verify the files are identical before submitting a PR:
diff .agents/skills/create-voxel-unit/SKILL.md .claude/skills/create-voxel-unit/SKILL.md
diff .agents/skills/create-voxel-unit/SKILL.md .opencode/skills/create-voxel-unit/SKILL.md
src/index.css and tailwind.config.js.lucide-react icons and the existing button, field, chip, and panel styles.At minimum, run:
npm run typecheck
For release-style changes, run:
npm run build
If your change affects layout, animation, rendering, or modal behavior, verify it in the browser with npm run dev and check both themes. There is no automated test suite yet; if you add one, keep it focused and document the command in the README and package.json.
Do not commit node_modules/, dist/, local editor state, or secrets. Keep generated output out of pull requests.
npm run typecheck passes.npm run build passes for release-style changes.Include:
By contributing, you agree that your contributions are licensed under the MIT License. See LICENSE.md.
Then run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: xcode-select --install
git clone https://github.com/htetoowai219/open-voxel.git cd open-voxel
Node.js LTS (no version pinned)
# needs nvm: brew install nvm (or https://github.com/nvm-sh/nvm) nvm install --lts
npm ci
npm run dev
# 1. Clone the repository
git clone https://github.com/htetoowai219/open-voxel.git
cd open-voxel
# 2. Install dependencies
npm install
# 3. Start the studio and local filesystem API
npm run dev
Open http://127.0.0.1:5173 in your browser. Jump directly to a unit and clip with query parameters such as /?unit=armored-knight&anim=idle.
No reports for macOS yet.
GitManual AI Agent reads the 3 key files and writes a step-by-step guide for macOS. Once written, it's saved for everyone.