Thread:Talk:Echo (Notifications)/JavaScript API

Is there a JS API to add notifications? I'm maintaining a gadget that shows a message in my personal bar if there are any articles in a speedy deletion candidate category. It would be great if it could use Echo to show a notification instead. Is that possible?