
Research
/Security News
OpenAPI React Query Codegen Compromised in Mini Shai-Hulud npm Supply Chain Attack
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.
create-threejs-game
Advanced tools
Scaffold a Three.js game project with AI-assisted design documents
Scaffold a Three.js game project with AI-assisted design documents.
Before running the CLI, have these ready:
Download GLTF asset packs from:
The CLI will ask for the path to your downloaded assets folder and validate it contains .gltf or .glb files.
Multi-Pack Support: You can combine multiple asset packs by organizing them in subdirectories (nested to any depth):
my-assets/
├── characters/
│ ├── humans/ # Has Preview.jpg
│ └── monsters/ # Has Preview.jpg
├── buildings/ # Has Preview.jpg
└── environment/
├── trees/ # Has Preview.jpg
└── rocks/ # Has Preview.jpg
The CLI recursively finds all directories with previews and combines them into a single grid.
Most asset packs include a Preview.jpg. For multi-pack directories, the CLI automatically combines all subdirectory previews into one image. For single packs without a preview, take a screenshot of your assets.
Set these as environment variables for the smoothest experience:
export GOOGLE_API_KEY="your-key" # or GOOGLE_AI_STUDIO_API_KEY
export ANTHROPIC_API_KEY="your-key"
Get keys from:
If not set, the CLI will prompt for them.
npx create-threejs-game
The CLI will:
Then run the automation:
cd my-game
node scripts/pipeline.js
The automation pipeline creates:
| Step | Output | AI Service |
|---|---|---|
| Asset Index | public/assets/{game}/assets.json | Local script |
| Concept Mockup | public/{game}/concept.jpg | Google AI Studio |
| PRD | docs/prd.md | Claude (Anthropic) |
| TDD | docs/tdd.md | Claude (Anthropic) |
| Execution Plan | plans/plan.md | Claude (Anthropic) |
my-game/
├── .claude/skills/ # Three.js skills for Claude
├── .codex/skills/ # Three.js skills for Codex
├── docs/ # Generated PRD and TDD
├── plans/ # Generated implementation plans
├── prompts/ # Prompt templates (fallback/reference)
├── public/
│ ├── {game}/
│ │ └── concept.jpg # Generated mockup
│ └── assets/{game}/ # Your 3D assets (copied by CLI)
├── scripts/
│ ├── config.json # API keys and game config
│ ├── pipeline.js # Run full automation
│ └── generate-*.js # Individual generators
└── README.md
After the pipeline completes, open your project in Claude Code or Cursor and follow the generated execution plan:
Please proceed with implementing based on the plan in plans/plan.md
MIT
FAQs
Scaffold a Three.js game project with AI-assisted design documents
We found that create-threejs-game demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Research
/Security News
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.

Security News
Socket joins more than 100 technology, cybersecurity, and financial organizations calling for a global surge in cyber defense.

Product
Enterprise security teams can now detect malware, credential theft, suspicious network activity, and risky updates across Microsoft Edge extensions.