Yakread Rewrite: Building a More Maintainable Reader with Clojure and Biff

2025-07-30
Yakread Rewrite: Building a More Maintainable Reader with Clojure and Biff

The author is rewriting the Yakread reading app and open-sourcing it, while experimenting with new features for Biff, their Clojure web framework. To address maintainability issues in the original 10k line codebase, three main architectural approaches were adopted: 1. Implementing materialized views using XTDB and RocksDB for faster queries; 2. Separating application logic from side effects to create purer code and easier testing; 3. Using Pathom to build a reusable data access layer, improving maintainability and readability. These methods improve testability, observability, and maintainability, and bring new improvements to the Biff framework.

Read more
Development

Biff: A Customizable Full-Stack Clojure Web Framework

2025-05-20
Biff: A Customizable Full-Stack Clojure Web Framework

Biff is a novel Clojure full-stack web framework that curates libraries and tools from across the ecosystem into one polished whole. It features immutable database support, schema enforcement with Malli, and uses hyperscript for rich, interactive UIs without leaving the backend. Passwordless email-based authentication (magic links and one-time passcodes) is included. Deploy via Ubuntu VPS provisioning or a Dockerized Uberjar. Changes are evaluated on file save, and a production REPL allows for live development. Biff boasts strong defaults but is designed to be easily modified as your needs evolve.

Read more
Development Full-Stack