josdejong / svelte-jsoneditor

A web-based tool to view, edit, format, repair, query, transform, and validate JSON
https://jsoneditoronline.org
Other
820 stars 108 forks source link

How to use the web application offline? #217

Closed mariomadproductions closed 1 year ago

mariomadproductions commented 1 year ago

I'd like to use this fully offline (not relying on the "install this website" feature of chrome), but I don't want to install npm. Is there a way I can do this?

josdejong commented 1 year ago

Are you referring to the web application https://jsoneditoronline.org? This website is offline available by default. After you've opened it once, you can just open it again when you're offline in any browser.

mariomadproductions commented 1 year ago

Ah yeah, the web app. I'm wondering if there's a way I can just have the html and its resources in a folder, and run it like that.

josdejong commented 1 year ago

That's not supported, sorry. Maybe some day I can see whether I can provide a Desktop application via Electron for example.

What is the reason that you need the application offline? (isn't the offline support in the browser enough?)

mariomadproductions commented 1 year ago

Basically I want it to be fully self-contained.

josdejong commented 1 year ago

Ok and can you explain why do you wan that?

(I can understand wanting to be able to use the app without internet - but that's covered already)

mariomadproductions commented 1 year ago

Basically I'm not sure how persistent the chrome apps are, and I'd like to be able to make sure the code doesn't make any internet connections for privacy/security.

josdejong commented 1 year ago

Clear, that's a valid concern. Roughly: the web application stays offline available as long as you don't clear your browser data. It's indeed not an absolute guarantee.

If there is much demand for a desktop application I can consider it, please drop a message here then.

mariomadproductions commented 1 year ago

I think I'll look more into how the progressive web app/chrome "install app" options work a bit more. Maybe there's a way to copy the data it stores into a standalone folder. But thanks for the offer.

josdejong commented 1 year ago

👍 I'll close this issue now and turn it into a discussion. Thanks for your input!