Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Application framework for Clojure
Tree: 23adde539c

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Ciste ("she steh")

Build Status

Ciste is a Lojban word meaning:

x1 (mass) is a system interrelated by structure x2 among components x3 (set) displaying x4 (ka).


About Ciste

Ciste attempts to provide a structure to Clojure applications. The main idea revolves around matching a request to a action variable and a pair of format and serialization parameters.

The action is simply a function that accepts a request and returns either: a record of some sort (or a sequence of them); or nil.

The response of the action method is then passed to the apply-view family of multimethods. The view will match the combination of action (expressed as a var) and the format (a keyword). The view will return a logically true value (generally a hash). If there is no view defined for both the action and the format, a view will be searched for using only the format. This allows generic handlers to be defined for a format (eg, converting the structure to JSON).

The response from the view is then passed to the formatter. This allows extra transformations to be applied for the given format. An example of this would be converting a series of vectors into HTML using Hiccup.

Finally, the response is formatted according to the serialization type. This framework has been used to respond to request simultaneously over an HTTP and XMPP connection. This allows any final transformations to be applied (eg, adding common headers).

In addition to the main thread of request and response, triggers can also be defined. When a matching action is invoked, the request and the response from the action are sent to the specified trigger. Triggers are for side effects only.


(ns my-app.core
  (:use ciste.core))

(defaction index
  (index-db-method :limit (:limit options)))

(deffilter #'index :html
  [action request]
  (action {:limit (-> request :params :limit)}))

(defview #'index :html
  {:body (show-list records)})

(defsection show-list [RecordModel]
  [:ul (map show-list-item records)])

Applications Using Ciste

The prime example of Ciste in action is my OStatus server located at

If you find Ciste useful for your purposes, I'd love to hear about it.


Add the following to your project.clj dependencies

[ciste "0.3.0-SNAPSHOT"]


Copyright (C) 2011 KRONK Ltd.

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.