frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://withcapsule.app/
26•bashtian•56m ago
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.

Comments

andai•23m ago
That's pretty cool. But who is this for? What problem does it actually solve?

How would I know if I need this, vs something else?

bashtian•10m ago
If try to do data management in Excel or need to download an app just to save some recipes, this could be an alternative. For example you can track time and billing with a nice UI without requiring a SaaS subscription. You can try some examples in https://withcapsule.app/preview
lewisjoe•22m ago
This is great. Curious: this requires users to have a host app installed on their machine that can read .capsule file right? Won't that be a point of friction for distribution?

Isn't html/css a better distribution mechanism as most computers already have the tech to run them?

bashtian•16m ago
The problem is that you can't save the user data in way that you can click a single file, similar to a Word or Excel file. I you think a about it, a Excel spreadsheet is also just UI + data in a single file.
Dwedit•15m ago
You'd think so, but web browsers are downright lobotomizing the ability for local HTML files to run any meaningful javascript code. Want to run a JS file from the same directory? CORS ERROR!!!!

Hence 200MB applications that are complete copies of the Chromium browser to run under 1MB of actual web code.

pmkary•20m ago
Really really nice
eleventen•11m ago
You can get a cheap approximation of this with chromium browsers + Filesystem API and a PWA manifest for that native-ish feel. AI has reignited my interest in building based 100% on browser native features.

https://developer.mozilla.org/en-US/docs/Web/API/File_System...

bashtian•2m ago
If you want to distribute apps to many users this would probably be a better solution. The main benefit of Capsule is the personal document like app. You create a capsule, move it to an USB stick, save it in your cloud storage and it's still the same document. Nothing has changed, not the UI, not the data. The document will stay the same.
zackify•8m ago
love this idea!

UK's Digital ID walks into a bar two months after being killed off

https://www.theregister.com/offbeat/2026/09/15/uks-digital-id-walks-into-a-bar-two-months-after-b...
1•jjgreen•38s ago•0 comments

Dr Julius Neubronner's Miniature Pigeon Camera

https://publicdomainreview.org/collection/dr-julius-neubronner-s-miniature-pigeon-camera/
1•vitonsky•42s ago•0 comments

Show HN: What attackers type – credential lists from our honeypots

https://github.com/lurescope/top-attack-lists
1•lurescope•1m ago•0 comments

The Matroid Secretary Conjecture Is True

https://arxiv.org/abs/2609.14555
1•fofoz•1m ago•0 comments

Quantum Elements, USC Demonstrate Surface Code Scaling on IBM Heron Processors

https://www.hpcwire.com/off-the-wire/quantum-elements-and-usc-demonstrate-surface-code-scaling-on...
1•rbanffy•2m ago•0 comments

mobile-use - Google copied our open-source code, removed our engineers' names

https://www.reddit.com/r/reinforcementlearning/comments/1wg1unx/google_copied_our_opensource_code...
1•reimertz•3m ago•0 comments

MSI XpertStation WS300 Thermals: Why a 1,300W GB300 Doesn't Throttle on a Desk

https://www.storagereview.com/review/msi-xpertstation-ws300-thermals-why-a-1300w-gb300-does-not-t...
2•rbanffy•3m ago•0 comments

Show HN: Check if your IP has appeared in a residential proxy network

https://haveibeenproxied.com/
2•microcode•3m ago•0 comments

Show HN: Let agent read files with secrets while redacting values for LLM contex

https://github.com/daniel-sc/contextveil
1•daniel-sc•4m ago•1 comments

The Inference Hardware Revolution of 2026

https://spectrum.ieee.org/inference-hardware-revolution
1•vinhnx•4m ago•0 comments

A sourced chronology of the recent debate over AI control

https://aivshumanity.stemonte.io/
1•stemonteduro•6m ago•0 comments

There is no epidemic of loneliness, but there is an epidemic of scurvy

https://www.experimental-history.com/p/there-is-no-epidemic-of-loneliness
1•rafaelc•8m ago•0 comments

Show HN: Hush.md – E2E-encrypted Markdown sharing with expiring links

https://hush.md
1•audrum•8m ago•0 comments

I Turned Google Glass into a Claude Code Terminal

https://voidnullvalue.github.io/glassterm/
1•voidnullvalue•10m ago•0 comments

Claude Mods, Functional Hooks in Claude Code and Desktop

https://github.com/anthropics/claude-code/issues/91870
2•mercat•10m ago•0 comments

Show HN: MergeMe – 1 Slack card per PR/MR. Supports GitHub/GitLab(+ self hosted)

https://mergeme.dev/
1•maruan21•11m ago•0 comments

Show HN: Loss. a tiny satire about AI progress

https://workatloss.com/
5•pbobak•11m ago•0 comments

PageRadar – watch any web page and see what changed

https://fc590fc7e49af295dfa580240af86ac8.ctonew.app/
1•thegpot•12m ago•0 comments

Against Waldenponding (2018)

https://contraptions.venkateshrao.com/p/against-waldenponding
1•tolerance•12m ago•0 comments

Firefox 156 shows ads in the address bar (dubbed "Firefox Suggest")

https://www.heise.de/en/news/Firefox-156-PDF-viewer-starts-up-to-45-percent-faster-11454106.html
6•dark-star•12m ago•0 comments

NASA scientists say relocations put space missions at risk

https://www.npr.org/2026/09/15/nx-s1-5964919/nasa-employee-relocations-equipment-impacts-missions
1•rbanffy•13m ago•0 comments

The Trump family's corruption is backfiring

https://www.youtube.com/watch?v=UCc_3r384R4
4•z3ltr3x•14m ago•0 comments

Space: Infinite Space on Your Computer

https://spacefs.com/
1•gk1•15m ago•0 comments

Managed Agent Architectures: Why Frontier Labs Are Rebuilding the Agent Loop

https://twitter.com/JoshARosen/status/2098420569242800306
1•gmays•15m ago•0 comments

Keep Your Skills Sharp

https://extralongdivision.com/articles/keep-your-skills-sharp/
2•extralongdivisi•16m ago•0 comments

Have it both ways: stay discoverable in search while disallowing AI training

https://blog.cloudflare.com/accountable-mixed-use-ai-crawlers/
1•torutofu•17m ago•0 comments

Software Engineer: I'm Tired of Pretending [video]

https://www.youtube.com/watch?v=H0HwFqBG9KE
1•slater•18m ago•0 comments

Google's New Search Redirects Make It Harder to Check Links Before You Click

https://digitalescapetools.com/2026/09/google-search-redirects-hide-destination-links.html
3•xabd•18m ago•1 comments

Show HN: EACL is a situated ReBAC authorization library for Datomic and Datahike

https://github.com/theronic/eacl
1•pgt•18m ago•0 comments

PlantUML Viewer (VSCode Extension – local – no server)

https://marketplace.visualstudio.com/items?itemName=chirilach.reviewer-plantuml-viewer
1•info-chirila•19m ago•0 comments