Follow

That feeling when an awesome idea gets shot down because of limited browser APIs. Sigh.

@pell
Wanting to generate encrypted backups, where the readme html file that comes with the backup has all the logic it needs (in Javascript) to decrypt the backup. Not possible unless the size of the backup is severely limited.

github.com/pcrockett/kin-backu

@pcrock
If I'm understanding, you're wanting to do server side programming from the client side?

@pell
No server involved here. It's an html file on the local file system.

@pcrock
OK. I'm of the opinion that the browser shouldn't allow ANY access to the local file system from JavaScript.

@pell
Agreed for the most part. It's just annoying that there exists a good cross-platform runtime that is guaranteed to be present on virtually every operating system: the web browser. But we can't use it for serious local app development.

@pcrock
You can run a web server and not open it to the public. Aside from installing apache2, there's lighttpd, the XAMPP/WAMP/MAMP packages, and the simple ones that come with python or Node.js.

@wizzwizz4
No I haven't, thanks. So the only restriction would be that the data has to be small enough to fit in RAM. That's much less restrictive than data URIs. It would be nice if there were a very similar API that would allow streaming....
@pell

Sign in to participate in the conversation
Fosstodon

Fosstodon is a Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.