react-hn

React-powered Hacker News client

Github星跟踪图

react-hn

A React &
react-router-powered implementation of
Hacker News using its
Firebase API.

react-hn screenshot

Live version: https://react-hn.appspot.com/

Features

  • Supports display of all item types:
    stories,
    jobs,
    polls and
    comments
  • Basic user profiles
  • Collapsible comment threads, with child counts
  • "Realtime" updates (free via Firebase!)
  • Last visit details for stories are cached in localStorage
  • New comments are highlighted:
    • Comments since your last visit to an item
    • New comments which load while you're reading an item
    • New comments in collapsed threads
  • Automatic or manual collapsing of comment threads which don't contain any new
    comments
  • Stories with new comments are marked on list pages
  • Stories can be marked as read to remove highighting from new comments
  • "comments" sections driven by the Changed Items API
  • Story listing pages are cached in sessionStorage for quick back button usage
    and pagination in the same session
  • Configurable settings:
    • auto collapse - automatically collapse comment threads without new comments
      on page load
    • show reply links - show "reply" links to Hacker News
    • show dead - show items flagged as dead
    • show deleted - show comments flagged as deleted in threads
  • Delayed comment detection - so tense! Who will it be? What will they say?

Feature requests are welcome!

Building

Install dependencies:

npm install

npm scripts

  • npm start - start development server
  • npm run build - build into the public/ directory
  • npm run lint - lint src/
  • npm run lint:fix - lint src/ and auto-fix issues where possible
  • npm run precache - generates Service Worker in public/ directory

MIT Licensed

主要指标

概览
名称与所有者insin/react-hn
主编程语言JavaScript
编程语言JavaScript (语言数: 3)
平台
许可证Other
所有者活动
创建于2014-10-09 13:22:36
推送于2021-03-14 14:33:33
最后一次提交2020-03-14 00:26:21
发布数41
最新版本名称v1.7.1 (发布于 )
第一版名称v1.0 (发布于 )
用户参与
星数2.2k
关注者数53
派生数329
提交数282
已启用问题?
问题数57
打开的问题数22
拉请求数17
打开的拉请求数12
关闭的拉请求数18
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?