Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I came up with a bad way to share files. It's a website that takes a file, encodes it into a series of URL parameters, and then allows you to put them back together again. (it's really only practical for small text files)

https://podje.li/

https://github.com/willcipriano/Podje.li



This is really cool! How did you do the encoding though?


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 ;)




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: