ΛↃ LAMBDACOMBINE

Symbolic Systems Infrastructure

cl-brotli

Common Lisp - Brotli Compression Library

Common Lisp CFFI bindings for the brotli compression library, providing Gray-stream-based compression and decompression. Modelled on cl-zstd and written for real-time SSE streaming in datastar-cl.

Supports one-shot operations (compress-buffer / decompress-buffer), streaming (with-compressing-stream / with-decompressing-stream), file operations, and Hunchentoot integration via make-compressing-stream for Content-Encoding: br responses.

Packages:

Dependencies: cffi, trivial-gray-streams, cl-octet-streams.

Tested: SBCL, ABCL.

License: GNU Lesser General Public License v3 or later.

(defroute cl-brotli (:get :text/html))