https://github.com/miljan-code/gpt-writer
AI copywriting tool built with Next.JS and GPT
https://github.com/miljan-code/gpt-writer
Last synced: 11 months ago
JSON representation
AI copywriting tool built with Next.JS and GPT
- Host: GitHub
- URL: https://github.com/miljan-code/gpt-writer
- Owner: miljan-code
- Created: 2023-06-29T07:53:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-07T15:50:19.000Z (over 1 year ago)
- Last Synced: 2025-06-22T03:02:35.009Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 3.7 MB
- Stars: 8
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GPT Writer - Modern Fullstack SaaS application
GPT Writer is a Software as a Service (SaaS) project leveraging OpenAI's GPT-3.5 API to provide users with a suite of valuable services, including grammar checking, text summarization, article writing, and paraphrasing.
Built with NextJS 13, PlanetScale, Drizzle ORM, OpenAI, Clerk, ShadCN/ui and Stripe.

## Features
- Clerk auth sync with DB using webhooks
- AI text generation using OpenAI's GPT-3.5
- Image upload using UploadThing
- Beautiful dashboard built with ShadCN/ui components
- Modern looking landing page built with TailwindCSS
- Stripe integration for payments
- Form validations with Zod and React-Hook-Form
- CRUD operations using Drizzle ORM
- State management using Jotai
- Markdown rendering
- and much more...
## Usage
Clone this repo
```bash
git clone https://github.com/miljan-code/gpt-writer-v2.git
```
Install necessary dependencies
```bash
npm install
# or
yarn
```
Fill up the .env file
```env
# DB - PlanetScale
DATABASE_URL='mysql://user:pw@planetscale'
# AUTH - Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
CLERK_WEBHOOK_SECRET=
# Stripe
STRIPE_API_KEY=
STRIPE_WEBHOOK_SECRET=
STRIPE_PLAN_100=
STRIPE_PLAN_200=
STRIPE_PLAN_350=
STRIPE_PLAN_500=
# OpenAI
OPENAI_API_KEY=
# UploadThing
UPLOADTHING_SECRET=
UPLOADTHING_APP_ID=
# App URL
APP_URL="http://localhost:3000"
```
Setup clerk and stripe webhook endpoints
Run the development server
```bash
npm run dev
# or
yarn dev
```
## Demo
Try it out here
[https://gpt-writer.miljan.xyz/](https://gpt-writer.miljan.xyz/)