A tool that aggregates trending topics from Hacker News and finds related discussions on Reddit to provide comprehensive trend summaries.
This tool:
- Opens Hacker News and finds the top post published today
- Searches Reddit for discussions related to that Hacker News post
- Identifies recent conversations and provides a summary of the discussions
- Node.js (v16 or higher recommended)
- A HyperBrowser API key (get your free key at hyperbrowser.ai)
- An OpenAI API key
- Clone this repository
git clone <repository-url>
cd Multipage-tool- Install dependencies
npm install- Create a
.envfile in the root directory with your API keys:
HYPERBROWSER_API_KEY=your_hyperbrowser_key_here
OPENAI_API_KEY=your_openai_key_here
Run the script with:
npx ts-node TrendSummary.tsThe tool uses HyperBrowser's AI agent capabilities to:
- Navigate to Hacker News and identify the top trending post
- Open a second browser page to search Reddit for related discussions
- Analyze and summarize the discussions to provide insights
@hyperbrowser/agent(v0.3.1) &@hyperbrowser/sdk(v0.48.1): For browser automation with AI@langchain/openai(v0.5.10): For AI-powered content analysisdotenv(v16.5.0): For environment variable managementzod: For schema validation