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.
- Framework: Next.js
- Styling: Tailwind CSS
- User Management: Clerk
- Form validation: Zod
- ORM: PrismaDB
- UI Components: shadcn/ui
- State management: Zustand
- Streaming responses: Vercel AI SDK
- Image Uploads: Cloudinary
- Payments infrastructure: Stripe
- AI SDK: Vercel AI SDK
- LLM Framework: Langchain
- AI API: OpenAI
- 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
-
Clone the repository
git clone https://github.com/TheArcus02/Better-GPT.git
-
Install dependencies using pnpm
npm install
-
Copy the
.env.example
to.env
and update the variables.cp .env.example .env
-
Start the development server
npm run dev
-
Push the database schema
npx prisma generate npx prisma migrate
-
Start the Stripe webhook listener
npm run stripe:listen
Follow the deployment guides for Vercel for more information.
Contributions are welcome! Please open an issue if you have any questions or suggestions. Your contributions will be acknowledged.
Licensed under the MIT License. Check the LICENSE file for details.