Skip to content
alexewerlofPublic

About

a tiny web application that takes a URL and title to generate a link that will directly take you to the Hacker News submit page

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Hacker News Link Generator

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

▶️ Try it

What it does

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

Use case

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.

Inspiration

The idea came from reverse engineering the official Hacker News bookmarklet.

Privacy

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.

Tech

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+).

Source

https://github.com/alexewerlof/hnlink (MIT). Part of the code was originally developed with GitHub Copilot.


🇸🇪 Made in Sweden by Alex Ewerlöf

About

a tiny web application that takes a URL and title to generate a link that will directly take you to the Hacker News submit page

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Contributors

Languages