Skip to content
Road traffic simulator and signals optimizer in CoffeeScript & HTML5
JavaScript HTML CoffeeScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
css better canvas redraw Jun 16, 2014
dist add a simple map for running experiments Apr 25, 2015
experiments add a simple map for running experiments Apr 25, 2015
images add favicon Jun 13, 2014
test moving spec files Jul 12, 2014
.gitattributes exclude dist from git diff Jun 17, 2014
.gitignore add back dist to the master branch Jun 13, 2014
LICENSE add LICENSE Jun 13, 2014 update readme Jun 30, 2014
coffeelint.json coffelinted Jun 21, 2014
coverage.html Prototype of Blanket coverage Jul 8, 2014 few modifications to allow run experiments on top of the existing model Apr 25, 2015
package.json add chroma for color manipulations Jul 19, 2014


Traffic simulator and road lights adjuster using Intelligent Driver Model and lane-changing model MOBIL. Written in CoffeeScript and HTML5.

Currently it provides only simulator with visualizer but in future releases traffic lights optimizer will be added to construct best possible schedule and avoid traffic jams.


  • Mouse and wheel - scrolling and zoom
  • shift + click -- create intersection
  • shift + drag from one intersection to another -- create road

Or just press generateMap in control panel and add cars with carsNumber slider.


Feel free to send pull requests and create bug reports/reature requests using issues. Or just send me your feedback to To run simulator

git clone
cd RoadTrafficSimulator
npm install

And open index.html in your browser. Use gulp to rebuild project.

Stories in Ready

You can’t perform that action at this time.