Terminus: A Hanami + htmx web application for e-ink devices
summary
Terminus is an open source Ruby app (Hanami + htmx) that actually renders slides to e-ink devices on a private network and it works live — devices wake, request an image, render it, and go back to sleep, fetching a playlist that can be manual or automatic. Implementation details include Hanami actions + dependency injection via containable/infusible and dry‑rb param schemas, HTMX partial swaps with an HTMX gem helper, CSS view transitions and tiny JS hooks. Demo runs 95 slides at 1s refresh.
AI-written summary · about
chapters (13)
- 0:00Terminus and e-ink devices
- 3:41Device communication with Terminus
- 7:13Architecture and demo setup
- 10:20Dependency injection in Hanami
- 14:52Module builder pattern and SOLID
- 15:13Parameter validation with dry-rb
- 16:37Hanami actions as middleware
- 19:02HTMX integration for updates
- 20:03Hanami view layer and data
- 21:47Templates partials and HTMX syntax
- 25:16CSS view transitions
- 27:23JavaScript hooks for HTMX
- 28:25Summary and takeaways
related talks
36mReturn To Simplicity: Architect Hypermedia REST applications using Hanami + HTMX
54mHTMX: Web 1.0 with web 2.0 benefits without the grift of 3.0
50mWhat I Talk About When I Talk About Ruby
49mBring back the joy in web development with HTMX and Hypermedia-Driven Applications
50mhtmx 2.0 & Web Components: A Perfect Match for Frontend Development
26mReimagining dynamic web apps with HTMX
34mModern frontends using Spring Boot and Thymeleaf with htmx
25mHanami - New Ruby Web Framework
