Plumeria logo: a five-petalled plumeria flower, cream with pink edges and a yellow centre

Plumeria

Plumeria is a keep-alive HTTP/1.1 server for Clojure on Jolt, the Clojure runtime built on Chez Scheme. Each connection runs on its own Jolt fiber and makes ordinary blocking socket calls. The sockets underneath are non-blocking, though: when a read or write would have to wait, Jolt parks the fiber and wakes it once the socket is ready. Your handlers stay plain, straight-line code, and no OS thread sits blocked for each open connection.

(require '[plumeria.core :as http])

(def server
  (http/run-server
    (fn [req]
      {:status 200
       :headers {"Content-Type" "text/plain"}
       :body (str "you asked for " (:uri req) "\n")})
    {:port 18090}))
;; curl http://127.0.0.1:18090/hi   ->   you asked for /hi

(http/stop-server server)

Handlers speak Ring, and ring-core's middleware runs on it. Plumeria itself handles routing, streamed responses and Server-Sent Events, chunked and streamed request bodies, async handlers, handler pools for code that blocks in C, WebSocket, multipart uploads, gzip, static files with caching and ranges, an access log, and HTTPS with SNI, certificate reload and automatic Let's Encrypt certificates. It can also bind 443 as root and then drop to another user before it serves anything, and it can run under an ensemble supervisor with a pool of stateful workers.

Status: early, and changing. There are no releases yet, and options, defaults and namespaces may still change between commits, so pin a commit if you depend on it. Most of the testing has been on macOS. If something breaks or doesn't fit your use, please open an issue.

Requirements

  • Jolt 0.8.15 or newer, tested on 0.8.32. Plain HTTP needs nothing else.
  • OpenSSL 3, only for HTTPS: Homebrew's openssl@3 on macOS, or libssl.so.3 on Linux.

Documentation

The guide is online at https://jlt-commons.github.io/plumeria/, and in docs/guide. It has a page per feature: getting started, requests and responses, limits and timeouts, HTTPS, WebSocket, static files, supervision with ensemble and the rest, plus the architecture for anyone reading the code. HTTP/2 and HTTP/3 aren't planned: a reverse proxy in front covers them.

Performance

Keep-alive /plaintext with ab -k on one M-series Mac, against minimal Undertow and Jetty servers in the same run (2026-11-29, jolt 0.8.31):

c=10c=100
undertow65.7k req/s90.9k req/s
jetty40.6k req/s74.5k req/s
plumeria35.5k req/s32.1k req/s

It's slower than the JVM servers, and the gap sits in plumeria's own request path, not in fibers. docs/guide/performance.md has the rest of the numbers and the method.

Running the checks

The tasks live in deps.edn:

jolt doctor    # is this jolt new enough?
jolt test      # the test suite
jolt smoke     # end-to-end check with curl
jolt info      # every task, grouped
jolt site:serve  # the guide as a local site (needs jlt-commons/docs-engine)

Contributing has the rest, including what a pull request needs. Changes written with an LLM's help are welcome on the same terms as any other (AI_POLICY.md).

Acknowledgements

Plumeria grew out of Igropyr by guenchi, a fault-tolerant, high-concurrency backend framework for Chez Scheme (Apache-2.0). Igropyr's libuv.sc and http.sc were the reference for this project's first version, and its request-framing rules are a reference for the parser hardening. No Igropyr code is included.

It runs on Jolt (EPL-2.0), whose jolt.socket and jolt.fibers do the non-blocking work. The first version ran on libuv through a branch build of Jolt, and in October 2026 it moved to the sockets and fibers Jolt ships, with the HTTP layer unchanged. ring-chez-adapter (EPL-2.0) is a reference for parser hardening, and parts of the static-file handler and the benchmark runner are adapted from it.

The name

A plumeria, or frangipani, is a tropical tree with thick, fragrant flowers of five waxy petals that overlap in a pinwheel. The petals are often cream with a yellow centre, and Plumeria rubra blushes pink to red toward the edges.

Botanical plate of Plumeria rubra: clusters of pink and white five-petalled flowers with yellow centres above a long green leaf

Plumeria rubra by Sydenham Edwards, from William Curtis's Botanical Magazine, plate 279 (1794). Public domain, via Wikimedia Commons.png). The logo in docs/images/logo.svg was drawn for this project.

License

Copyright © 2026 Burin Choomnuan

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0. See LICENSE and NOTICE.