JointJS - JavaScript diagramming library - Demos.

Dynamic Stencil

The full source code is part of both Rappid Release and Trial Package.