Back to Templates

Introduction
ChatHN is an open-source AI chatbot that uses OpenAI Functions and the Vercel AI SDK to interact with the Hacker News API with natural language.
https://github.com/steven-tey/chathn/assets/28986134/9c0ad554-f4e5-4e98-8771-5999ddf79235
Deploy your own
You can deploy your own version of ChatHN with 1-click:
Setting Up Locally
To set up ChatHN locally, you'll need to clone the repository and set up the following environment variables:
OPENAI_API_KEY
– your OpenAI API key (you can get one here)
Tech Stack
ChatH is built on the following stack:
- Next.js – framework
- OpenAI Functions - AI completions
- Vercel AI SDK – AI streaming library
- Vercel – deployments
- TailwindCSS – styles
Contributing
Here's how you can contribute:
- Open an issue if you believe you've encountered a bug.
- Make a pull request to add new features/make quality-of-life improvements/fix bugs.
Author
- Steven Tey (@steventey)
License
Licensed under the MIT license.
Related Templates
ChatGPT Plugin Starter: WeatherGPT
The ultimate ChatGPT Plugin starter template. WeatherGPT is a ChatGPT Plugin to get the weather of any given location.

Novel – AI-powered Notion-style editor
A Notion-style WYSYWIG editor with AI-powered autocompletions, built with Tiptap, OpenAI, and Vercel AI SDK.

Next.js AI Chatbot
A full-featured, hackable Next.js AI chatbot built by Vercel
