Skip to content

ThreadX is an AI based web-application which let user create threads for twitter(X) with the help of GPT-3. Made on NEXT.js , shadcn-ui, next-auth & vercel-ai-sdk

License

Notifications You must be signed in to change notification settings

codescalper/threadx.ai

Repository files navigation

Banner

GitHub code size in bytes GitHub last commit GitHub commit activity month GitHub license

πŸ“Œ Overview

  • ThreadX lets you generate captivating Twitter threads effortlessly with the power of AI. Choose from a variety of vibes and let the AI do the rest.
  • It's a project that relies on essential dependencies such as hookform/resolvers, next-auth/prisma-adapter, radix-ui/react components, vercel/kv, bcrypt, next, react, tailwindcss, and typescript.

πŸ” Table of Contents

πŸ“ Project Structure

β”œβ”€β”€ .eslintrc.json
β”œβ”€β”€ .gitignore
β”œβ”€β”€ README.md
β”œβ”€β”€ app
β”‚   β”œβ”€β”€ (auth)
β”‚   β”‚   β”œβ”€β”€ sign-in
β”‚   β”‚   β”‚   └── page.tsx
β”‚   β”‚   └── sign-up
β”‚   β”‚       └── page.tsx
β”‚   β”œβ”€β”€ Header.tsx
β”‚   β”œβ”€β”€ api
β”‚   β”‚   β”œβ”€β”€ auth
β”‚   β”‚   β”‚   └── [...nextauth]
β”‚   β”‚   β”‚       └── route.ts
β”‚   β”‚   β”œβ”€β”€ chat
β”‚   β”‚   β”‚   └── route.ts
β”‚   β”‚   β”œβ”€β”€ route.ts
β”‚   β”‚   └── user
β”‚   β”‚       └── route.ts
β”‚   β”œβ”€β”€ context
β”‚   β”‚   └── ThreadContext.tsx
β”‚   β”œβ”€β”€ generate
β”‚   β”‚   └── page.tsx
β”‚   β”œβ”€β”€ globals.css
β”‚   β”œβ”€β”€ layout.tsx
β”‚   └── page.tsx
β”œβ”€β”€ components.json
β”œβ”€β”€ components
β”‚   β”œβ”€β”€ CheckBoxEmoji.tsx
β”‚   β”œβ”€β”€ ClientHero.tsx
β”‚   β”œβ”€β”€ Context
β”‚   β”‚   └── vibeContext.ts
β”‚   β”œβ”€β”€ Footer.tsx
β”‚   β”œβ”€β”€ LightDark.tsx
β”‚   β”œβ”€β”€ Number.tsx
β”‚   β”œβ”€β”€ SelectVibe.tsx
β”‚   β”œβ”€β”€ Thread.tsx
β”‚   β”œβ”€β”€ UserSignOut.tsx
β”‚   β”œβ”€β”€ form
β”‚   β”‚   β”œβ”€β”€ SignIn.tsx
β”‚   β”‚   └── SignUp.tsx
β”‚   β”œβ”€β”€ input.tsx
β”‚   β”œβ”€β”€ theme-provider.tsx
β”‚   └── ui
β”‚       β”œβ”€β”€ button.tsx
β”‚       β”œβ”€β”€ card.tsx
β”‚       β”œβ”€β”€ checkbox.tsx
β”‚       β”œβ”€β”€ dropdown-menu.tsx
β”‚       β”œβ”€β”€ form.tsx
β”‚       β”œβ”€β”€ input.tsx
β”‚       β”œβ”€β”€ label.tsx
β”‚       └── select.tsx
β”œβ”€β”€ lib
β”‚   β”œβ”€β”€ auth.ts
β”‚   β”œβ”€β”€ db.ts
β”‚   └── utils.ts
β”œβ”€β”€ next.config.js
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
β”œβ”€β”€ postcss.config.js
β”œβ”€β”€ prisma
β”‚   β”œβ”€β”€ migrations
β”‚   β”‚   β”œβ”€β”€ 20231006112435_init
β”‚   β”‚   β”‚   └── migration.sql
β”‚   β”‚   β”œβ”€β”€ 20231007111533_new_mig
β”‚   β”‚   β”‚   └── migration.sql
β”‚   β”‚   β”œβ”€β”€ 20231011131426_
β”‚   β”‚   β”‚   └── migration.sql
β”‚   β”‚   β”œβ”€β”€ 20231011132355_name
β”‚   β”‚   β”‚   └── migration.sql
β”‚   β”‚   β”œβ”€β”€ 20231012104644_image
β”‚   β”‚   β”‚   └── migration.sql
β”‚   β”‚   └── migration_lock.toml
β”‚   └── schema.prisma
β”œβ”€β”€ tailwind.config.js
β”œβ”€β”€ tailwind.config.ts
└── tsconfig.json

πŸ“ Project Summary

πŸ’» Stack

  • next-auth: Authentication library for Next.js projects.
  • prisma: Database toolkit and ORM for TypeScript and Node.js.
  • react-hook-form: Library for flexible and efficient form validation in React.
  • react-icons: Collection of popular icons as React components.
  • tailwindcss: Utility-first CSS framework for rapid UI development.
  • typescript: Typed superset of JavaScript that compiles to plain JavaScript.
  • next: React framework for building server-side rendered and static websites.
  • react: JavaScript library for building user interfaces.

βš™οΈ Setting Up

  • Step 1

Your Environment Variable

GOOGLE_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
NEXT_AUTH_URL=
NEXTAUTH_SECRET=
GITHUB_SECRET=
GITHUB_ID=
DATABASE_URL=
NEXTAUTH_SECRET=
OPENAI_API_KEY=

πŸš€ Run Locally

1.Clone the threadx repository:

git clone https://github.com/codescalper/threadx

2.Install the dependencies with one of the package managers listed below:

npm install

3.Start the development mode:

npm run dev

πŸ™Œ Contributors

πŸ“„ License

This project is licensed under the MIT License - see the MIT License file for details.

About

ThreadX is an AI based web-application which let user create threads for twitter(X) with the help of GPT-3. Made on NEXT.js , shadcn-ui, next-auth & vercel-ai-sdk

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published