Skip to content

adhikasp/hackernews-ssr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackernews SSR

A Server Side Rendered (SSR) mirror of Hacker News.

Hosted in https://hn.adhikasp.my.id.

Database is fetched with adhikasp/hackernews-scrape.

Analytics from access logs

Use angle-grinder to analyze logs.

Get most active IP

cat access.log | agrind '* | json | count by ip'

Get most popular story/item

cat access.log | agrind '* | json | where item_id != "" | count by item_id'

Get latency

cat access.log | agrind '* | json | where !isNull(latency) | avg(latency), p50(latency), p95(latency) by path'