Coder Social home page Coder Social logo

mattelim / gpt-intercept-chatrooms Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 430 KB

Simple chatrooms that are "moderated" by GPT-powered characters

License: MIT License

HTML 4.55% JavaScript 36.32% Svelte 58.14% CSS 0.98%
chatgpt express fullstack nodejs openai socket-io svelte vite

gpt-intercept-chatrooms's Introduction

GPT Intercept Chatrooms

Description

Chatrooms that are "moderated" by characters that you can define. Whenever any user sends a message, they will see their message as they have sent it, but the receiver will get a message that has been "moderated". The "moderators" are powered by the OpenAI API and can be set ahead of time.

Tech Stack

  • Nodejs + Express
  • Socket.io
  • Svelte + Tailwind + DaisyUI
  • OpenAI API

Instructions

Make sure to have nodejs and npm installed on your computer. I recommend using VSCode to work on the project.

To get started on the project, open the project folder in VSCode, then open 2 terminal tabs. Using one of the terminals, change the directory to "ci-client" by typing cd ci-client on your shell/terminal.

Install dependencies on both directories:

npm install

Set up environment variables:

  • Make sure to edit ".env.sample" by copying and pasting your OPENAI_API_KEY. Save the file as ".env"

To change the "moderators", edit the ci-client/src/stores.js file and update the relevant images in the ci-client/public folder.

Development

To run the frontend dev server (on ci-client folder terminal):

npm run buildwatch

To run the backend dev server (on main folder terminal):

npm run dev

Deployment

To create a final build of the frontend (on ci-client folder terminal):

npm run build

To run the backend production server (on main folder terminal):

npm run start

gpt-intercept-chatrooms's People

Contributors

mattelim avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.