I am working on how to show guides when moving boxes like it is in Google Docs Drawing. I would prefer an open-source code or any type of guide before starting writing my own.
- I do not need drag-n-drop across multiple browser windows so i don’t need HTML5 Drag-n-Drop.
- Also i am using jquery-ui-draggable for boxes.

jquery ui has this already built in, see this demo:
http://jqueryui.com/demos/draggable/#snap-to
if you insist on the guidlines you would maybe have to fork jqueryui or look at the source and see if you can extend it.
alternatively you could just add your own snapping-functions on top of jQuery ui, i’ve played with it for a bit,
and while it doesn’t seem like fun at least it also doesn’t seem to be very hard.
you can view the example on jsfiddle: http://jsfiddle.net/x7uMh/103/
update: this works ~ jQuery 1.9 + jQueryUI 1.9. it breaks in newest jquery+ui. couldn’t be bothered to see what exactly the problem is, typically its only minor problems though.
just in case that site ever goes down, here’s the code:
css
html
javascript (make sure to include jquery + jquery ui)
hope that helps,
best, hansi.