A real-time, interactive 3D visualization of the Kaspa BlockDAG network. Created for the Build at Internet Speed Hackathon 2026.
- Live Simulation: Visualizes block creation in real-time (approx. 1-10 BPS).
- Real Network Sync: Fetches the current block height from Kaspa Mainnet (
api.kaspa.org) to initialize the simulation. - 3D Interactive Graph:
- Manual Control: Full orbit, pan, and zoom controls.
- Block Details: Click on any block to inspect its Hash, Parents, Difficulty, and Timestamp.
- Audio Feedback: Generative sound effects for block events (New Block, Gold Block, Red Block).
- High Performance: Optimized with React Three Fiber, Instanced Mesh concepts, and efficient post-processing (Bloom, Vignette).
- Framework: React + TypeScript + Vite
- 3D Engine: Three.js + React Three Fiber (@react-three/fiber)
- Helpers: @react-three/drei
- Effects: @react-three/postprocessing
- Data: Kaspa REST API
- Live Demo: https://kaspa-visualizer-eight.vercel.app/
- Clone the repository
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open
http://localhost:5173in your browser.
- Left Click + Drag: Rotate Camera
- Right Click + Drag: Pan Camera
- Scroll: Zoom In/Out
- Click Block: Select block to view details
- Click Background: Deselect block
This project demonstrates the speed and structure of the Kaspa BlockDAG. Unlike traditional blockchains, Kaspa's DAG structure allows for parallel block creation, which is visualized here by the multiple parents and branching structure.
(This section is for the project maintainer to prepare the hackathon submission)
-
Push code to GitHub.
-
Import project into Vercel.
-
Settings:
- Framework: Vite
- Command:
npm run build - Output:
dist4.64→4. Get your production URL (e.g.,https://kaspa-visualizer-eight.vercel.app/). 65→ 66→ Note: Avercel.jsonfile is included to handle API CORS issues automatically. 67→ 68→## 2. Demo Video Script (1-2 mins)
-
Intro (10s): Start on the "INITIALIZE SIMULATION" screen. Click to start. Hear the sound.
-
Concept (20s): "This connects to Kaspa Mainnet in real-time."
-
Features (20s): Show manual rotation, zoom, and clicking a block to see the Inspector panel.
-
Tech (10s): Mention React Three Fiber & Instanced Mesh.
- Project Name:
Kaspa Visualizer - Live BlockDAG Simulation - Description:
A cinematic, real-time 3D visualization of the Kaspa BlockDAG network. It connects to the Kaspa Mainnet to synchronize block height and simulates the parallel creation of blocks using a high-performance WebGL engine. Features interactive inspection, audio feedback, and manual camera control.
- Tags: BlockDAG, Real-time, Visualization, React Three Fiber, Kaspa.
This project was developed with the assistance of AI tools (Trae AI) for:
- Boilerplate code generation (React + Vite setup)
- Three.js geometry optimization strategies
- Refactoring for performance (InstancedMesh implementation guidance)
All logic, design decisions, and final code verification were conducted by the human developer.
Built with ❤️ for the Kaspa Community.
