A tiny, build-free web app that turns a title and a URL into a ready-to-submit Hacker News link.
Live: https://hnlink.alexewerlof.com/ Source: https://github.com/alexewerlof/hnlink
You type a title and a URL, and the app gives you a link that opens the Hacker News submit page with both fields already filled in. Each field has a Paste button so you can pull the value straight from your clipboard.
You can copy the link in two forms:
| Output | What gets copied |
|---|---|
| Href | The plain link |
| Rich Text | A clickable "Share … on Hacker News" anchor |
Publishing a "Share on Hacker News" link in a blog post, newsletter, or README. If the item was already submitted, submitting it again counts as an upvote.
The idea came from reverse engineering the official Hacker News bookmarklet.
No analytics, no tracking, no cookies, no local storage, no backend requests. The whole app runs in your browser; the only network request it makes is fetching Vue from unpkg.
Plain JavaScript and HTML, with Vue 3 loaded from a CDN
as an ES module. No third-party dependencies and no build step: the Hacker News
link contract lives in lib.js and is covered by npm test, which uses Node's
built-in test runner (Node.js 20+).
https://github.com/alexewerlof/hnlink (MIT). Part of the code was originally developed with GitHub Copilot.
🇸🇪 Made in Sweden by Alex Ewerlöf