npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

create-threejs-game

v1.1.5

Published

Scaffold a Three.js game project with AI-assisted design documents

Readme

create-threejs-game

Scaffold a Three.js game project with AI-assisted design documents.

Prerequisites

Before running the CLI, have these ready:

1. 3D Assets (Required)

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.

2. Preview Image (Auto-generated for multi-packs)

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.

3. API Keys (Required for automation)

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.

Quick Start

npx create-threejs-game

The CLI will:

  1. Ask for your project name
  2. Ask for a game description (1-3 sentences describing your game)
  3. Check for API keys (from env vars, or prompt if missing)
  4. Ask for path to your assets folder (required for automation)
  5. Validate everything and tell you if anything is missing
  6. Create your project with assets copied in

Then run the automation:

cd my-game
node scripts/pipeline.js

What Gets Generated

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) |

Project Structure

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

Final Step

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

Requirements

  • Node.js 18+
  • API keys (see Prerequisites)
  • 3D assets in GLTF format

License

MIT