60fc17819c91427ab3510f5551fbf16f5f885d71
Standalone Node WebSocket relay (ws) replacing the Liveblocks SaaS.
Per-room storage snapshot ({bricks, cursorColors}) plus presence
roster; JSON protocol with init/join/leave/presence/storage/event.
Ephemeral events relayed to peers only; rooms cleaned up when empty.
3D Lego-like Brick Builder Web App
Build and collaborate in real-time on 3D models using rectangular bricks. This multi-user application allows users to create intricate designs in a 3D space using Lego-like bricks.
Features
- 3D Rendering: Utilizes
three.jsandreact-three-fiberfor efficient and smooth 3D rendering. - Real-time Collaboration: Integrated with
liveblocksto enable users to collaborate in real-time. - Intuitive UI: Built with
radix uito provide a seamless user experience. - State Management:
Zustandis being used as state management solution.
Technologies Used
Live Demo
Experience the app live here.
Local Development
Prerequisites
Setup
-
Clone the repository:
git clone https://github.com/bhushan6/lego-builder.git -
Navigate to the project directory:
cd lego-builder -
Install the dependencies:
yarn installor
npm install -
Create a .env file in the root directory and add your Liveblocks public API key:
echo "VITE_LIVEBLOCKS_API_KEY=your_liveblocks_public_api_key" > .envReplace your_liveblocks_public_api_key with your actual Liveblocks public API key.
-
Start the development server:
yarn devor
npm run dev -
Open your browser and navigate to http://127.0.0.1:5173/ (or the port you've configured).
Contribution
Feel free to fork the project, open issues, and submit pull requests. Any contribution is highly appreciated!
Languages
JavaScript
87%
CSS
12.4%
HTML
0.3%
Dockerfile
0.3%
