Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/steven-tey/chathn

Chat with Hacker News using natural language. Built with OpenAI Functions and Vercel AI SDK.
https://github.com/steven-tey/chathn

ai ai-sdk edge-functions hacker-news nextjs openai openai-functions streaming vercel

Last synced: 6 days ago
JSON representation

Chat with Hacker News using natural language. Built with OpenAI Functions and Vercel AI SDK.

Awesome Lists containing this project

README

        


Chat with Hacker News using natural language.

ChatHN



Chat with Hacker News using natural language. Built with OpenAI Functions and Vercel AI SDK.


Hacker News

License

ChatHN's GitHub repo


Introduction ·
Deploy Your Own ·
Setting Up Locally ·
Tech Stack ·
Contributing ·
License



## Introduction

ChatHN is an open-source AI chatbot that uses [OpenAI Functions](https://platform.openai.com/docs/guides/gpt/function-calling) and the [Vercel AI SDK](https://sdk.vercel.ai/docs) to interact with the [Hacker News API](https://github.com/HackerNews/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:

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?demo-title=ChatHN%20%E2%80%93%20Chat%20with%20Hacker%20News&demo-description=AI%20chatbot%20that%20uses%20OpenAI%20Functions%20and%20Vercel%20AI%20SDK%20to%20interact%20with%20the%20Hacker%20News%20API%20with%20natural%20language.&demo-url=https%3A%2F%2Fchathn.vercel.app%2F&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F2lviJwxaFNmmqdNynfoUvi%2Fbc4eee4291e05f34c8e3691b3bd5d48d%2FCleanShot_2023-06-25_at_12.47.17.png&project-name=ChatHN%20%E2%80%93%20Chat%20with%20Hacker%20News&repository-name=chathn&repository-url=https%3A%2F%2Fgithub.com%2Fsteven-tey%2Fchathn&from=templates&skippable-integrations=1&env=OPENAI_API_KEY&envDescription=Get%20your%20OpenAI%20API%20key%20here%3A&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys)

## 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](https://platform.openai.com/account/api-keys))

## Tech Stack

ChatH is built on the following stack:

- [Next.js](https://nextjs.org/) – framework
- [OpenAI Functions](https://platform.openai.com/docs/guides/gpt/function-calling) - AI completions
- [Vercel AI SDK](https://sdk.vercel.ai/docs) – AI streaming library
- [Vercel](https://vercel.com) – deployments
- [TailwindCSS](https://tailwindcss.com/) – styles

## Contributing

Here's how you can contribute:

- [Open an issue](https://github.com/steven-tey/chathn/issues) if you believe you've encountered a bug.
- Make a [pull request](https://github.com/steven-tey/chathn/pull) to add new features/make quality-of-life improvements/fix bugs.

## Author

- Steven Tey ([@steventey](https://twitter.com/steventey))

## License

Licensed under the [MIT license](https://github.com/steven-tey/chathn/blob/main/LICENSE.md).