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

r3f-starter

v0.1.2

Published

CLI to scaffold React Three Fiber templates with or without physics( Rapier )

Readme

r3f-starter

r3f-starter is a command-line tool for scaffolding React Three Fiber (web-3d) projects. It allows you to quickly set up a project with optional physics support and choose between JavaScript and TypeScript.


Features

  • Basic web-3d Template: Includes @react-three/fiber and @react-three/drei.
  • Physics Support: Optionally add @react-three/rapier for physics-based interactions.
  • Language Choice: Generate projects in either JavaScript or TypeScript.
  • Ease of Use: Just a few prompts to get started.

Installation

You can use the tool directly with npx (no installation required):

npx r3f-starter

Or, install it globally for repeated use:

npm install -g r3f-starter

Usage

Run the CLI tool:

npx r3f-starter

Steps:

  1. Enter Project Name: Provide a name for your new project folder.
  2. Include Physics: Choose whether to include physics support with @react-three/rapier (y or n).
  3. Select Language: Choose between JavaScript or TypeScript for your project.

Example:

npx r3f-starter

Sample Interaction:

Enter project name: my-web-3d-project
Include physics (rapier)? [y/N]: y
Choose the project language:
  ◉ JavaScript (.js and .jsx)
  ○ TypeScript (.ts and .tsx)

After completing the prompts, the tool will scaffold the project files in a new folder named my-web-3d-project.


Next Steps

  1. Navigate to the project directory:

    cd my-web-3d-project
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev
  4. Open your browser at the URL shown in the terminal to view your project.


Directory Structure

Here’s an overview of the generated project structure:

my-web-3d-project/
├── public/
│   └── index.html
├── src/
│   ├── App.jsx       # Main component
│   └── main.jsx      # Entry point
├── package.json      # Project metadata and scripts
└── vite.config.js    # Vite configuration

For TypeScript projects, .jsx files will be replaced with .tsx.


Templates

The CLI generates projects based on the following templates:

  • Basic: web-3d project with @react-three/fiber and @react-three/drei.
  • Physics: web-3d project with @react-three/fiber, @react-three/drei, and @react-three/rapier.

Requirements

  • Node.js: v14 or higher
  • npm: v6 or higher

Contributing

If you encounter any issues or have feature requests, please feel free to open an issue or submit a pull request.


License

MIT License. See the LICENSE file for details.


Author

Vishnu


Acknowledgements

Thanks to the React Three Fiber, Drei, and Rapier communities for their excellent libraries and resources.