3 ms·
Thinking about this more - this might be a perfect use case for Redbean. Backend mini-app user data could be stored in SQLite. The server could store the actual
by TimTheTinker 2y ago
Thinking about this more - this might be a perfect use case for Redbean. Backend mini-app user data could be stored in SQLite. The server could store the actual apps' static files in its internal zip archive. All of that could easily be managed with a sprinkling of Lua.
The mini-apps could store data in localStorage, but that would expose the data to other mini-apps. Maybe build an easy API that functions nearly equivalently against a Lua endpoint.
- kreelman 2y agoThis might work.... ...But I've not worked out how to get RedBean serving up files outside of the zip... I'll get there. P'raps LUA could manage the security for different static apps.... as you say.
- TimTheTinker 2y agoI'm not saying Redbean should serve files outside of the zip. The mini-apps would all be located inside the zip. When downloading a new mini-app, the Lua script would add it to the zip archive itself -- it can do this as far as I can tell.