dorkhub

modern-three

Modern ThreeJS boilerplate powered by Vite & Typescript.

alvarosabu
TypeScript21012 forksMITupdated 4 months ago
visit the demogit clone https://github.com/alvarosabu/modern-three.gitalvarosabu/modern-three

Modern ThreeJS ⚡️

Modern ThreeJS boilerplate powered by Vite+ & Typescript.

Modern ThreeJS

Live demo here

Features

  • Powered with Vite+ 📦
  • GUI controls using Tweakpane 🎛
  • Typescript 🦾
  • No classes, just factories 🎯
  • Shader support (glsl) with vite-plugin-glsl 🎨
  • Optimized production build — three and tweakpane split into separate vendor chunks for better caching

You can help me keep working on this project 💚

Check it out

You can create a repo with this template here

Or if you prefer to do it manually with the cleaner git history

npx degit alvarosabu/modern-three my-awesome-three
cd my-awesome-three
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm

Use it

pnpm dev

This will serve the app at http://localhost:5173

Build it

pnpm build

Builds the app for production to the dist folder. The build is minified, filenames include hashes, and vendor libraries (three, tweakpane) are split into separate chunks for efficient browser caching.

more like this

lottery

🎉🌟✨🎈年会抽奖程序,基于 Express + Three.js的 3D 球体抽奖程序,奖品🧧🎁,文字,图片,抽奖规则均可配置,😜抽奖人员信息Excel一键导入😍,抽奖结果Excel导出😎,给你的抽奖活动带来全新酷炫体验🚀🚀🚀

JavaScript4.6k

search

search projects, people, and tags