Need help with petrol?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

130 Stars 13 Forks Eclipse Public License 1.0 47 Commits 5 Opened issues


A simple event-handling framework for ClojureScript projects.

Services available


Need anything else?

Contributors list


Petrol is a library to help you build ClojureScript webapps. It concentrates on being Functional, and if that leads to being Reactive, well, that's just fine too.

Clojars Project



Documentation is on its way. In the meantime, my talk at ClojureExchange 2015 will tell you all you need to know.

Running the examples

cd examples
lein figwheel counter counter2 multicounter spotify hydra pages

Then open http://localhost:3449


Developing a standalone library is a bit of a pain. The solution I like is to use the library as an editable-dependency of the examples, like so:

cd examples
mkdir checkouts
ln -s .. checkouts/
lein figwheel

Now you should be able to edit the library, and the examples that demostrate its use, as one live project.


If you get this exception when running

clojure.lang.Compiler$CompilerException: Could not locate cljs/analyzer__init.class or cljs/analyzer.clj on classpath: , compiling:(figwheel_sidecar/utils.clj:1:1)

Try upgrading leiningen to version 2.5.3+

lein upgrade


With thanks to...


Copyright © 2015 Kris Jenkins

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.