2026-05-11 16:41:11 +02:00
2026-05-11 11:25:17 +02:00
2026-05-11 16:41:11 +02:00
2026-04-14 08:59:36 +02:00
2026-04-29 11:35:17 +02:00
2026-04-27 20:46:52 +02:00
2026-04-27 11:23:29 +02:00
2026-04-30 13:36:07 +02:00
2026-04-14 08:59:36 +02:00
2026-04-13 22:24:20 +02:00
2026-04-27 20:40:05 +02:00
2026-05-06 23:23:04 +01:00
2026-05-11 11:11:46 +02:00
2026-04-13 16:37:37 +02:00
2026-05-08 03:02:26 +01:00

La-Fabrik

An interactive 3D web experience for La Fabrik Durable — a low-tech repair and transformation service in Altera, a post-capitalist city rebuilt in 2039. Players step into the role of a newly onboarded technician and experience a day at the service: repairing an e-bike, fixing a power grid, and upgrading a vertical farm's irrigation system.

Built with React, Three.js, and Vite. Runs in the browser, no installation required.

📦 Tech Stack

Build & Language

Package
TypeScript
React
Vite
ESLint
Prettier

3D Engine

Package
Three.js
@react-three/fiber
@react-three/drei
@react-three/rapier
GSAP

Performance & Effects

Package
r3f-perf
AnimationMixer

🗂 Project Structure

la-fabrik/
├── public/
│   ├── models/
│   │   ├── map/                            # Base map — loaded once at start
│   │   ├── workshop/
│   │   ├── powerGrid/
│   │   └── farm/
│   ├── textures/
│   └── sounds/
│
└── src/
    ├── world/                              # Persistent 3D world composition
    │   ├── World.tsx                       # Active scene composition
    │   ├── GameMap.tsx                     # Map loading and progressive rendering
    │   ├── GameMapCollision.tsx            # Collision-only octree source
    │   ├── Lighting.tsx                    # Ambient, directional, point lights
    │   ├── Environment.tsx                 # Scene background / sky model
    │   ├── GameMusic.tsx                   # Game scene music lifecycle
    │   ├── debug/                          # Debug-only test scene
    │   │   └── TestMap.tsx
    │   └── player/
    │       ├── Player.tsx                  # Player rig composition
    │       ├── PlayerCamera.tsx            # Player camera mount
    │       └── PlayerController.tsx        # Pointer lock movement and inputs
    │
    ├── components/
    │   ├── three/                          # Shared R3F components by domain
    │   │   ├── gameplay/                   # Core repair gameplay prototype
    │   │   ├── handTracking/               # R3F hand tracking debug models
    │   │   ├── interaction/                # Trigger, grab, focus wrappers
    │   │   ├── models/                     # GLTF model components
    │   │   └── world/                      # Environment-specific 3D objects
    │   └── ui/                             # HTML overlays — outside Canvas
    │       ├── Crosshair.tsx
    │       ├── debug/                       # Debug-only HTML overlay panels
    │       │   ├── DebugOverlayLayout.tsx
    │       │   ├── GameStateDebugPanel.tsx
    │       │   └── HandTrackingDebugPanel.tsx
    │       ├── HandTrackingVisualizer.tsx
    │       └── InteractPrompt.tsx
    │
    ├── managers/                           # Current singleton-style services
    │   ├── AudioManager.ts                 # Music and SFX playback
    │   └── InteractionManager.ts           # Focus, nearby, grab state
    │
    ├── hooks/                              # React hooks by domain
    │   ├── debug/                          # Debug state and GUI folders
    │   ├── docs/                           # Docs language context access
    │   ├── editor/                         # Editor loading and history
    │   ├── gameplay/                       # Repair gameplay helpers
    │   ├── handTracking/                   # Webcam/WebSocket hand tracking
    │   ├── interaction/                    # Interaction manager subscriptions
    │   └── three/                          # Three.js/R3F helpers
    │
    ├── data/
    │   ├── interaction/                    # Interaction tuning
    │   ├── player/                         # Player tuning
    │   ├── gameplay/                       # Repair gameplay static config
    │   └── world/                          # Environment and lighting config
    │
    ├── utils/
    │   ├── core/                           # Logger and generic utilities
    │   ├── debug/                          # Dev-only tools and scene inspection
    │   ├── editor/                         # Editor-only parsing utilities
    │   ├── map/                            # Map loading and validation
    │   └── three/                          # Three.js helpers
    ├── types/                              # Shared TypeScript domain types
    ├── App.tsx                             # App bootstrap and route switch
    └── main.tsx

🚀 Getting Started

git clone https://github.com/La-Fabrik-Durable/La-Fabrik.git
cd La-Fabrik
npm install
npm run dev
  • app: http://localhost:5173
  • debug mode: http://localhost:5173?debug

📜 License

See LICENSE file.

S
Description
No description provided
Readme 1.9 GiB
Languages
TypeScript 92.2%
CSS 5.7%
JavaScript 1.3%
Python 0.8%