# img2threejs turns a reference image into a code-only, animation-ready Three.js model

> img2threejs is an agent skill that takes one reference image of an object and writes a Three.js factory that rebuilds it from code rather than from a mesh file.

- Project: img2threejs by img2threejs
- List: Built for AI
- Kind: skill
- Works with: Claude Code, Codex, OpenCode, Hermes
- Noticed: 22,214 GitHub stars (when we found it)
- Added: 2026-12-01T12:09:25+00:00
- Web page: https://ai-news.ikangai.com/built/img2threejs/

img2threejs is an agent skill that takes one reference image of an object and writes a TypeScript Three.js factory. The factory builds the object from primitives, procedural shaders and generated geometry, with pivots, sockets and colliders so the result can be animated. The README says the output is code only, with no mesh files or downloads. The project's demo gallery runs each model live in the browser. The skill runs under Hermes, Claude Code, Codex or OpenCode, and the README says it uses whatever the host provides for image reading and browser preview.

Installation goes through npm: running npx img2threejs install links the skill into each agent it finds. The README asks for Node.js 18 or later, Git and Python 3.10 or later. The Python scripts use only the standard library. They handle spec validation, a strict-quality gate and a comparison sheet, while the model makes the visual judgments. A likeness path for a specific person or character is available as an opt-in. The author writes that a single image cannot guarantee full likeness, so the pipeline reports per-region confidence and may ask for more views.

The project is licensed under Apache 2.0 and is at version 2.0.1. Optional plugins add character rigging, CS2 weapon reconstruction and image-to-GLB conversion through a separate img2 harness. One environment plugin is private. The README gives no build time. It does not list open gaps beyond noting that the gallery has work in progress.

## In the author's words

> It runs under Hermes, Claude Code, Codex, or OpenCode.

## When to reach for it

Use it when you need a procedural prop or character from one picture that must move in a scene and stay as reviewable TypeScript rather than a binary mesh. Its scripts check the spec before any code is generated, a sequence you could adapt for your own agent workflows.

## See it

- [img2threejs](https://github.com/img2threejs/img2threejs)
- [Website](https://img2threejs.io)

---

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it.
