TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Yo.link – Subdomain based URL shortener

7 点作者 timz将近 2 年前
I was looking for a pet project to try out recent additions to <a href="https:&#x2F;&#x2F;vercel.com" rel="nofollow">https:&#x2F;&#x2F;vercel.com</a> platform, specifically their PostreSQL and Redis offering. They also provide easy to setup wildcard subdomain HTTPS certificates, and since I had yo.link domain lying around for a while, why not use it to create, yes, yet another, URL shortening service, but with a twist...<p>Putting the user-selectable short-code in the subdomain has the advantage that it is the first thing that users read in a URL, and as such it is an opportunity to provide some contextual information about the link.<p>Here are some examples:<p><a href="https:&#x2F;&#x2F;svelte4.yo.link" rel="nofollow">https:&#x2F;&#x2F;svelte4.yo.link</a> --&gt; <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=AOXq89h8saI">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=AOXq89h8saI</a><p><a href="https:&#x2F;&#x2F;hn.yo.link" rel="nofollow">https:&#x2F;&#x2F;hn.yo.link</a> --&gt; <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;</a><p><a href="https:&#x2F;&#x2F;longest-url-ever.yo.link" rel="nofollow">https:&#x2F;&#x2F;longest-url-ever.yo.link</a> --&gt; <a href="https:&#x2F;&#x2F;llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch.co.uk&#x2F;" rel="nofollow">https:&#x2F;&#x2F;llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogo...</a><p>I couldn&#x27;t find any other shorteners that use this approach, hence wanted to build one.<p>Redis is great for counting realtime clicks, sliced by hour, day, month, country&#x2F;city and user browser. PostgreSQL is used as master DB to host the short-code destination-link mapping, and for user management.<p>I plan to add some extra features, like: - tagging the links so it is easy to search and categorise. - password protect the links. - separate analytics for QR code visits.<p>Please let me know what you think. Any ideas, suggestions or critic is very welcome. If you are interested in collaborating on such a project, please let me know (support@yo.link)

1 comment

KomoD将近 2 年前
I&#x27;d try it but the only options are social sign-in, which I am not giving to a random website
评论 #36292286 未加载