Hacker News new | past | comments | ask | show | jobs | submit login

Having written two apps that do this, I can confirm that it is an amazing technique, and criminally underutilized! My projects store and render entire pages from the URL and encrypt URLs (respectively):

https://github.com/jstrieb/urlpages

https://github.com/jstrieb/link-lock




Love it!

Have you thought about having a non-obfuscated pretty version?

In addition to this:

https://jstrieb.github.io/urlpages/editor/#eyJjc3MiOiJ3aG9tI...

Offer a pretty version like:

    https://jstrieb.github.io/urlpages/editor/#html...html-here.~css...body;background:red;~javascript...document.write('this-was-written-by-javascript.')


I appreciate the kind words!

Hadn't considered it originally because I was concerned about allowable characters in the URL, and jumped to base64 instead of leaning more heavily on the actual set of acceptable characters to make it readable.

In hindsight, this is a great thing to add to my next project that (inevitably) uses this technique, thanks!




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: