Real-time, collaborative GPT frontend built with
Deno KV and
Fresh. Chat history is stored in Deno KV, and the
watch()
feature is
used to deliver updates to everyone in this workspace.
To run the app locally, you will need to install Deno 2.0+ and have the API key to an OpenAI-compatible service. Then run from the root of this repository:
export CHATSPACE_DEFAULT_BACKEND=myapi
export CHATSPACE_BACKEND_MYAPI=https://api.openai.com/v1,sk-xxxxxxxx,gpt-3.5-turbo-1106
export CHATSPACE_PASSWORD=your_password_here
deno task start
To deploy to Deno Deploy:
- Create a project on Deno Deploy
- Link your GitHub repository
- Update the project name in
.github/workflows/deploy.yml
- Push to main branch to trigger deployment