Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adhikasp/hackernews-ssr
Hacker News mirror, plain HTML
https://github.com/adhikasp/hackernews-ssr
hackernews hackernews-api ssr
Last synced: 9 days ago
JSON representation
Hacker News mirror, plain HTML
- Host: GitHub
- URL: https://github.com/adhikasp/hackernews-ssr
- Owner: adhikasp
- Created: 2023-01-23T14:22:41.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-30T19:35:28.000Z (almost 2 years ago)
- Last Synced: 2024-06-19T22:18:22.285Z (6 months ago)
- Topics: hackernews, hackernews-api, ssr
- Language: Go
- Homepage: https://hn.adhikasp.my.id
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Hackernews SSR
A Server Side Rendered (SSR) mirror of [Hacker News](https://news.ycombinator.com/).
Hosted in https://hn.adhikasp.my.id.
Database is fetched with [adhikasp/hackernews-scrape](https://github.com/adhikasp/hackernews-scrape).
## Analytics from access logs
Use [angle-grinder](https://github.com/rcoh/angle-grinder/) to analyze logs.
Get most active IP
```sh
cat access.log | agrind '* | json | count by ip'
```Get most popular story/item
```sh
cat access.log | agrind '* | json | where item_id != "" | count by item_id'
```Get latency
```sh
cat access.log | agrind '* | json | where !isNull(latency) | avg(latency), p50(latency), p95(latency) by path'
```