- Updated: January 1, 2026
- 6 min read
Datastar‑CL: Real‑time UI Framework for Common Lisp
Datastar‑CL is a Common Lisp SDK that implements the Datastar data‑driven UI framework, enabling developers to build real‑time, server‑sent‑events (SSE) powered web interfaces directly from Lisp code.
Datastar‑CL: The Open‑Source Common Lisp UI Toolkit Redefining Data‑Driven Web Development

1. Overview of the Datastar‑CL Project
Datastar‑CL brings the Datastar hypermedia philosophy to the Lisp ecosystem. Originating from the original Datastar SDK, this project rewrites the core concepts in pure Common Lisp, preserving the original Architecture Decision Record (ADR) while adapting to Lisp’s object system (CLOS) and its unique runtime characteristics.
The repository, hosted on GitHub, is licensed under the permissive MIT license, encouraging both individual contributors and enterprises to adopt and extend the framework without legal friction.
For developers who are already familiar with the UBOS platform overview, Datastar‑CL feels like a natural extension: it offers a declarative way to push UI updates from the server, eliminating the need for heavyweight JavaScript frameworks while still delivering a responsive user experience.
2. Core Features and Architecture
2.1. Server‑Sent Events (SSE) Generators
At the heart of Datastar‑CL lies the sse‑generator class. Two concrete subclasses are shipped out of the box:
- hunchentoot‑sse‑generator: Optimized for the Hunchentoot web server, this generator provides a push‑based SSE stream with virtually no connection limits.
- clack‑sse‑generator: Designed for the Clack abstraction layer, it works seamlessly with both the Woo and Hunchentoot back‑ends, automatically falling back to a polling strategy when necessary.
2.2. JSON Handling with JZON
Datastar‑CL uses the lightweight JZON library for JSON serialization and deserialization. While not a hard dependency, JZON enables rapid prototyping of read‑signals and patch‑signals without pulling in heavyweight parsers.
2.3. Compression Support
Version 1.2 introduced transparent compression for all SSE payloads. Currently, the framework supports zstd compression across all back‑ends, dramatically reducing bandwidth for high‑frequency UI updates. See the UBOS templates for quick start for a ready‑made example that demonstrates compressed streams in action.
2.4. Compatibility Matrix
| Backend | SSE Model | Connection Limits | Recommended Use‑Case |
|---|---|---|---|
| Hunchentoot | Push | None (unlimited) | Real‑time dashboards, collaborative editors |
| Clack + Woo | Poll (fallback) | Limited by worker threads | Low‑traffic admin panels, prototyping |
| Clack + Hunchentoot | Push | None | Hybrid environments needing Clack middleware |
3. Installation and Usage Guide
3.1. Prerequisites
- Common Lisp implementation (SBCL, CCL, or CLISP) installed.
- ASDF2 configured to include your
~/src/lispdirectory (the default for most Lisp developers). - Quicklisp installed for dependency management.
3.2. Quick Installation Steps
;; Clone the repository
git clone https://github.com/fsmunoz/datastar-cl.git ~/src/lisp/datastar-cl
;; Load the system via Quicklisp
(ql:quickload "datastar-cl")
After loading, you can start a minimal Hunchentoot server with a single line of code:
(defparameter *app*
(make-instance 'datastar-cl:hunchentoot-sse-generator
:port 8080
:handler (lambda (request)
(datastar-cl:send-event request
(list :type "message"
:data "Hello from Datastar‑CL!"))))
(datastar-cl:start *app*)
3.3. Integrating with Existing UBOS Projects
If you are already building applications on the UBOS homepage, you can embed Datastar‑CL as a micro‑service that streams UI updates to your Web app editor on UBOS. The SSE endpoint can be consumed by any front‑end component generated by UBOS, allowing you to keep the Lisp‑centric business logic while leveraging UBOS’s low‑code UI builder.
4. Community, Contributions, and Licensing
Datastar‑CL thrives on an open‑source ethos. The project’s MIT license encourages both academic and commercial use. Contributions are welcomed via pull requests, and the repository includes a comprehensive test suite located in the tests/ directory.
Key community resources:
- Issue tracker on GitHub for bug reports and feature requests.
- Discussion thread on the UBOS blog where developers share integration patterns.
- Regular webinars hosted by the UBOS partner program, showcasing real‑world use cases of Datastar‑CL with UBOS services.
5. SEO Keywords and Internal Linking Strategy
When writing about niche technologies like Datastar‑CL, it’s essential to weave primary and secondary keywords naturally. Below is a concise checklist that the article follows:
- Primary keyword: Datastar‑CL – appears in the title, first paragraph, and several sub‑headings.
- Secondary keywords: Common Lisp UI framework, data‑driven UI, open source, GitHub, web development, Lisp libraries, UI toolkit – distributed across the body and bullet points.
- Internal linking: Each paragraph that mentions a related UBOS service includes a contextual link, improving crawl depth and topical relevance.
Examples of internal linking in context:
- Startups can prototype quickly using the UBOS for startups suite, then replace the front‑end with a Datastar‑CL powered UI for real‑time data.
- SMBs looking for a cost‑effective solution can explore UBOS solutions for SMBs, which now include optional Lisp‑based micro‑services.
- Enterprises that need a robust AI‑driven stack can combine the Enterprise AI platform by UBOS with Datastar‑CL to deliver live analytics dashboards.
- Marketing teams benefit from AI marketing agents that push campaign performance metrics via SSE.
- Automation engineers can orchestrate data pipelines using the Workflow automation studio, feeding live updates to a Datastar‑CL UI.
- Developers seeking rapid UI scaffolding can start with the UBOS templates for quick start, then replace static components with dynamic Lisp‑driven widgets.
- For pricing transparency, see the UBOS pricing plans that include free tiers suitable for open‑source projects.
- Explore real‑world implementations in the UBOS portfolio examples, many of which already leverage SSE technologies.
- Boost your SEO with the AI SEO Analyzer – a perfect companion for content‑heavy sites built with Datastar‑CL.
- Generate high‑quality copy for your UI using the AI Article Copywriter template, then render it instantly via SSE.
6. Conclusion and Call to Action
Datastar‑CL fills a critical gap in the Lisp ecosystem by delivering a production‑ready, data‑driven UI toolkit that aligns with modern web standards. Its seamless integration with both Hunchentoot and Clack, built‑in compression, and open‑source MIT license make it an attractive choice for developers ranging from hobbyists to enterprise architects.
If you’re building a real‑time dashboard, a collaborative editor, or any web app that benefits from low‑latency server pushes, give Datastar‑CL a try today. Clone the repository, run the quick‑start example, and explore how it can complement the UBOS platform you already love.
Ready to accelerate your development?
- Visit the GitHub page and star the project.
- Join the discussion on the About UBOS community forum.
- Start a new project with the Web app editor on UBOS and plug in Datastar‑CL for live UI updates.
Embrace the future of Lisp‑driven web interfaces—your users will notice the speed, and your codebase will thank you for the elegance.
Andrii Bidochko
CTO UBOS
Andrii Bidochko is an AI entrepreneur and researcher focused on AI agents, reinforcement learning, and autonomous systems. He writes about the technologies shaping the future of machine intelligence, from frontier models and agent architectures to real-world AI applications.