Live data from Hacker News

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

github.com

1–10 of 54 posts

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

#1
3 months ago I wanted to draw an ASCII diagram to include in some documentation at work. I found the few tools online to be insufficient, and was suprised there wasn't a more complete tool to get the job done.

Since, I've built Cascii from scratch in vanilla Javascript (I'm not an FE dev, it might be obvious...).

I hope it works alright. Please check out the live version at https://cascii.app, report problems, make diagrams to improve your code's documentation. Hope you enjoy using it.

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

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

#4
Very cool, thanks.

One of the saddest days at my current job: when the company I’m contracted to stopped offering Excalidraw in favor of Lucid. I mostly understand the rationale, but the dramatic difference in friction basically shut down all interest I had in using diagrams to help communicate with my team members.

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

#5
post #4

Very cool, thanks. One of the saddest days at my current job: when the company I’m contracted to stopped offering Excalidraw in favor of Lucid. I mostly understand the rationale, but the dramatic difference in friction basically shut down all interest I had in using diagrams to help communicate with my team members.

A co-worker recently showed me this. It seems really good. If they did ASCII diagrams I'd probably have never made this project!

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

#8
This is fantastic. I've always used JavE before but this being a single HTML file is a big+ and packs quite a punch. Kudos to the author!

One question though, how do edit the content later? For example I generated a few diagrams one at a time and pasted those in a local plain text file. Later when I want to edit a particular diagram/part, I tried copy pasted it in, but always got "cannot paste, content leaves canvas" error. If I tried copy-pasting a really small section (e.g. 3x3 table), it pasted it right in the center. Anyway, not sure if that's an intended work flow or not. Great job regardless.

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

#9
post #8

This is fantastic. I've always used JavE before but this being a single HTML file is a big+ and packs quite a punch. Kudos to the author! One question though, how do edit the content later? For example I generated a few diagrams one at a time and pasted those in a local plain text file. Later when I want to edit a particular diagram/part, I tried copy pasted it in, but always got "cannot paste, content leaves canvas"…

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 example, I'm guessing that 3x3 table you pasted in could not be properly edited like a table again. Hence, use short links so that Cascii remembers state.

Post reply on HN