This is a script to allow API-based updating of the shortlinks/redirects in an IPFS-based shortlink repo (using val.town). I've written up how all this works on my blog at https://byjp.me/posts/link-shortener
https://esm.town/v/byjp/addShortlink
<script type="module" src="https://esm.town/v/byjp/addShortlink"></script>