ChatHN is an open-source chatbot that lets users explore Hacker News through natural-language questions. It connects an OpenAI model to the official Hacker News API through function calling, allowing the model to retrieve live structured data when needed. Built-in functions can fetch top stories, open a specific story, include leading comments, and prepare the current top discussion for summarization. Responses are streamed through the Vercel AI SDK so the interface can display generated text progressively. The application uses Next.js for the web framework and Tailwind CSS for presentation. It can be run locally with an OpenAI API key or deployed to Vercel through a streamlined setup. ChatHN demonstrates how tool-enabled language models can turn a conventional public API into a conversational research interface.
Features
- Natural-language Hacker News exploration
- Live top-story retrieval
- Story and comment fetching
- AI-generated discussion summaries
- Streaming conversational responses
- Local and one-click Vercel deployment