build a dashboard that showcase various trending topics from reddit and hackernews. based on today, 7 days, month etc.... also under each topic show various updates.... also show a graph with trends...
Jul 13, 10:05am
To build a Reddit and Hacker News trending topics dashboard with time-based filtering (today, 7 days, month) and trend graphs, we can create a React-based dashboard using:
APIs: Reddit (/r/all, /r/popular) and Hacker News (Firebase API).
Charts: Recharts for trend visualization.
UI: Tailwind CSS for styling, shadcn/ui for components.
Dashboard Features
Time Filters: Today, 7 days, 1 month.
Trending Topics: Fetched from Reddit and Hacker News.
Updates per Topic: Show posts/updates under each topic.
Trend Graph: Line/bar chart for topic popularity over time.
Implementation Plan
API Integration:
Reddit: Use https://www.reddit.com/r/all.json (or /r/popular.json) with t (time) parameter.
Hacker News: Use https://hacker-news.firebaseio.com/v0/topstories.json and fetch item details.
Data Processing:
Aggregate posts by topic, count mentions, and track trends over time.
UI Components:
Time filter dropdown.
Topic cards with updates.
Trend graph (Recharts).
Let’s Build the Dashboard
I’ll create a React + Tailwind + Recharts dashboard. You can edit and iterate on this.