JS1k 2013 demo — "Repulsion playground" by Carlo Cannas

The red ball is pushed away from black nodes, add new nodes by dragging from an existent node, to delete a node shift-click it and add a fixed node with ctrl-click.