chatgpt-messenger Tailwind Templates

Chatgpt Messenger

ChatGPT Messenger using NextJS, Typescript, Open AI API, Tailwind CSS and Google Authentication using next-auth

ChatGPT Messenger:

Inspired by https://chat.openai.com/

Build Stack:

  • NextJS 13 with SWR
  • Next Auth (to login with google)
  • TypeScript
  • OpenAi API 3.2.1
  • Firebase / Firebase Admin (to implement CRUD operations from user and server end)
  • Tailwind CSS
  • React Hot Toast
  • React Select (to load all the models provided by OpenAi API)
  • Hero Icons

CLICK HERE to see the app hosted on Vercel.

Flow

  • Login with google
  • Click 'New Chat' to open a new chat
  • From the drop down select, choose the open ai model that you want to chat with, and type your question
  • After you ask the question, it is saved in firebase database and then it is pushed to the openai api using custom nextjs api endpoint
  • Upon getting the result its saved using firebase admin service and then pushed to the frontend, where you can see it
  • ALL THE CHATS CAN BE DELETED BY THE USER BY CLICKING ON THE 'BIN' ICON ADJACENT TO EVERY NEW CHAT

App Screenshots

Screenshot 2023-04-17 at 2 32 26 PM Screenshot 2023-04-17 at 2 56 24 PM Screenshot 2023-04-17 at 2 56 48 PM Screenshot 2023-04-17 at 3 05 26 PM

Top categories

Loading Svelte Themes