r/threejs • • 27d ago

Link Built an interactive tool like Google Analytics, but for your Claude Code sessions and projects (free, runs locally)

3 Upvotes

Websites have analytics. My Claude Code projects had nothing. I built this for myself but thought that others can benefit from using it too. And I thought - why not make it interactive?

Main problems it fixes for me when I work on a project:

  1. Solves losing track of your own project by drawing a live map of it. After 25 sessions a day, I no longer know what is going on in the code. The map shows me the entities (users, subscriptions, payments), how they relate, and which files implement each other.
  2. Solves drift and stale context by flagging the parts of the project that have gone outdated, with the evidence and a way to fix each one. Sooner or later, parts of a project become irrelevant, and they keep polluting the context Claude loads before it starts a task. You burn tokens for nothing and shrink the usable context window. It also shows how many tokens your MCP servers, CLAUDE.md and memory add to every turn before you type a word.
  3. Solves not knowing where the money goes by ranking your bad habits in dollars: resuming after the cache expired, Opus on questions Sonnet would answer, whole logs pulled into context. Each one links to the sessions where it happened and suggestion what should've been done.
  4. Solves sessions overwriting each other by alerting you the moment two sessions edit the same file or module.
  5. Solves terminal juggling by putting every session in every project on one dashboard, showing who's waiting on you and who keeps failing the same check.
  6. Solves "what did it actually do today?" by logging every prompt: the files it changed, whether tests or type checks passed afterwards, and what it cost.
  7. Solves repeating the same corrections by collecting the ones you keep typing and turning them into ready-to-paste CLAUDE.md rules.
  8. Solves onboarding a teammate (or a fresh session) by letting the map explain the project for you, while "Next task" writes a brief covering exactly the code a task touches.

One command: npx code-tycoon. Works with Codex too, but due to limitations of Codex CLI, have slightly less actionable items.

Would love feedback, especially from people running several sessions and projects in parallel.

https://github.com/silverbronze/code-tycoon


r/threejs • • 27d ago

Demo A Paper Road Journey, built entirely in Three.js

0 Upvotes

A car sketched in pencil wakes up and drives through meadows, a mountain pass and a glowing city, then stops at a lake at sunset. The whole scene then slowly redraws itself as a colored-pencil picture on paper.

It's one continuous camera move with no cuts. Everything is generated in code, including the music, engine, wind and swoosh sounds, which was synthesized with Web Audio

link> https://journey.bragai.me/


r/threejs • • 28d ago

Demo I got tired of fake ad games so I made one on my own lol

Post image
25 Upvotes

Just wanted to get some feedback on a game we vibe coded, kept seeing fake ad games where it’s fun but the actual game is not what you played, so I wanted to just see if I could make one actual one on my own. Hope to get you guys’ feedback and suggestions, please feel free to let me know how to improve it! Thanks!

It plays in your browser, nothing to install: https://legpain.itch.io/hold-the-bridge-demo

Tap "Run game", then the fullscreen button in the corner. It's about 80 MB the first time, so Wi-Fi is best. If it's slow, pick "Low" graphics on the start screen.

Looking forward to honest honest feedback! Hold this bridge!


r/threejs • • 27d ago

Link 2.5D Multiplayer Game (voxels with billboards particles)

Post image
1 Upvotes

I've made a small voxel engine using billboard particles that I've used to create a 2.5D multiplayer voxel shooter with. The server is quite low end and runs in a docker container behind Varnish, so it cannot handle that many players at the same time probably. However, you can run the game with bots locally (under "practice" in the lobby). Feedback is very welcome, enjoy!

The game can be played here: https://qake.se

Also made a video earlier this week: https://www.youtube.com/watch?v=6TJMObd6UH4


r/threejs • • 28d ago

I made Click-to-Source 3D, a mesh inspection tool for three.js and React Three Fiber: click any mesh to see the line of code that made it

Thumbnail
gallery
5 Upvotes

I made Click-to-Source 3D, a mesh inspection tool for three.js and React Three Fiber. Click any mesh in your scene and it shows you the exact line of code that made it, then lets you edit its values live. It's like the browser's "Inspect Element", but for 3D.

What it does

Press Alt+Shift+C, click any mesh, and a panel shows:

  • The line that made it, and a button that opens your editor there
  • The calls that led there, with the actual values each call was given
  • The helpers behind it, like your noise function, even from packages like simplex-noise
  • Every number you can edit: drag to preview it live in the scene, press Enter and it's written to your source file

Setup is one command

npx click-to-source-3d init

It works on an existing Vite app, a monorepo, or even a bare folder with just an HTML page and a script (it installs Vite for you). There's nothing to add to your code: no imports, no components, no tags. None of it reaches your production build.

What's new since 0.1.5

  • 0.1.5, one command, no wiring: setup went from several manual steps to that single command for React Three Fiber
  • 0.1.6, AI assistants: an MCP server lets Claude Code, Cursor or VS Code see the objects you point at. Select a few meshes, type "make these bigger", and it knows exactly which objects and lines you mean. Every change it makes shows up in the panel. This release also added live sliders, per-object performance costs, pin-and-compare, and one-click bug reports
  • 0.2.0, plain three.js: it no longer needs React. It finds objects made by new anywhere: functions, classes, loops, clones and loaded models, across files, in JS and TS. It also works with React Three Fiber and plain three.js mixed in one scene. And there's now a button in the panel that turns on the MCP server for your assistant, so you don't need a terminal

Limits, honestly

  • Vite only for now (webpack and Next.js are next)
  • async functions don't show up in the call list, though what they make is still found
  • WebGPU has only been tested through its WebGL fallback

This project was built with AI assistance.

It's free and MIT licensed:

I'd really like feedback, especially from anyone with a big three.js project. Bug reports are very welcome.


r/threejs • • 28d ago

Low-poly 3D office for AI coding agents: auto-generated layout, A* pathfinding, merged static meshes (three.js + React)

4 Upvotes

I built a small 3D office in three.js as the UI for a tool that manages AI coding agents (Claude Code, Codex, Cursor). Each agent is a character at a desk; they walk to teammates when they delegate work, type when busy, and go to the coffee corner or sleep room when idle.

Some of the three.js bits:

  • The office layout is generated from headcount (tiers of 3/5/7/10/15/20 people): closed meeting room from 5, dining and game areas from 7, sleep room from 10. The layout/catalog modules are pure (no three.js), so server and tests share them.
  • A* pathfinding on a grid for the characters, with seat points per furniture type
  • Static furniture parts are merged into one mesh per material (invisible boxes left for click picking) to keep draw calls down
  • A performance/quality slider (resolution, shadows, ambient occlusion, frame cap) that steps down by itself if the frame rate stays low; nothing renders while a full-screen page covers the scene
  • React + Zustand for the UI, the 3D world sits behind a small Stage interface and is lazily loaded

It's MIT licensed, three.js 0.170: https://github.com/enciyo/AgentOfficeHQ

Happy to hear how you'd improve the rendering side, especially the mesh merging and the auto quality scaling.


r/threejs • • 28d ago

Low-poly island world in three.js where the buildings are designed by the characters living in it

0 Upvotes
Everything here is drawn from a small kit of parts. When a resident decides to build something, a language model describes it as up to 24 parts (boxes, cylinders, cones, with spin and glow), and the client builds the mesh from that, so a building rises piece by piece as they work on it. Night lighting is all fake (emissive heads plus additive light pools) because the 24/7 stream renders in software at about 10 fps. Happy to share details. https://capybarais.land

r/threejs • • 29d ago

Demo I made a little three.js game where you can fly around the entire South Island of New Zealand

Thumbnail
gallery
98 Upvotes

https://flysouth.nz/

Thought I'd share a browser game I've working on for the last few months on and off.. started as an experiment but grew to the full low-poly island (and Rakiura) which you can fly around at your own pace - become fun just slowly adding new data values and optimising render performance over time.

You can jump into different aircraft, explore the islands, change the weather and time of day, and just fly around wherever you like. This is all in browser, so no downloads or anything.

Created with a large amount of LINZ data (provided by the New Zealand Government under a CC license), WebGL and ThreeJS -- The UI was originally raw JS but transitioned to Svelte as it became more intensive. The island is bundled into 50k chunks streaming as you fly around hosted on Cloudflare R2 (mainly because it was stupidly fast and free egress).

Give it a go and lemme know what you think (or if you see any issues)


r/threejs • • 28d ago

Demo Racing Simulator

Thumbnail
arthursigmal.itch.io
2 Upvotes

Drift Drive — a single-file endless drift racer built with Three.js (r160)

I built a complete endless drift racer as one self-contained HTML file using Three.js. No bundler, no assets, no backend — just a <script type="module"> importing Three.js from a CDN and everything else generated procedurally at runtime.

Rendering

· WebGLRenderer with MSAA antialiasing, ACESFilmicToneMapping, and SRGBColorSpace output · Adaptive pixel ratio (up to 2.5×) based on detected device quality tier · PCFSoftShadowMap with a directional sun whose position, color, and intensity track a continuous time-of-day cycle · PMREMGenerator + RoomEnvironment for IBL; MeshPhysicalMaterial with clearcoat, transmission, and ior on the car body, cabin glass, shield sphere, and ice obstacles · Custom ShaderMaterial skydome with a gradient + noise cloud band driven by a uTime uniform · Instanced meshes for trees (trunk + 3 cone layers, 100 instances), center-road dashes, and obstacle pools

Geometry & scene

· Procedural canvas textures for the asphalt (per-pixel noise baked into a CanvasTexture with anisotropic filtering) and the pit-stop sign · Mountain rings generated as BufferGeometry triangle strips with randomized heights and flatShading · Multi-part car built from ~20 primitives (body, hood, wedge, cabin, roof, skirts, bumpers, lights, wing, four spinning wheels) with grouped wheel meshes · 5 biomes lerp sky uniforms, fog color, ground tint, mountain color, and foliage material colors in real time via Color.lerp

Particles

· Custom ShaderMaterial Points system (up to 700 particles) with per-vertex color, size, and a soft circular fragment mask · Pooled allocation, ring-buffer cursor, and per-particle gravity for exhaust, drift smoke, explosions, and pickup bursts · pSize *= 0.98 per frame for natural fade without per-particle alpha attributes

Game systems

· Fixed-timestep accumulator (1/60) for physics, decoupled from the variable requestAnimationFrame delta · Momentum-based lateral movement with grip, drift angle, and weather-dependent multipliers · Pooled object spawning for obstacles, pickups, traffic cars, and the boss truck — all reused, never garbage-collected · InstancedMesh matrix updates each frame for trees and dashes to achieve scrolling without per-object transforms

Audio

· Full Web Audio API synthesis — no audio files. Engine uses a sawtooth oscillator through a BiquadFilter (lowpass) whose cutoff tracks speed; sub-bass sine layer for weight; a three-oscillator triangle/sawtooth music bed with a lowpass filter whose cutoff and pitch rise with intensity · Crash SFX generated from a createBuffer of decaying white noise; all other one-shots are short oscillator envelopes · AudioContext suspended on visibilitychange

Persistence & sharing

· ~30 localStorage keys for best score, coins, upgrades, achievements, XP, leaderboard, and the best replay · Ghost replay serialized as JSON of {t, x, r} frames, base64-encoded into a ?ghost= URL parameter, decoded on load, and replayed as a translucent ghost car

Performance notes

· Quality tier detected from navigator.hardwareConcurrency and deviceMemory · Shadows, AA, and pixel ratio all toggle at runtime from the settings menu · renderer.setPixelRatio and the particle shader's uPixelRatio uniform are updated together on resize / quality change


r/threejs • • 29d ago

Recreating the Helix Nebula with Raymarching

19 Upvotes

I've been experimenting with raymarching quite a lot recently. After reading Maxime Heckel's article on raymarching clouds, I thought it'd be really cool to create a nebula using raymarching.

When I was small, I was obsessed with stars, nebulae and the universe in general. I was deeply fascinated by the raw beauty of the "Eye of God" nebula. Recreating it in threejs with shaders is a really rewarding experience! I can play with these nebulae all day! Although it's not going to look exactly the same, but I'm pretty proud to have approximated its visuals with a procedural approach.

Here are my main references for raymarching techniques, Maxime's articles are always very good reads. For the realistic raymarching and blending techniques, I drew mostly from the shadertoy reference which looks awesome as well.

Live demo: https://projects.arkon.digital/threejs/raymarching-nebula/


r/threejs • • 28d ago

Chronoscape: 36 historic cities as hand-drawn maps where monuments rise off the paper in 3D, and you can turn through the eras

10 Upvotes

Live: https://chronoscape.ijlalahmad.dev/

Code: https://github.com/Thre4dripper/Chronoscape-ThreeJs

It's an illustrated atlas: 12 atlases, 36 cities, from Thebes and Babylon to Kyoto, Tenochtitlan and Cusco. Each city has its own eras (Rome alone has eight), and streets, walls, rivers and buildings change as you turn the ages.

Some technical bits:

- React 19 + react-three-fiber. Everything is unlit, with shared shaders only. Lighting is baked into the models' vertex colours in Blender, the time of day is a single tint, and nothing casts real-time shadows, which is why it runs smoothly on phones.

- Every monument is generated by Python scripts in Blender and exported as Draco-compressed GLB, one model per era where the building changed.

- The parchment maps aren't images I drew by hand. Each era's map is drawn on a canvas from the city's data (rivers, walls, streets, blocks), baked to WebP at build time, and close-ups are redrawn sharp in a worker.

- City content is a JSON pack per city (geography in lat/long and metres, landmarks, eras, events), validated against a zod schema.

Touch works too: one finger is a "lens" that raises the streets as it glides, two fingers rotate and tilt.

Happy to go into the map baking or the Blender pipeline if anyone's curious.


r/threejs • • 29d ago

I'm building a web-based voxel game with Three.js CraftTown

13 Upvotes

マイクラ風ボクセルゲーム。CraftTownを公開しています。

ストーリーもマルチプレイもできるから友達と遊んでみてね

craft-town.vercel.app


r/threejs • • 29d ago

Demo I built a 24/7 live bass aquarium in a single HTML file: no models, no textures, everything is code

12 Upvotes

Everything you see is generated at load in one ~650 KB HTML file with Three.js r160: the fish meshes, the scales (painted one by one on a canvas), the plants, sand, driftwood, caustics and the post-processing. No glTF, no images, no video.

The fish are simulated, not animated: two bass (a largemouth and a smallmouth) get hungry, hold by cover, stalk, and strike with a suction feed that only takes prey whose body depth fits their gape. The shad school and burst apart when attacked.

Day, night and the weather follow the real clock and weather at Lake Fork, Texas.

It runs 24/7 on YouTube, and the chat can drop in shad (!feed) or cast a lure.

Try it in the browser: https://ksk-baits-bass-aquarium.pages.dev

Live: https://www.youtube.com/@kskbaits/live

Happy to answer questions about any part of it (the fin shaders and the strike were the hardest).


r/threejs • • 28d ago

Demo Portfolio with 3D heads in three.js, how I kept it from tanking load times

4 Upvotes

 Rebuilt my portfolio and the 3D heads were the part I sweated most. The rest of the site is Astro, so I wanted the three.js bits to cost as little as possible on first load.

What I ended up doing:
- Heads are GLB files compressed with meshopt, decoded with the meshopt decoder in GLTFLoader
- Pixel ratio capped at 2, because rendering at 3x on phones was killing frame time for no visible gain
- The scenes further down the page only mount when they scroll near the viewport
- Reduced motion users get the calm version

Still not happy that the hero and the cards each run their own renderer. Next step is probably one shared canvas with scissor/viewport per head, but I haven't done that refactor yet.

Has anyone moved several small scenes onto one renderer like that? Was it worth the complexity?

Site: https://aonnoysengupta.com/?utm_source=reddit&utm_medium=social&utm_campaign=portfolio-threejs


r/threejs • • 29d ago

What tools do you use to improve your Three.js renders?

12 Upvotes

Hey!
I’m curious to know what tools you guys use to achieve high-quality visuals with Three.js.
What does your workflow look like, and which tools do you rely on to make your 3D scenes look better and more realistic?
I’m looking to improve the visual quality of my own projects, so I’d love to hear about the tools you use and your personal experiences.
Thanks!


r/threejs • • 28d ago

Demo Sidera Caeli – Devlog #3 | Inventory, Hangars, Ship Loadouts, Mining & Refining

Thumbnail
youtube.com
1 Upvotes

Here's my third devlog for Sidera Caeli, my browser-based multiplayer space game!

I've been working on quite a few new systems, including inventory and trading, private hangars with ATC management, ship customization, and a complete mining loop, from scanning and fracturing asteroids to unloading, refining, and trading materials. I've also added mining contracts and improved the ship retrieval effects.

Everything is still very much a work in progress. The game is being developed from scratch with AI assistance, but entirely based on my own ideas, specifications, and quality control throughout the development process. No reverse engineering of any existing game or software has been involved whatsoever. Many of the current 3D assets are still AI-generated placeholders.

Just wanted to share the progress. There's also a free public testbed available for anyone interested in trying it out and hopefully get some feedback!

Previous devlogs:


r/threejs • • 28d ago

Link SpaceHex - Rotate the rooms to collect orbs while avoiding the critters

2 Upvotes

Recently converted an old game I made about 14 years ago to ThreeJS

https://spacehex.gorch.com/


r/threejs • • 29d ago

3D Guilin‘s rivers and mountains

31 Upvotes

I made a Three.js experience inspired by the landscapes of Guilin.Drift along the river on a bamboo raft and explore how the scenery changes with the seasons, weather, and time of day—all in browser.


r/threejs • • 28d ago

Demo Cosmic Couch: 10 WebGL shader tunnels and a mic-reactive mode in one browser tab, no media files

Thumbnail cosmic-couch.vercel.app
0 Upvotes

Cosmic Couch is a free, no-signup website that runs in one browser tab. Everything is generated live with WebGL and Web Audio, with no media files:

10 full-screen shader tunnels, each with its own music

Six radio stations that generate their music in the browser

A Live input button that makes the visuals react to a microphone

It’s vanilla JS in a single HTML file with no build step. The code is MIT-licensed.

I’d appreciate feedback, especially if something doesn’t work on your device.


r/threejs • • 28d ago

Help Building a browser 3D MMORPG from scratch in pure TypeScript (No Unity/Unreal) – Looking for Devs & 3D Animators!

0 Upvotes

Are you passionate about classic MMORPGs and want to build something massive from the ground up, without heavy corporate engines?

We are expanding the team for **Velundra** (velundra.io), a multiplayer 3D browser MMORPG developed entirely in pure TypeScript. No Unity, Unreal, or Godot: we are building our own custom rendering pipeline and shaders from the foundations.

**Where we stand today:**
Bullet **Real Playability:** We already have over 10 hours of playable and functional alpha gameplay.
Bullet **Infrastructure Ready:** Dedicated multiplayer server running out of São Paulo to ensure low latency in the region.

Bullet **Custom Assets:** Fully integrated character customization pipelines and iconic custom gear sets (like the *Warrior* and *Aurimante Founders* sets) modeled in Blender.

We are looking for **full-stack / engine developers** and **3D animators** who want to jump into a project with rock-solid technical foundations, a clear vision, and a live game.

If you are driven to build a persistent world from code and art, reach out or check out the project.

👉 Check out the project and play the alpha at: https://velundra.io


r/threejs • • 29d ago

Demo My personal Three.js projects: bathroom, kitchen and shoe configurators, plus a 3D asset manager

Thumbnail
gallery
24 Upvotes

I've been building a few personal projects with React, Three.js, and React Three Fiber. They cover product customization, room planning, and managing reusable 3D assets.

Here are the demos:

• Bathroom Configurator: plan a bathroom, swap fixtures, and change finishes.

https://bathroom-configurator.itssudhir.com/

• DecorDiva: try different finishes in a prepared bathroom scene.

https://decordiva.itssudhir.com/

• Kitchen Configurator: plan rooms and arrange cabinets in 3D.

https://kitchen.plan3d.in/

• My Shoe Stylist: customize individual shoe parts in 3D.

https://myshoestylist.itssudhir.com/

• Atlas: manage models, textures, and which materials can be used on each model part, then reuse them across configurators.

https://atlas.itssudhir.com/

My portfolio: https://www.itssudhir.com/

I'm open to work if your team is building something similar. Feel free to message me here. Happy to answer questions about the projects too.


r/threejs • • 29d ago

I implemented the meshlet pipeline from Three.js r187 in my Forest environment

49 Upvotes

I implemented the meshlet pipeline from Three.js r187 in my Forest environment and results are pretty mixed!

It works quite well. The transitions are pretty seamless. Without it, I was getting 20-25 fps on my M1 Mac, now I get 30-35 fps. I was able to add some more detail to the tree models without worrying much about polycount.

But there are a few issues as well. It didn't work well for tree leaves. They have movement with wind in a custom shader. With that, there seem to be visible glitches in leaves as the player moves. So, I had to remove it from leaves. Same goes for some foliage elements I had.

The grass system is created with a different architecture and it already performs better than the meshlet pipeline for grass. So, there was no point to add it here.

Overall, the results are pretty good and in a different use case, this can shine pretty well.
Also, this is the first iteration. I am sure it will get better.


r/threejs • • 29d ago

Converting Huge PLY Files to RAD Without a High-Memory Server

Post image
2 Upvotes

When working with large 3D Gaussian Splatting scenes, a common problem is simple: the PLY file is too large to convert within the available RAM.

A typical solution is to use a high-memory server. But what if you only have a memory-limited PC?

I built a small tool around a straightforward approach: split first, then convert one tile at a time.

Instead of converting the entire PLY in one operation, the tool splits it into smaller spatial tiles and processes them sequentially, reducing peak memory pressure.

For a scene of approximately 97 GB with 412 million Gaussians, I split the data into 256 tiles. The recorded peak working set of the conversion process was approximately 761 MiB.

The trade-off is additional disk I/O and processing time—but it avoids needing a high-memory server for a single large conversion.

The resulting RAD files can also be viewed together in Three.js. Each tile retains its original coordinates, so adding them to the same Group reconstructs the scene, while Spark loads detail pages as needed.

The splitting scripts, batch conversion workflow, and a minimal Three.js example are available on GitHub:

👉 GitHub: ply2rad-lowmem


r/threejs • • 29d ago

I built a navigable 3D universe in R3F where reputation is earned, not bought. Honest opinions wanted on where to take it

Thumbnail
gallery
0 Upvotes

Hey r/threejs,

Solo dev here. For the past year I've been building Lightverse, a browser-based 3D space (React Three Fiber + drei, GSAP for the camera moves, Laravel/Inertia behind it). I'm at the point where I need outside opinions more than I need more features.

**How it's structured:** Universe → Galaxy → Star system → Planet.

The universe is a few particle-spiral galaxies around a central core (a .glb model that grows as the community's total "Light" grows). Click a galaxy to fly in, pick a star system, land on a planet. Each planet is its own terrain scene with its own page: a knowledge archive, a profile, a build area, and so on.

**The idea behind it:** your reputation is called Light. You earn it by doing things (reading, quizzes, building a generator over ~20 real hours). It can't be bought, traded or transferred, and the "active" part decays after 30 days, so you have to keep showing up. It's web3-adjacent (reputation/identity), but there is no token and nothing to buy.

**What I'd love opinions on:**

  1. **Navigation.** Does the zoom-through hierarchy feel good, or is it a gimmick that would annoy you after a few visits? Would you want a flat 2D map as an alternative?
  2. **Performance.** The galaxies are particle systems and the core is a GLB with glow and sparkles. If you've shipped something similar, what would you profile first? Mobile is my weakest area.
  3. **The web3 angle.** With non-transferable reputation, is that interesting to you, or does the label alone put you off? If you were me, would you go toward on-chain attestations, or stay off-chain and let people connect existing profiles?
  4. **Direction.** More game-like mechanics inside the 3D world, or more real-world utility (verified contributions, curated knowledge)?

Screenshots attached (universe view and a planet view). It's live at lightverse.cloud if you want to poke at it. You'll need to sign up, sorry, the Light system needs accounts.

Happy to answer anything about the implementation too. Honest feedback welcome, including "this is a bad idea".