HNewhere logo

HNewhere

A lightweight userscript that adds Hacker News discussions to any previously submitted article.

Hacker NewsDeveloper ToolsUserscriptJavaScriptMIT 203 7Health 73
GitHub

What is it?

What it is

A lightweight userscript that integrates Hacker News discussions directly into any article via a sidebar.

Why it exists

To allow users to browse, read, and interact with Hacker News comments and replies without leaving the current article page.

Who should use it

Anyone who reads articles online and wants to see associated Hacker News discussions without leaving the page, especially tech enthusiasts, developers, and HN readers.

Who should avoid it

Users who dislike userscripts, have strict privacy/security policies, or primarily visit sites where the script could interfere (e.g., banking, internal tools).

How it works

A quick walkthrough in plain English

How HNewhere works

Step 1 of 3

You interact with it

Open HNewhere, send a request, or connect it to your stack.

Features

Automatic Hacker News discussion detection
In-page sidebar for comment browsing
Quote-linked article annotations
Discussion heat visualization for passages
Clickable article highlights and underlines
Direct-match navigator and pull-quote summary
In-sidebar commenting and replying
Submit current page to Hacker News
Customizable UI themes (matches page or light/dark)
Adjustable and draggable floating HN button
Resizable sidebar with saved width
Collapsible comment threads with saved state
New comment highlighting
Voting functionality within the sidebar
Site-specific visibility management

Advantages

  • Lightweight single-file implementation with no dependencies
  • Seamless browsing experience without leaving the current article
  • High level of UI customization (button shape, size, and theme)
  • Smart exclusion of sensitive sites like banking or auth flows
  • Enhanced context through visual heatmaps and annotations

Disadvantages

  • Requires a userscript manager extension
  • Requires access to Hacker News and Algolia APIs
  • Functionality is limited to sites with matching Hacker News discussions

Installation

cloud

n/a

docker

n/a

native

1. Install a userscript manager (Tampermonkey, Violentmonkey, or Userscripts for Safari).
2. Install HNewhere via the provided link: https://raw.githubusercontent.com/twalichiewicz/HNewhere/refs/heads/main/HNewhere.user.js

compose

n/a

FAQ

How do I install HNewhere?

First install a userscript manager such as Tampermonkey, Violentmonkey, or the Userscripts extension for Safari. Then click the raw script link to install HNewhere: https://raw.githubusercontent.com/twalichiewicz/HNewhere/refs/heads/main/HNewhere.user.js. After installation, visit any article that has a Hacker News discussion and the script will activate.

What does HNewhere do when I visit an article?

HNewhere automatically detects if there is a matching Hacker News story for the page, loads the comments into a sidebar, and lets you browse the discussion without leaving the article. It also adds quote‑linked annotations, discussion heat highlights, and clickable cited text that jumps back to the article.

Can I interact with Hacker News from the sidebar?

Yes. You can vote on stories and comments, reply to comments using HN’s formatting rules, and even submit the current page to Hacker News when no discussion exists yet. All interactions happen inside the sidebar.

What are the requirements for HNewhere to work?

You need a browser that supports userscripts (via Tampermonkey, Violentmonkey, Userscripts, etc.) and the script must be able to reach the Hacker News API and the HN Algolia search API.

Is HNewhere open source and how can I contribute?

HNewhere is released under the MIT license. Contributions are welcome: report bugs or open pull requests. Since it’s a single‑file userscript with no build step, you can edit HNewhere.user.js directly, test it in your userscript manager, and submit changes.

Loading documentation…
View on GitHub

Featured in Videos

YouTube tutorials and walkthroughs for HNewhere

Alternatives

Similar projects ranked by category, topics, and text overlap.

Compare
HNewhere | MushyBook