Readit News logoReadit News
ftr1200 commented on Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript   github.com/casparwylie/ca... · Posted by u/ftr1200
ssriram · 5 months ago
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.

ftr1200 · 5 months ago
v1.0.1 now has offline import/export

https://github.com/casparwylie/cascii-core

ftr1200 commented on Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript   github.com/casparwylie/ca... · Posted by u/ftr1200
theanonymousone · 5 months ago
Nice job. Thanks! Also very interesting to have it "distributed" in one html file. Sometimes people forget simple ways to do stuff :)

Is is possible to import and edit diagrams after they have been created?

ftr1200 · 5 months ago
v1.0.1 now has offline import/export

https://github.com/casparwylie/cascii-core

ftr1200 commented on Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript   github.com/casparwylie/ca... · Posted by u/ftr1200
bambax · 5 months ago
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.

ftr1200 · 5 months ago
v1.0.1 now has offline import/export

https://github.com/casparwylie/cascii-core

ftr1200 commented on Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript   github.com/casparwylie/ca... · Posted by u/ftr1200
dimenoz · 5 months ago
Makes sense. Thank you for making and sharing this.
ftr1200 · 5 months ago
v1.0.1 now has offline import/export

https://github.com/casparwylie/cascii-core

ftr1200 commented on Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript   github.com/casparwylie/ca... · Posted by u/ftr1200
harvie · 5 months ago
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?

ftr1200 · 5 months ago
v1.0.1 now has offline import/export

https://github.com/casparwylie/cascii-core

ftr1200 commented on Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript   github.com/casparwylie/ca... · Posted by u/ftr1200
ftr1200 · 5 months ago
Version 1.0.1 now has offline base64 import / export so you can permanently save drawings offline.
ftr1200 commented on Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript   github.com/casparwylie/ca... · Posted by u/ftr1200
harvie · 5 months ago
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?

ftr1200 · 5 months ago
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.

ftr1200 commented on Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript   github.com/casparwylie/ca... · Posted by u/ftr1200
smusamashah · 5 months ago
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.

Also, can you let me open it on the phone with a warning/recommendation to look at github instead of redirecting to it.

ftr1200 · 5 months ago
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!
ftr1200 commented on Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript   github.com/casparwylie/ca... · Posted by u/ftr1200
bambax · 5 months ago
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.

ftr1200 · 5 months ago
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 :)
ftr1200 commented on Show HN: Cascii – A portable ASCII diagram builder written in vanilla JavaScript   github.com/casparwylie/ca... · Posted by u/ftr1200
wiseowise · 5 months ago
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.
ftr1200 · 5 months ago
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.

u/ftr1200

KarmaCake day83February 28, 2025View Original