Generate editable Three.js code from any image. Version-control 3D assets like code. No mesh files. 7,400+ GitHub stars. Run in browser instantly.

By Meng Li

Published: 2026-07-29

URL: https://pythonlibraries.substack.com/p/one-picture-one-code-one-living-3d


With the widespread adoption of technologies like Three.js and WebGL, embedding 3D interactions in web pages has become standard for product showcases, online education, and game previews.

However, the production costs and delivery methods for 3D assets remain stuck in traditional workflows: professional modelers, complex software, bulky binary files, and black-box assets that are difficult to version-control.

The most expensive part of the entire chain is not the rendering computation, but “people”—every modification requires going back to modeling software, and every iteration is manual labor.

Is it possible to make 3D assets behave like ordinary code? Version-controllable, parametrically adjustable, and automatically generatable by AI?

In July, an open-source project called img2threejs quietly exploded on GitHub. Its approach completely overturns our understanding of “image-to-3D”: it doesn’t give you a mesh file—it gives you code directly.

Feed in a reference image, and out comes runnable TypeScript Three.js code. The model is generated in real time in the browser, can be disassembled, animated, and committed straight into Git for version control.

Created less than two weeks ago, it has already surpassed 7,400+ stars.