Skip to content

An alternative frontend for Hacker News in Next.js

Notifications You must be signed in to change notification settings

Naught0/slackernews

Repository files navigation

slackernews

an alternative frontend to hackernews.

Features:

  • Voting
  • Sorting
  • Filtering
  • User page
  • Search
  • Dark/light mode
  • Homepages
    • new
    • past
    • comments
    • ask
    • show
    • jobs
  • Scroll position determines which comment anchors you can jump to
    • e.g. if the scroll idx is 0 and you scroll to idx 20, the down button should take you to 21
  • Persistent settings (Cookies?)
    • Ability to toggle on/off HN link replacement

TODO:

  • Redirect comment IDs used on on /post route to /comment page instead
  • Validate a comment belongs to a post so that a comment cannot be displayed under an unrelated post
  • Investigate race condition between scroll restore and collapsible component reading session storage for initial state