Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Concise web framework for Clojure
Pull request Compare This branch is 7 commits ahead, 379 commits behind weavejester:master.
Latest commit 4191dee James Reeves committed with Updated fact (again)
Failed to load latest commit information.
deps Updated fact (again)
src Lazy seq output flushes stream after each write
test Updated Fact to display unit test results in colour
build.xml Use ant to run tests ($ script/test -> $ ant test). Remove script/test.
epl-v10.html Changed license to EPL 1.0 to match Clojure and Clojure-Contrib


Compojure is an open source web framework for the Clojure programming language. It emphasizes a thin I/O layer and a functional approach to web development.

Compojure is still in active development. The current stable branch has been released as version 0.2.

Sample Code

Here's a small web application written in Compojure:

(use 'compojure)

(defroutes my-app
  (GET "/"
    (html [:h1 "Hello World"]))
  (ANY "*"

(run-server {:port 8080}
  "/*" (servlet my-app))


To run Compojure, you'll need:

These dependencies can be downloaded automatically using:

ant deps


For information on how to get started and use Compojure, please see our Wiki.

There is also a rough draft of a Compojure Tutorial available to read.


The Compojure Group is the best place to ask questions about Compojure, suggest improvements or to report bugs.


Eric Lavigne has written a series of excellent tutorials on Compojure:

Something went wrong with that request. Please try again.