Capsule Bundles Web Apps and Their Data Into a Single SQLite File
A developer has introduced Capsule, a Rust and Tauri 2.0 app that embeds an HTML application and its SQLite-stored data in one file, aiming to simplify saving, sharing and exporting web app data.
The file extension shares the Capsule name. The HTML file and related assets are embedded directly in the database. User data can be saved as a localStorage key or value store, or through a MongoDB-inspired collections API as documents in a table inside the file. PDF files, images and other assets can also be stored in the database so different documents stay together. All data can be exported to CSV or JSON if needed.
Privacy and security were described as a major priority. Capsule documents cannot do anything out of the box. They do not have direct access to the file system and they require permission to access the internet. The permission model is still being improved. Capsule documents can also use local or remote AI models for document-specific AI features.
One downside is that multiple people working on the same app will create different copies. To make it possible to merge different copies of the same file, each data entry has a unique UUID and timestamp. The developer plans to open up the file format specification for the 1.0 version of the app so other applications can read or write Capsule files.
The developer says Capsule can be tried in a web preview at https://withcapsule.app/preview with pre-built templates, or users can employ any AI provider of their choice to create a custom, Capsule-optimized app by using a prompt that asks the AI to read the app wizard instructions at https://withcapsule.app/prompt.txt. The file format is still being worked on, but there are migrations for each new version, so data should not be lost when newer versions of the app are used in the future. The Hacker News post had 18 points and 5 comments.