Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bashtian
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
bashtian
9d ago
I just added Google Drive support to the Capsule Web app, which supports reading and writing capsule files. More cloud providers and features are planned, along with integration into the desktop app.
2.
▲
by
bashtian
9d ago
Thank you for providing such a concrete use case, this is exactly why I created Capsule in the first place. I will add support for APIs without CORS in the next version of the app.
3.
▲
by
bashtian
11d ago
There are a few things in Capsule to avoid corruptions of the file during syncing. The DELETE journal mode is used and writes are batched into transactions so that updates are always complete changes. And if there is a copy created because
4.
▲
by
bashtian
11d ago
Merging works already but is a little bit hidden under the data editor function in the Capsule edit menu. Currently the last record update wins, but a merge UI is planed to do manual conflict resolving.
5.
▲
by
bashtian
11d ago
I'm currently 50/50 on open source the full app vs just the spec. Since I'm currently having a strong idea of what features and functionality is still missing I feel that open-sourcing right now would distract to much in this
6.
▲
by
bashtian
11d ago
Each document record is saved with UUID and timestamps. When deleting a record the data is removed but the record keeps a tombstone so only the ID remains. For conflicts currently the newest one is used, but there will be a merge like UI in
7.
▲
by
bashtian
11d ago
This is for local document like apps. Tauri is actually using the OS webview instead of bundling Chromium like Electron. That's why the download is only 10MB for Mac.
8.
▲
by
bashtian
11d ago
The HTML files does not have any permission to access anything on the file system. Ideally the whole app will be running inside a sandbox on desktop, for mobile apps this will be the default anyway.
9.
▲
by
bashtian
11d ago
For saving data in the capsule file it would create complexity regarding migration handling when updating the HTML file to add a field to a form for example. Keeping the data schemaless makes it also easier for merging data or importing dat
10.
▲
by
bashtian
11d ago
The problem would be cross-platform support. In the end the capsule file is the standalone binary similar to a PDF or a Word document, you only need the viewer app to open any capsule file.
11.
▲
by
bashtian
11d 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
12.
▲
by
bashtian
11d 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 exam
13.
▲
by
bashtian
11d 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.
14.
▲
Show HN: Capsule – Single-file web apps that save their data into SQLite
(withcapsule.app)
298 points
by
bashtian
11d ago
|
121 comments
15.
▲
by
bashtian
2y ago
For Android there is an app that does this. https://play.google.com/store/apps/details?id=io.appground.b...
16.
▲
Pythonic Diversion
(twitter.com)
2 points
by
bashtian
3y ago
|
0 comments
17.
▲
Disco Elysium: Game Boy Edition by Colin
(csbrannan.itch.io)
1 points
by
bashtian
6y ago
|
0 comments
18.
▲
by
bashtian
10y ago
I had a similar idea and started with an android app [1] for creating an app template with a simple interface directly on the device. It's not as powerful as this, but maybe I can implement basic support for these templates. But right
19.
▲
by
bashtian
10y ago
I thought about something like this for autonomous cars. The game engine could simulate all the sensors in a car. Then it would be possible to use this as training data. Would be fun to create a racing game out of it to let different algori
20.
▲
Distributed code review system for Git repos
(github.com)
9 points
by
bashtian
11y ago
|
1 comments
21.
▲
BadWolf – Temporal graph store abstraction layer
(github.com)
4 points
by
bashtian
11y ago
|
0 comments
22.
▲
CRT simulation (2014)
(piratehearts.com)
86 points
by
bashtian
11y ago
|
34 comments
23.
▲
Lorem Ipsum Illustration
(github.com)
10 points
by
bashtian
12y ago
|
3 comments
24.
▲
by
bashtian
13y ago
I did something similar for Go and Java. It's simpler if you don't need the whole API, but of course not as powerful. https://github.com/bashtian/jsonutils