git clone 'https://github.com/puppetlabs/trapperkeeper.git'

(ql:quickload :puppetlabs.trapperkeeper)

Trapperkeeper logo


Build Status

Trapperkeeper is a Clojure framework for hosting long-running applications and services. You can think of it as a sort of “binder” for Ring applications and other modular bits of Clojure code.


Add the following dependency to your project.clj file:

Clojars Project



You can find a quick-start, example code, and lots and lots of documentation in our:

Lein Template

A Leiningen template is available that shows a suggested project structure:

lein new trapperkeeper my.namespace/myproject

Once you've created a project from the template, you can run it via the lein alias:

lein tk

Note that the template is not intended to suggest a specific namespace organization; it's just intended to show you how to write a service, a web service, and tests for each.

Related Projects

Here are some additional projects that provide Trapperkeeper services, and other related functionality:


Copyright © 2013 Puppet Labs

Distributed under the Apache License, Version 2.0


Please log tickets and issues at our JIRA tracker. There is also a #trapperkeeper channel on Freenode as well as Join the chat at https://gitter.im/puppetlabs/trapperkeeper.