Riffle: Reactive Relational State for Local-First Applications
Abstract
The reactive paradigm for developing user interfaces promises both simplicity and scalability, but existing frameworks usually compromise one for the other. We present Riffle, a reactive state management system that achieves both simplicity and scalability by managing the entire state of a web application in a client-side persistent relational database. Data transformations over the application state are defined in a graph of reactive relational queries, providing developers with a simple spreadsheet-like reactivity model. Domain state and UI state are unified within the same system, and efficient incremental query maintenance ensures the UI remains responsive. We present a formative case study of using Riffle to build a music management application with complex data and stringent performance requirements.
- Venue
- UIST 2023
- Volume
- Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology
- DOI
- 10.1145/3586183.3606801
- https://dl.acm.org/doi/pdf/10.1145/3586183.3606801
- Anthology ID
2023.uist.89
Cite
@inproceedings{litt-etal-2023-riffle,
title = {{Riffle: Reactive Relational State for Local-First Applications}},
author = {Geoffrey Litt and Nicholas Schiefer and Johannes Schickling and Daniel Jackson},
booktitle = {Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology},
isbn = {9798400701320},
year = {2023},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
doi = {10.1145/3586183.3606801},
url = {https://doi.org/10.1145/3586183.3606801},
abstract = {The reactive paradigm for developing user interfaces promises both simplicity and scalability, but existing frameworks usually compromise one for the other. We present Riffle, a reactive state management system that achieves both simplicity and scalability by managing the entire state of a web application in a client-side persistent relational database. Data transformations over the application state are defined in a graph of reactive relational queries, providing developers with a simple spreadsheet-like reactivity model. Domain state and UI state are unified within the same system, and efficient incremental query maintenance ensures the UI remains responsive. We present a formative case study of using Riffle to build a music management application with complex data and stringent performance requirements.}
}