3 ms·
I’ve done this for a website, but when you’re pasting a really long link and texting to a friend, it can get a little frustrating, since it eats the entire chat
by catchmeifyoucan 6y ago
I’ve done this for a website, but when you’re pasting a really long link and texting to a friend, it can get a little frustrating, since it eats the entire chat window.
- bko 6y agoGood point, maybe leverage a link shortener built into the app?
- catchmeifyoucan 6y agoYup, but you’d still need a database since you need to store that lookup somewhere from long URL to short url.
- robotwizard 6y agoWhat about using an IPFS key and using js-ipfs to look it up?
- catchmeifyoucan 6y agoIf I'm not mistaken. I think IPFS keys might also be too long. Since a shortcode is only 6 chars long. Here's the website[1] I built with base64 encoding to share weblinks. I've been trying to think of a non-db approach, but haven't found one yet for link shortening. [1] http://share.getamna.com http://share.getamna.com