metosin/compojure-api
Sweet web apis with Compojure & Swagger observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4621
- days_rel: n/a
- days_push: 667
- n_releases_24m: 0
Adoption not part of the score
1124 stars · 146 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Clojure library that extends Compojure with tools for building REST web APIs, including Schema/clojure.spec data coercion and automatic Swagger/OpenAPI documentation. It bundles middleware for common API behaviors like exception handling and supports async handlers and multiple response formats.
Use cases
- build a REST API in Clojure with automatic Swagger docs
- add request/response schema coercion to Compojure routes
- generate OpenAPI documentation for a Ring-based API
- serve JSON, EDN, and Transit responses from one API
- handle API exceptions and validation errors uniformly
- define bi-directional routes for a web service
When to choose
- you are maintaining or extending an existing Compojure-based Clojure API
- you want Swagger/OpenAPI docs generated from route definitions
- you need Schema or clojure.spec coercion on API endpoints
When to avoid
- you are starting a new Clojure project - the maintainers recommend reitit instead
- you need a framework outside the JVM/Clojure ecosystem
- you want a non-Ring web stack
Facets
library · maturity maintenance
web-framework api-framework routing middleware serialization http-server web-development backend apis developer-tools jvm jvm-scripting clojure swagger openapi ring compojure schema-coercion rest-apis
2 sources
- readme: https://github.com/metosin/compojure-api · fetched 2026-08-28 · dc469f705bfd
- homepage: http://metosin.github.io/compojure-api/doc/ · fetched 2026-08-29 · 025a44640c5e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| metosin/compojure-api | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="metosin/compojure-api")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem