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 futur

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

72

out of 100

Verdict

VALIDATE

high confidence

Competition

No competitor data yet

Trend

No signal yet

A single-file app format that bundles HTML, assets, and data into SQLite for easy sharing and offline use, targeting developers who want to avoid hosting infrastructure.

The pain

Developers can build interactive HTML apps easily but struggle with data persistence and sharing because it requires hosting, databases, and deployment infrastructure. Sharing a working app with data currently means sending multiple files or deploying to a server.

The gap

No existing tool packages a complete web app with its data into a single portable file that works offline and can be shared like a document. GitHub Pages handles static sites, Vercel handles dynamic apps, but nothing handles the app plus persistent data in one file.

Build angle

Start by focusing on a specific use case where the single-file model creates obvious value, such as personal knowledge bases, expense trackers, or form-based data collection tools. Build templates and examples that show the workflow advantage over traditional hosting. Consider a freemium model where basic apps are free but advanced features like AI integration or team collaboration require payment.

Strengths

  • Solves a real friction point in the app development workflow that most developers have experienced.
  • Privacy and security built in from the start, which is increasingly valuable.
  • Open file format strategy removes lock-in and increases adoption potential.
  • Rust and Tauri foundation is solid and performant.
  • Merging capability via UUIDs and timestamps shows thoughtful design for multi-user scenarios.
  • Works offline and requires no infrastructure, which is a genuine advantage over cloud-based alternatives.

Risks

  • Market size is unclear. The target audience is developers building personal or internal tools, which is smaller than the total developer market.
  • Free alternatives exist for most use cases. GitHub Pages is free for static sites, Vercel and Netlify are free for simple dynamic apps, and SQLite is already portable.
  • Monetization path is not obvious. Charging for a developer tool requires clear value over free options, and the use case does not scream urgency.
  • Adoption requires developers to learn a new format and workflow when they already have working solutions.
  • Multi-user collaboration is limited by the file-based approach. The UUID merging strategy helps but is not as seamless as real-time collaboration tools.
  • The permission model for internet access and file system access is still being worked out, which could be a blocker for some use cases.
  • Distribution is unclear. How do users discover and share Capsule apps? There is no app store or marketplace mentioned.

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “Capsule – Single-file web apps that save their data into SQLite”.

Open FlyBot