Ca

Capsule – Single-file web apps that save their data into SQLite

Hacker News

Capsule – Single-file web apps that save their data into SQLite

Hey HN, I always had the problem that building HTML pages is really simple now, but trying to save data required hosting it somewhere, and sharing it afterwards was not easy. Over the last few months, I've been building an app called Capsule (it’s also the file extension name) written in Rust with Tauri 2.0 that allows packing an HTML app and its data into a single SQLite file. The HTML file and any related assets are directly embedded in the database. User data can either be saved as a localStorage key/value store or via a MongoDB-inspired collections API as documents, saved in a table in the file. You can also save other assets, like PDF files or images, directly in the database to keep different documents together. All data can be easily exported to CSV or JSON if needed. Privacy and security were a big priority for me, so documents cannot do anything out of the box. They don’t have direct access to the file system and they require permission to access the internet. The permission model is still something I’m working to improve. Capsule documents can also use local or remote AI models for document specific AI features. One downside with this approach is that multiple people working on it 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. I’m planning to open up the file format specification for the 1.0 version of the app so other apps can read or write Capsule files. You can try it out in the web preview at https://withcapsule.app/preview with pre-built templates or use any AI provider of your choice to create a custom, Capsule-optimized app by using the following prompt: "Please read the app wizard instructions at https://withcapsule.app/prompt.txt and help me design an app.“ I’m still working on the file format but there are migrations for each new version, so data should never be lost when using newer versions of the app in the future. Please let me know if you have any ideas or use cases where this might make sense or does not work.

Share card

Actual performance

353points
150comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
96%96% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: model, apps, user · Missing: mac, agents, macos
89%89% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, io · Missing: https docs, excited, just released
49%49% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: apps, month, way · Missing: mobile apps, ios, personal
42%42% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: host · Missing: plus, platform, intuitive
36%36% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
15%15% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

De
Declarative Abstraction for Assembling Web Apps (WIP)51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Declarative Abstraction for Assembling Web Apps (WIP)

Hacker News3
Na
Narrativ - HTML5 multimedia authoring for web & apps71%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Narrativ - HTML5 multimedia authoring for web & apps

Hacker News1
Ap
AppCoral – Yelp for Web Apps65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AppCoral – Yelp for Web Apps

Hacker News1
We
Web Apps for Researchers61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Web Apps for Researchers

Hacker News1
Te
Textual Web – turn TUIs in to web apps81%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Textual Web – turn TUIs in to web apps

Hacker News5
Ho
Hosty.page – an API for deploying web apps with a single API call56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Hosty.page – an API for deploying web apps with a single API call

Hacker News7
Br
Bricabrac – Text to Functional Web Apps67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Bricabrac – Text to Functional Web Apps

Hacker News3
A
A Flexbox layout for single page web apps60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Flexbox layout for single page web apps

Hacker News3
Co
CouchDB Web Apps for Business62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CouchDB Web Apps for Business

Hacker News2
Ozkour
Ozkour51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AI contextual assistant for web apps

Indie Hackers1ai