Library / SDK
ring-clojure/ring avatar
ring-clojure/ring

Ring for Clojure: a handler contract in SPEC.md, split across eight artifacts

Clojure HTTP server abstraction

3,891 stars527 forksClojureMIT

At a glance

What is it?
Ring is the Clojure HTTP abstraction modelled on WSGI and Rack. This article covers how its libraries divide up, how to install ring-core, and what the repository leaves for you to pick elsewhere.
Who is it for?
Choose Ring if you write Clojure web applications and want request and response handling that works across servers and frameworks, with Jetty as the one adapter in the repository. Skip it if you expect routing or templating from the same dependency.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 14 days ago.
What is it written in?
Mainly Clojure, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • ring-clojure/ring3,891 ★ · +5
Star history
Repository2026-10-082026-11-24
ring-clojure/ring3.9k3.9k

5 Stars in the last 47 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Ring takes its handler contract from Python's WSGI and Ruby's Rack

Ring is a Clojure web applications library, inspired by Python's WSGI and Ruby's Rack. Its aim is to hide the details of HTTP behind one simple, unified API, so that a web application is built from modular components. Those components can be shared among applications, web servers and web frameworks.

The repository describes itself as a Clojure HTTP server abstraction, and the license is MIT. The precise shape of a request, a response and a handler is not spelled out in the front page of the repository. It lives in SPEC.md at the root of the distribution, which the front page calls a complete description of the Ring interface. Longer how-to material sits in the project wiki. Anyone planning to write middleware or an adapter should read SPEC.md first, because this article does not restate it and a paraphrase would be a poor substitute for the file.

Eight published artifacts split Ring into core, protocols, devel, servlet and Jetty pieces

Ring is not one jar. The front page lists eight libraries. The meta-package ring/ring pulls in all the relevant dependencies at once. ring/ring-core holds core functions and middleware for Ring handlers, requests and responses. ring/ring-devel carries functions for developing and debugging Ring applications. ring/ring-jetty-adapter runs a Ring handler on an embedded Jetty web server.

Two artifacts under the org.ring-clojure group are deliberately narrow. ring-core-protocols contains only the protocols needed to build Ring responses, and ring-websocket-protocols contains only the protocols needed for WebSockets. A library that wants to return Ring-compatible responses or speak the WebSocket protocols can depend on these small pieces without pulling in the whole of ring-core.

The remaining two are the servlet libraries, covered next. The repository directories mirror this split: ring-core, ring-core-protocols, ring-devel, ring-jakarta-servlet, ring-jetty-adapter, ring-servlet and ring-websocket-protocols each get a folder, alongside a ring-bench folder that the front page does not describe.

Servlet support splits at the Servlet 4.0 and 5.0 boundary, and the group id changes with it

Running a Ring handler inside a servlet container means choosing between two libraries by the Servlet version of your container. ring/ring-servlet constructs legacy Java Servlets, version 4.0 and below, from Ring handlers. org.ring-clojure/ring-jakarta-servlet constructs Jakarta Servlets, version 5.0 and above, from Ring handlers.

The two do not share a coordinate prefix. The legacy one is published as ring/ring-servlet and the Jakarta one as org.ring-clojure/ring-jakarta-servlet, so a dependency copied from an old project will point at the wrong group if the container has since moved to Jakarta. The front page offers no migration steps between the two libraries. If your container is on one side of that line, the choice is made for you. If you are not running in a servlet container at all, neither artifact is needed.

Installing ring-core is one dependency line, pinned at 1.15.6

The front page uses ring-core as its example for adding any of the libraries. For a deps.edn project the line is:

code
ring/ring-core {:mvn/version "1.15.6"}

For a Leiningen project file the vector is:

code
[ring/ring-core "1.15.6"]

The text says to include one of the libraries, for instance ring-core, so the form is the same for the others, with the artifact name swapped. It prints 1.15.6 only for ring-core. It does not promise that every artifact carries that same version number, and the repository shows no GitHub releases to check against. Before pinning ring-jetty-adapter or ring-devel, look up the version for that artifact in CHANGELOG.md or on the API docs site instead of reusing the ring-core number.

Jetty is the only server adapter in the repository

The adapters named on the front page come to one: ring/ring-jetty-adapter, a Ring adapter that uses an embedded Jetty web server. There is no folder for another HTTP server, and the front page does not list any.

The practical result is that a project wanting to serve Ring handlers from something other than Jetty or a servlet container cannot find the adapter in this repository. The wiki is the place the front page points to for in-depth documentation, so check it before assuming a second adapter exists elsewhere. The embedded Jetty approach means the server lives inside your application process, started from Clojure code, instead of an external container receiving a deployed archive. That fits a standalone application. For a deployed archive, the servlet libraries above are the route.

The front page gives no configuration options for the Jetty adapter, no port setting and no threading values. Those details are not in the file you read first, so budget time for the API docs.

No router, no template library and no database layer are listed alongside Ring

Read the library list again and note what is absent. There is no routing library, no HTML templating library and no database access in the eight artifacts. Ring is the layer under those: it defines how requests and responses are represented and how middleware wraps a handler.

That has a cost. A new project cannot take ring/ring and expect URL routing from it. The front page recommends no router or template library, so the choice is yours, made from other projects. Middleware is the part that ships here, in ring-core, but the front page does not list which middleware functions exist. To find out whether you get cookie, parameter or session handling without writing it yourself, open the API docs at ring-clojure.github.io/ring. Nothing in the repository front page tells you in advance, and guessing wastes an afternoon.

GitHub shows no releases, so CHANGELOG.md is the only version history

The repository has no GitHub releases. Version history is kept in CHANGELOG.md at the repository root, which the front page links under Documentation next to the wiki and the API docs. Anyone upgrading from an older pin has to read that file, not a releases tab.

The last push to the default branch, master, landed on 19 October 2026, and the copyright line runs 2009-2026 under Mark McGranaghan, James Reeves and contributors. The README shows a badge for the test.yml workflow in GitHub Actions, and the repository carries an update_versions.bb script plus a project.clj at the top level. A contributor is asked to read CONTRIBUTING.md before submitting a pull request.

The repository is not archived. That is the only maintenance claim the facts support: recent activity, a changelog file to read and a contribution guide.

Editorial conclusion

Choose Ring if you write Clojure web applications and want request and response handling that works across servers and frameworks, with Jetty as the one adapter in the repository. Skip it if you expect routing or templating from the same dependency. Before adopting, read SPEC.md for the interface and CHANGELOG.md for the version you pin, since GitHub shows no releases.

Frequently asked questions

Is there an API for Ring cameras in Ring Clojure?

No. ring-clojure/ring is a Clojure HTTP server abstraction inspired by Python's WSGI and Ruby's Rack. Its repository description covers web applications and servers, not cameras.

What license does Ring Clojure use?

Ring is released under the MIT license. The copyright line reads 2009-2026 Mark McGranaghan, James Reeves and contributors.

Which Ring library do I use for a Jakarta servlet container?

Use org.ring-clojure/ring-jakarta-servlet for Jakarta Servlets version 5.0 and above. For legacy Java Servlets up to version 4.0, the library is ring/ring-servlet.

Where is the Ring interface specification?

SPEC.md at the root of the repository gives the complete description of the Ring interface. The project wiki holds more in-depth documentation on how to use Ring.

Official sources

  1. Issues
  2. License: MIT
  3. README
  4. ring-clojure/ring on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/ring-clojure-ring.svg)](https://hysenlabs.com/projects/ring-clojure-ring)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/ring-clojure-ring.svg)](https://hysenlabs.com/projects/ring-clojure-ring)

Was this useful?