honzaap / Systemizer

A system design tool that allows you to simulate data flow of distributed systems.
https://honzaap.github.io/Systemizer/
GNU General Public License v3.0
1.38k stars 90 forks source link

Feature request: ability to share design using the URL #56

Open blakek opened 3 years ago

blakek commented 3 years ago

First, thanks for this tool! I've used it several times in the last month to help think through things.

Currently, you can send someone an exported file and they can import it. I'd like to also share a system using only the URL. For example, the TypeScript Playground uses a compressed and Base64 encoded string:

https://www.typescriptlang.org/play?#code/MYewdgzgLgBAhmAogDzgWwA4BsCmA1OAJwEs4AjXGAXhgCIAJHLLEGAdREKwBMBCWgFChIIXADoWAcwAUCFOmz4ipCjgCUAmDCA

I figured this is likely the same state that's exported in "File > Save file", but encoded and placed in the URL.

EDIT: There's the "Embed as IFrame" option with the URL like what I'm looking for. I guess this issue is to make the URL easier to access without the iframe markup.

honzaap commented 3 years ago

Yeah I though about this many many times... I'm aware that the URL you get from IFrame embedding is a mess. However I've tried many things to make it smaller but managed to get it only to this... There is no backend for this application so I guess for no the only way is using the url to edit embedded system.