๐ŸŒ WorldSim AI โ€” Digital Twin Simulation Platform

Model, predict and optimize real-world systems. Agent-based simulation with real-time 3D visualization, machine-learning forecasting, reinforcement learning and distributed scaling โ€” free and open source (MIT), one Docker command to run.

What it does

  • Agent-based modeling โ€” Vehicle, Human, Machine and EnergyUnit agents in rule-based or probabilistic worlds; Planner/Predictor/Optimizer agents coordinate via an AgentCoordinator
  • 8 zone types โ€” residential, industrial, commercial, road, park, power plant, water treatment, warehouse โ€” with resource production/consumption tracking
  • AI layer โ€” PyTorch LSTM forecasting, autoencoder anomaly detection, scipy LP resource optimization, Gymnasium-compatible RL (PPO / Q-learning) closing the simulation โ†’ prediction โ†’ optimization loop
  • Real-time 3D โ€” React Three Fiber world with orbit/pan/zoom, day-night cycle and 2D โ†” 3D switching
  • Live data ingestion โ€” MQTT (IoT sensors), CSV/JSON/JSONL, REST polling, or synthetic sources with noise, drift and failure injection
  • Distributed + digital twin โ€” multi-node gRPC engine with spatial partitioning and load balancing; live/replay/hybrid sync, GeoJSON + geofencing, plugin system (Prometheus, Slack)

One-command start

git clone https://github.com/rudra496/worldsim-ai && cd worldsim-ai
docker-compose up --build   # open http://localhost:3000

For

Smart-city modelers, factory-floor optimizers, energy-grid researchers and anyone who needs a digital twin without enterprise licensing.

Tech stack

Python 3.10+ ยท FastAPI ยท React 18 ยท Three.js ยท NumPy ยท optional PyTorch ยท gRPC ยท Docker

Built With

Share this project:

Updates