Skip to content

TheArcus02/Better-GPT

Repository files navigation

BetterGPT is an open source SaaS application developed in Next.js. BetterGPT interconnects various AI tools such as LLM's or stable-diffiusion models in one app enchancing those tools with user-friendly UI and additional features.

BetterGPT

Tech Stack

Features to be implemented

  • Authentication with Clerk
  • Database on MongoDB
  • ORM using PrismaDB
  • Validation with Zod
  • Open AI streaming responses with Vercel AI SDK
  • Image generation with OpenAI API and upload to Cloudinary
  • User subscriptions with Stripe
  • State management with Zustand
  • Assistnats API from OpenAI
  • External tools integration with Langchain
  • Youtube videos summarization tool
  • Chat with provided files tool

Running Locally

  1. Clone the repository

    git clone https://github.com/TheArcus02/Better-GPT.git
  2. Install dependencies using pnpm

    npm install
  3. Copy the .env.example to .env and update the variables.

    cp .env.example .env
  4. Start the development server

    npm run dev
  5. Push the database schema

    npx prisma generate
    npx prisma migrate
  6. Start the Stripe webhook listener

    npm run stripe:listen

How do I deploy this?

Follow the deployment guides for Vercel for more information.

Contributing

Contributions are welcome! Please open an issue if you have any questions or suggestions. Your contributions will be acknowledged.

License

Licensed under the MIT License. Check the LICENSE file for details.