Image: reddit.com · Open source graphics library for embedded rust with declarative UI
Twine, a declarative UI graphics library for embedded Rust
An LVGL-like graphics library with a declarative UI for no_std embedded Rust, built with Claude and demonstrated on an ESP32-S3 touchscreen.
Credits
- Reddit poster Necessary-Pilot-3971 Source ↗
- Repository account mayur-mahajan Source ↗
Earliest dated source:
The full story
After moving from ESP-IDF to Rust with no_std and embassy for ESP32 firmware, the maker missed LVGL, so built "twine", a graphics library with a declarative UI. It is open source and was built with AI assistance from Claude.
A demo on an ESP32-S3 CYD shows aircraft from the maker's Raspberry Pi ADS-B feeder, and a lot of time went into making animations and scrolling smooth. Other boards are untested, and the repo includes an llms.txt to help coding agents use the API.
How it was done
Tools
Themes
Loading themes…
Sources
From a short post by the maker, so the details are as they tell them.
- Reddit: Open source graphics library for embedded rust with declarative UIReddit poster: Necessary-Pilot-3971Posted
The maker's post on r/esp32.
If it disappears: archived copy of Reddit: Open source graphics library for embedded rust with declarative UI (opens in a new tab)
- The code: github.comRepository account: mayur-mahajan
The project on GitHub.
- Reddit: Open source graphics library for embedded rust with declarative UI
The poster has deleted it, but the original is still readable (it can take a few seconds to load): archived copy of Reddit: Open source graphics library for embedded rust with declarative UI (opens in a new tab)
- Reddit: LVGL-like graphics library for embedded applications in Rust
The subreddit's moderators removed it, but the original is still readable (it can take a few seconds to load): archived copy of Reddit: LVGL-like graphics library for embedded applications in Rust (opens in a new tab)