Skip to content

zero456/chatspace

 
 

Repository files navigation

Chatspace

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.

screenshot

Running locally

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

Deployment

To deploy to Deno Deploy:

  1. Create a project on Deno Deploy
  2. Link your GitHub repository
  3. Update the project name in .github/workflows/deploy.yml
  4. Push to main branch to trigger deployment

About

Real-time, collaborative GPT frontend built with Deno KV

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.9%
  • CSS 0.1%