Compojure is a compact and expressive routing library for Ring (Clojure's web server abstraction), enabling the composition of web applications using simple, declarative routing macros inspired by frameworks like Sinatra or web.py. This small Compojure application demonstrates creating a Ring handler from two routes. The simplest way to get started with Compojure is to use Leiningen, the standard Clojure build tool. If you haven't already, download and install Leiningen. You'll need Leiningen 2.0.0 or later for the instructions to work.

Features

  • Declarative routing DSL with macros like GET, POST, etc.
  • Seamless integration with Ring middleware and handlers
  • Concise composition of web routes and resources
  • Support for route fallbacks (e.g. not-found)
  • Lightweight yet powerful for web application structure
  • Backed by mature documentation, community templates, and tooling

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Eclipse Public License

Follow Compojure

Compojure Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Compojure!

Additional Project Details

Registered

2025-08-19