A real-time news summarization app powered by Grok AI. Get concise summaries of the latest news across different topics with sentiment analysis.
- Real-time news summaries using Grok AI
- Sentiment analysis for each news article
- Overall sentiment tracking per topic
- Clean, modern UI with responsive design
- Built with Bun for optimal performance
- Automatic caching (1-hour cache duration)
- Frontend: Vanilla JavaScript with modern CSS
- Backend: Bun + TypeScript
- API: Grok AI for news summarization
- Caching: In-memory Map with 1-hour duration
- Cryptocurrency
- DeFi
- Artificial Intelligence
- Technology
- Startups
- Bun runtime installed
- Grok API key (see Environment Variables section)
- Clone the repository:
git clone https://github.com/yourusername/hacksum.git
cd hacksum
- Install dependencies:
bun install
- Configure environment variables:
cp .env.example .env
Then edit the .env
file to add your Grok API key.
- Run the server:
bun run index.ts
- Open your browser and navigate to
http://localhost:3000
The application uses the following environment variables:
GROK_API_KEY
: Your Grok AI API key (required)
These should be defined in a .env
file in the project root.
- Select a topic from the dropdown menu
- View real-time news summaries with sentiment analysis
- Click on any news item to read the full article (opens a Google search for the summary)
- Observe the overall sentiment indicator for the selected topic
- The app sends a request to the Grok AI API asking for news summaries on the selected topic
- Sentiment analysis is performed on each news item using keyword-based analysis
- Results are cached for 1 hour to optimize performance
- The UI displays each summary with a color-coded sentiment indicator
MIT