A lightweight userscript that embeds Hacker News discussions into a sidebar on any article page.

Stars

173

7-day growth

No data

Forks

6

Open issues

9

License

MIT

Last updated

2026-07-29

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It seamlessly integrates HN community commentary into the reading experience without leaving the page, leveraging both the HN API and Algolia search API.

Who it is for

  • Frequent readers of tech articles who value HN discussions
  • Hacker News power users
  • Users looking to enhance browsing with community context
  • Web developers interested in userscript examples

Use cases

  • Check HN comments while reading an article without switching tabs
  • Discover if an article has been discussed on HN
  • Browse collapsible comment threads alongside the original content
  • Follow direct reply links to participate in HN discussions

Strengths

  • Minimal dependencies (only a userscript manager required)
  • Resizable and collapsible sidebar for flexible reading
  • Automatic detection of matching HN stories via Algolia search
  • Open-source MIT license encouraging adoption and modification

Considerations

  • Requires a userscript manager (Tampermonkey, Violentmonkey, or Userscripts) to run
  • Depends on external APIs (HN and Algolia) that may change or have rate limits
  • Only works when a matching HN story exists for the current article

README quick start

HNewhere

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

HNewhere detects Hacker News stories, loads comments into a sidebar, and lets you browse discussions without leaving the page.

Features

  • Opens HN discussions beside articles
  • Automatically detects matching Hacker News stories
  • Tracks links opened from Hacker News
  • Resizable sidebar
  • Collapsible comments
  • Preserves sidebar width
  • Reply links open directly to HN

Install

  1. Install a userscript manager:

    • Userscripts (Safari)
    • Tampermonkey
    • Violentmonkey
  2. Install or paste HNewhere.js

  3. Visit an article with a Hacker News discussion.

Requirements

  • Browser with userscript support
  • Access to:
    • Hacker News API
    • HN Algolia search API

License

MIT

Description

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

Related repositories

Similar projects matched by category, topics, and programming language.

react
Featured
react GitHub avatar

react

React is a JavaScript library for building user interfaces with declarative, component-based, and cross-platform design.

Web DevelopmentFrontend Frameworks
246,741
tandpfun
Featured
tandpfun GitHub avatar

wardrobe

A GPT‑image powered app that extracts individual garment cutouts from photos, organizes them into a digital wardrobe, and generates modeled outfit previews.

JavaScript
1,570
mshumer
Featured
mshumer GitHub avatar

Claude-of-Duty

A browser-based first-person shooter built entirely with procedural generation and orchestrated AI agents, featuring 55k lines of Three.js/WebGL2 code and no art assets.

AI & Machine LearningAI Agents
1,234