3 ms·
I built a very, very basic one of these a month ago to shorten a couple of unruly domains I had. Supports static and dynamic endpoints that you define. https:/
by somishere 4y ago
I built a very, very basic one of these a month ago to shorten a couple of unruly domains I had. Supports static and dynamic endpoints that you define.
https://thesom.au/gh/shorturl https://thesom.au/gh/shorturl
Intended to self host for free/minimal cost on CloudFlare, thus comes with built in analytics, BYO domain, etc.
- steventey 4y agoLove this, thanks for sharing!! Did you get to building out the analytics dashboard? Would love to check it out! :D
- somishere 4y agoNo dashboard, or web interface even - the idea is that you just use CF's worker analytics for usage stats. There's no storage / db sitting behind it, just a single file to deploy as a worker. Logical next step would be to hook it into KV and include a basic auth/admin API for editing routes and retrieving stats. But even that would add a bucket load of complexity to what is essentially 20-30 lines of obtuse logic currently. Definitely no plans to deploy as a service with custom domains and enterprise offerings :)