← Back to Projects

Case Study

Quant-Link

Real-time multiplayer trading sim. A Rust SpacetimeDB backend ticks GBM markets every 2s; React Three Fiber renders a walkable 3D city. Launchpad hackathon.

Executive Summary

Quant-Link is a real-time multiplayer 3D trading simulation built for the SpacetimeDB Launchpad Hackathon. Live at quantlink.vercel.app. Players walk a financial metropolis, trade markets driven by Geometric Brownian Motion, buy luxury assets, and learn from an AI quant mentor.

Problem & Constraints

Financial education lacks real-time multiplayer experiences that teach trading mechanics through gameplay instead of static tutorials.

Architecture

SpacetimeDB Rust module (scheduled GBM ticks) ↔ real-time subscriptions ↔ React Three Fiber client + glassmorphic trading terminal + Gemini AI mentor.

Methodology

  • Built Rust SpacetimeDB module with scheduled reducers firing every 2 seconds for GBM market simulation
  • All game state in SpacetimeDB tables - no external database or message broker
  • React Three Fiber 3D world with WASD movement and interactive brokerage tower (press T)
  • Gemini RAG-style prompts include live portfolio and market context

Results & Metrics

FeatureDetail
Market ticksEvery 2s (GBM)
BackendSpacetimeDB 2.4 (Rust)
ClientReact + Three.js (R3F)
AI mentorGoogle Gemini

Tech Stack

SpacetimeDB, Rust, React, React Three Fiber, TypeScript, Gemini API

Future Work

Hackathon deployment via spacetime publish, tournament modes, mobile companion.

Links