https://github.com/epreston/chitchat
ChatGPT Chatbot Experiment
https://github.com/epreston/chitchat
chatbot openai-chatgpt
Last synced: 4 months ago
JSON representation
ChatGPT Chatbot Experiment
- Host: GitHub
- URL: https://github.com/epreston/chitchat
- Owner: epreston
- License: mit
- Created: 2023-07-18T16:02:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2026-03-03T12:35:22.000Z (4 months ago)
- Last Synced: 2026-03-03T16:12:46.674Z (4 months ago)
- Topics: chatbot, openai-chatgpt
- Language: JavaScript
- Homepage:
- Size: 402 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# ChitChat
ChatGPT Chatbot Experiments with OpenAI's public API.

[![CI][ci-badge]][ci-url]
## Setup
Install [Node.js](https://nodejs.org/en/download/) and create an [OpenAI API key](https://platform.openai.com/account/api-keys).
Create a file named `.env` in the root directory with the following contents:
```sh
OPENAI_API_KEY=YOURKEY
```
Validate the API key and configuration using the CLI:
```bash
# install dependencies
npm install
# start the cli
npm run start
```
## Scripts
| Action | Command | Description |
| ------ | ---------------- | ------------------------------ |
| start | `npm run start` | CLI ChatGPT Chatbot Experiment |
| lint | `npm run lint` | Run static code analysis |
| format | `npm run format` | Format source files |
## Libraries
| Library | Reference |
| ------------- | -------------------------------------------- |
| openai | https://github.com/openai/openai-node |
| dotenv | https://github.com/motdotla/dotenv |
| picocolors | https://github.com/alexeyraspopov/picocolors |
| readline-sync | https://github.com/anseki/readline-sync |
## Tools
| Item | Reference |
| ------------ | ------------------------ |
| Node.js | https://nodejs.org |
| ESLint | https://eslint.org |
| Prettier | https://prettier.io |
| EditorConfig | https://editorconfig.org |
## References
| Item | Reference |
| ----------- | ------------------------------------- |
| OpenAI | https://openai.com |
| OpenAI Node | https://github.com/openai/openai-node |
## License
This project is released under the MIT [License](LICENSE).
[ci-badge]: https://github.com/epreston/chitchat/actions/workflows/ci.yml/badge.svg
[ci-url]: https://github.com/epreston/chitchat/actions