2 comments

[ 3.8 ms ] story [ 18.0 ms ] thread
Nice job! I like how lightweight it is.

I've recently built this wrapper for chrome apis for ClojureScript developers: https://github.com/binaryage/chromex

It converts callbacks to core.async channels (which is a popular clojurescript async primitive) also it uses chromium sources to generate whole api-index as clojure data structures and then uses macros to generate wrapping / marshalling of API calls. That way I can also retain API versioning and warn API clients when using wrong version / signatures.

I wasn't anywhere near as fancy and just collected the callback methods from the Chrome docs with a snippet pasted in browser console.