3 ms·
Actually implementing persistent storage for simple apps isn't that hard, especially for a big corp. Personally, I was using LLMs coding capabilities to create
by meistertigran 1y ago
Actually implementing persistent storage for simple apps isn't that hard, especially for a big corp. Personally, I was using LLMs coding capabilities to create custom single-file HTML apps, that would work offline with localStorage. It's not that there aren't good options out there, but you can't really customize them to work exactly how you want. Also it takes like half an hours to get what you want.
The only downside was not being able to access the apps from other devices, so I ended up creating a tool to make them online accessible and sync the data, while using the same localStorage API. It's actually pretty neat.
- hucklebuckle 1y agoWhich tools did you make?
- meistertigran 1y agoAt first, I created a simple API via Python that was basically mimicking the localStorage API. It would accept getItem and setItem requests and write it to a file. In the HTML file I was replacing localstorage calls to calls to the API automatically, via a script that was doing a simple search-and-replace on the file. I was also assigning a custom subdomains via nginx to each html file, so that it could have the max 10MB storage that localstorage can have. After a while it became clunky doing things with separate scripts, so I ended up creating - htmlsync.io. It's still pre-alpha, but registrations for the free tier are open.