Live data from Hacker News

Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript

github.com

31–40 of 54 posts

Re: Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript

#32

Any chance you can write a blogpost about development of cascii? It looks impressive and it would be nice to take a sneak peek behind your thought process.

Yeah I'd like to talk about going back to basics with single-HTML / vanilla JS. It was a great experience, though admittedly controversial and I was expecting more people to be anti it.

Re: Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript

#35
post #34

Wow. This is absolutely fantastic! Great work! Congrats! Do you know if there would be a way (in the future) to export existing image diagrams to this format / will there be an API. It would be very cool for archival purposes.

It really depends how much demand there is. It's a great next step but a lot of work - I was thinking about training a neural net to parse images / 3rd party diagrams into Cascii, but right now I need a break from my screen for a few weeks :)

Re: Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript

#37

This looks awesome. The way you are dragging things around and the diagonal lines is amazing. Don't think asciiflow or the other one or two tools do this. Since you are providing a single portable html file (which almost no one does that these days sadly) you may be interested in how sequencediagrams.org handles this. They don't offer sign up, instead have localStorage, Google drive, file export and few other ways. A…

Bit of a nightmare getting this elegant enough on a phone, and doubt anyone wants to draw ASCII digrams on their phone anyway, so not really a priority!

Re: Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript

#38
post #14
post #9

Earlier quoted context omitted.

Glad you asked. Have you checked the online version https://cascii.app There, all exported drawings come with a short link. This is so that months later anyone reading / seeing can edit their own copy online / keep it up to date. You can also create an account to manage your own drawings. Side note - when you use real pasting, it will not remember meaningful information (that's very hard to do elegantly). In your exa…

Hi, great app. I'd love to understand how you are maintaining state behind that short url and see if there are ways (sans server) to at least partially recreate state from the exported ascii. Having an Import from clipboard would truly make this a remarkable app.

Exactly. Make it importable and i am sold.

Maybe base64 encoded metadata under the diagram? Maybe encode in non-printable characters?

Maybe just use non-printable characters to hint where the corners of objects are?

Re: Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript

#39
post #38
post #14

Earlier quoted context omitted.

Hi, great app. I'd love to understand how you are maintaining state behind that short url and see if there are ways (sans server) to at least partially recreate state from the exported ascii. Having an Import from clipboard would truly make this a remarkable app.

Exactly. Make it importable and i am sold. Maybe base64 encoded metadata under the diagram? Maybe encode in non-printable characters? Maybe just use non-printable characters to hint where the corners of objects are?

I have thought about this a lot. I was going to do some stuff with gzip, but fundementally, I came to the conclusion that the most elegant solution (no hidden chars / extra encoded data coupled with export) might actually be training a neural net to do it. Also, this would mean being able to import diagrams that weren't even made on Cascii. Training data can be self-generated too.

Perhaps a good middle ground would just be offering the gzip dump.

Post reply on HN