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/
55•bashtian•1h 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•56m 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•43m 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•55m 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•49m 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.
paweladamczuk•9m ago
This is a frustration of mine as well, but I vaguely remember someone showing something on HN where the file could essentially save itself, I think they were using some file APIs for that... sadly I can't find the details anymore. But I keep running into the "HTML file opened locally can't update itself" issue repeatedly now that I build tools for myself with LLM agents.
Dwedit•48m 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.

lukasbm•17m ago
I imagined the capsule website would be able to either convert or directly run/open them
pmkary•53m ago
Really really nice
eleventen•44m 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•35m 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•41m ago
love this idea!
gadders•32m ago
>>Capsule packs your entire app — UI, data, and everything — into a single portable .capsule file.

I'm having Lotus Notes flashbacks.

dgf18•25m ago
Many big companies are starting now to test agentic coding to automate business processes. This could be a nice tool to distribute apps for workflows that aren't big enough to justify the operational overhed of maintaining a traditional web app backend. Nice!
lolakutty•23m ago
What is wrong with using IndexedDB?
fdeth•16m ago
So, let’s do Visual Basic again, but this time with LLMs and web stuff.
blamestross•10m ago
Seems very "packable into a standalone binary" but doesn't seem like that is a planned use case.
tonymet•8m ago
is the idea this would be hosted or run locally (like Electron)?
redog•5m ago
This seems ripe for an injection attack. Can it be inspected before running?

Show HN: An e-ink frame that hears birds and draws them as 1800s illustrations

https://github.com/arnegiacomo/fugleramme
342•arnemunthekaas•2h ago•69 comments

A Cop Searched 19,000 Flock Cameras Across 1,558 Cities. His Reason: 'LMAO'

https://www.techtimes.co.uk/police-flock-search-licence-plate-lmao-1808683
32•Tiwariparth6165•14m ago•3 comments

Java 27 Released

https://mail.openjdk.org/archives/list/announce@openjdk.org/thread/ORGGLMN75HFEWP7YL3ZLGHLYHVIBJDYT/
146•mkurz•1h ago•110 comments

I can't stop thinking about Papua New Guinea

https://notnottalmud.substack.com/p/why-i-cant-stop-thinking-about-papua
607•networked•8h ago•257 comments

Show HN: Hacking a $20 4G wireless hotspot into a texting device

https://bkovac.github.io/modem-thing/
46•bobili1234•1h ago•3 comments

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

https://withcapsule.app/
55•bashtian•1h ago•18 comments

25 Years of Mass Surveillance Is Enough

https://www.schneier.com/blog/archives/2026/09/25-years-of-mass-surveillance-is-enough.html
331•iamnothere•3h ago•68 comments

Global bond yields hit 2008 highs, raising stakes for big borrowers

https://www.reuters.com/world/asia-pacific/bond-selloff-drives-us-benchmark-beyond-5-stocks-rattl...
41•kaycebasques•54m ago•10 comments

Alternatives to MinIO for single-node local S3

https://rmoff.net/2026/01/14/alternatives-to-minio-for-single-node-local-s3/
137•rmoff•6h ago•69 comments

Sony's First Computer – The SMC-70 from 1982 [video]

https://www.youtube.com/watch?v=cT2-7KkPkBc
21•ksymph•2d ago•1 comments

Suspected sabotage causes major Netherlands rail disruption

https://www.bbc.com/news/articles/c8ly49w9g1edo
311•choult•4h ago•287 comments

CSS-Tricks in Limbo

https://vale.rocks/micros/20260915-0135
157•edent•7h ago•61 comments

Show HN: Panel – A research workspace where the agent can build its own panes

https://github.com/greentfrapp/panel
11•greentfrapp•1h ago•2 comments

A Man Archiving Pirate Radio Station Kool FM

https://londonist.com/london/music/kool-fm-archives
5•rdmuser•1d ago•0 comments

iOS 27, iPadOS 27, and macOS 27

https://www.apple.com/newsroom/2026/09/major-updates-for-apples-software-platforms-are-now-availa...
684•throw0101d•21h ago•780 comments

OpenArm: An open-source 7DOF humanoid arm

https://github.com/enactic/OpenArm
169•Lwrless•2d ago•35 comments

Show HN: Ordewell – turn one goal into an ordered plan of coding-agent tasks

https://github.com/ordewell/ordewell
10•ac-ciano•1h ago•4 comments

US confirms for first time it has deployed space weapons

https://www.bbc.com/news/articles/ck790xg41ygro
214•harporoeder•11h ago•132 comments

Show HN: Jexxa: High Speed on Device Dictation

https://jexxa.org
6•sankde•55m ago•11 comments

Inverse-Square Law

https://blog.coredump.cx/p/inverse-square-law
21•surprisetalk•1d ago•5 comments

The k-server conjecture is true

https://arxiv.org/abs/2609.15979
70•iamsyr•7h ago•32 comments

Lingo.dev (YC F24) is hiring a senior content engineer (Remote, worldwide)

https://lingo.dev/en/careers/ff88132a-cb79-4d35-a6a0-a6230de7a013
1•maxpr•8h ago

OpenAI buys smartphone camera maker Glass Imaging for $300M

https://techcrunch.com/2026/09/14/openai-buys-smartphone-camera-maker-glass-imaging-for-300-milli...
83•myth_drannon•3h ago•46 comments

Australia 'on the same page' as Canada as it seeks deeper EU alliance

https://www.reddit.com/r/worldnews/comments/1wgqken/australia_on_the_same_page_as_canada_as_it_se...
73•vrganj•1h ago•55 comments

25 Years of Mass Surveillance Is Enough [Auth: Cindy Cohn; Bruce Schneier]

https://www.lawfaremedia.org/article/25-years-of-mass-surveillance-is-enough
72•mdp2021•2h ago•6 comments

AI is breaking our proxies for expertise

https://www.seangoedecke.com/ai-is-breaking-our-proxies-for-expertise/
26•jbkcc•1h ago•8 comments

Pion, an agent designed to run any company autonomously

https://andonlabs.com/blog/why-we-built-pion
455•lukaspetersson•21h ago•550 comments

4,400-Year-Old Tomb of Egyptian Judge Found at Saqqara with Colors on Walls

https://arkeonews.net/4400-year-old-tomb-of-an-egyptian-judge-found-at-saqqara-with-colors-still-...
186•arunbahl•2d ago•57 comments

A rough guide for going back to the Moon

https://research.ibm.com/blog/nasa-ibm-lunar-foundation-model
35•gmays•1d ago•30 comments

There are only twelve 4x4 sudokus (and a cool trick for finding minimal subsets)

https://baldino.dev/blog/there-are-only-twelve-4x4-sudokus/
26•Fran314•1d ago•9 comments