Hacker News new | ask | show | jobs
by jeremiecoullon 2190 days ago
This is really cool! How did you do the encoding though?
1 comments

Thank you! Most of the heavy lifting is done by the lz-string library[0], the compression works well for small text files, sometimes the URL out will be shorter than the input in that case. Things like images work out to be hundreds of URLs unfortunately.

[0]https://pieroxy.net/blog/pages/lz-string/index.html

Cool! Yeah I tried a pdf and it generated a bunch of URLs ;)