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

@iwsdk/create

v0.3.1

Published

Interactive CLI to scaffold Immersive Web SDK starter apps

Downloads

207

Readme

Quick Start

npm create @iwsdk@latest

Or with other package managers:

# pnpm
pnpm create @iwsdk@latest

# yarn
yarn create @iwsdk

# bun
bun create @iwsdk

Interactive Prompts

The CLI will guide you through:

  1. Project name - Directory name for your new project
  2. Language - TypeScript or JavaScript
  3. Platform - VR (Virtual Reality) or AR (Augmented Reality)
  4. XR Features - Hand tracking, layers, anchors, hit-test, plane/mesh detection (tri-state: No/Optional/Required)
  5. SDK Features - Locomotion (VR), Scene Understanding (AR), Grabbing, Physics
  6. Meta Spatial Editor - Optional visual scene authoring integration
  7. Git & Install - Initialize git repo and install dependencies

What You Get

A fully configured project with:

  • Vite - Fast dev server with HMR
  • 🎮 WebXR Emulator - Develop without VR hardware
  • 📦 GLTF Optimization - Automatic asset compression
  • 🔒 HTTPS - Required for WebXR, auto-configured
  • 🏗️ Meta Spatial Editor - Visual scene authoring (optional)

Example

$ npm create @iwsdk@latest

===============================================
IWSDK Create CLI v0.2.2
Node v20.19.0

? Project name › iwsdk-app
? Which language do you want to use? › TypeScript
? What type of experience are you building? › Virtual Reality
? Enable Hand Tracking? › Optional
? Enable WebXR Layers? › Optional
? Enable locomotion? › Yes
? Deploy locomotion engine on a Worker? › Yes (recommended)
? Enable grabbing (one/two-hand, distance)? › Yes
? Enable physics simulation (Havok)? › No
? Enable Meta Spatial Editor integration? › No (Can change later)
? Set up a Git repository? › Yes
? Install dependencies now? › Yes

Command Line Options

# Provide project name directly
npm create @iwsdk@latest my-app

# Skip all prompts and use defaults
npm create @iwsdk@latest my-app -- -y

# Use custom CDN for recipes/assets
npm create @iwsdk@latest -- --assets-base https://my-cdn.com/iwsdk

| Flag | Description | | --------------------- | -------------------------------------------------------- | | [name] | Project name (first positional argument) | | -y, --yes | Skip prompts and use defaults (VR + TypeScript + manual) | | --assets-base <url> | Custom CDN base URL for recipes and assets |

Generated Templates

Based on your choices, one of these variants is generated:

| Template ID | Description | | ------------------- | ------------------------------------- | | vr-manual-ts | VR + TypeScript + code-only scene | | vr-manual-js | VR + JavaScript + code-only scene | | vr-metaspatial-ts | VR + TypeScript + Meta Spatial Editor | | vr-metaspatial-js | VR + JavaScript + Meta Spatial Editor | | ar-manual-ts | AR + TypeScript + code-only scene | | ar-manual-js | AR + JavaScript + code-only scene | | ar-metaspatial-ts | AR + TypeScript + Meta Spatial Editor | | ar-metaspatial-js | AR + JavaScript + Meta Spatial Editor |

Requirements

  • Node.js 20.19.0 or higher

Documentation

For guides and tutorials, visit: https://iwsdk.dev

License

MIT © Meta Platforms, Inc.


Local Development

# Build the CLI
pnpm --filter @iwsdk/create build

# Run locally
pnpm --filter @iwsdk/create dev

Module Layout

  • src/cli.ts — Entrypoint: parses flags, runs prompts, scaffolds project
  • src/prompts.ts — Interactive questions and defaults
  • src/recipes.ts — Fetch helpers for CDN-hosted recipes
  • src/scaffold.ts — Wraps Chef's buildProject and writes files
  • src/installer.ts — Dependency installation and next steps
  • src/types.ts — Shared types (VariantId, TriState, PromptResult)

How It Works

The CLI uses @pmndrs/chef to apply recipes fetched from jsDelivr CDN. Recipes and assets live in the @iwsdk/starter-assets package.