How menshikovs/termr works
termr is an R framework for building reactive terminal applications, especially data tools and dashboards. Users compose widgets and layouts, attach event handlers and commands, then run an app; the framework renders its screen to a terminal and updates it as input and state change. Data workflows include in-memory and lazy tables, SQL editing, and database exploration. The README also documents workers and static exports. Relationships below follow documented capabilities; source excerpts mainly cover test tooling, so implementation-level links are limited.
Main entry points: app.R App Construction · datatable-source.R Table Sources · renderer.R Screen Renderer · layout.R Layouts
Components 20
App Runtime
- App Construction
R/app.R - Events and Commands
R/events.R - Reactive State
R/reactive.R
Data Workflows
- Data Table
R/widget-datatable.R - Table Sources
R/datatable-source.R - Query Sources
R/datatable-source-query.R - SQLite Sources
R/datatable-source-sqlite.R - SQL Editor
R/sql.R - Database Explorer
R/database-explorer.R
Rendering and I/O
- Screen Renderer
R/renderer.R - Virtual Screen
R/screen-buffer.R - Terminal Drivers
R/terminal.R
Extended Capabilities
- Background Workers
R/workers.R - Static Export
R/export.R
Other components
- Application Developer
- DBI Drivers
- Terminal User
Connections 17
- Application Developer → App Construction: composes app
README.md - App Construction → Layouts: accepts layout
README.md - App Construction → Events and Commands: registers handlers
README.md - App Construction → Reactive State: binds state
README.md - Layouts → Widgets: arranges widgets
README.md - Controls → Widgets: provides controls
README.md - App Construction → Screen Renderer: runs app
README.md - Screen Renderer → Virtual Screen: updates cells
README.md - Screen Renderer → Terminal Drivers: writes changes
README.md - Terminal User → Terminal Drivers: sends input
README.md - Data Table → Table Sources: uses sources
README.md - Table Sources → Query Sources: supports lazy queries
README.md - Table Sources → SQLite Sources: includes SQLite
README.md - SQL Editor → Database Explorer: composes data tools
README.md - Database Explorer → DBI Drivers: uses optional drivers
README.md - Background Workers → Terminal User: streams progress
README.md - Static Export → Virtual Screen: exports snapshots
README.md