ThreadCraft AI is a powerful Next.js application that leverages AI to generate engaging content for various social media platforms. This project uses cutting-edge technologies to provide users with an intuitive interface for creating Twitter threads, Instagram captions, and LinkedIn posts.
- AI-powered content generation for Twitter, Instagram, and LinkedIn
- User authentication and account management with Clerk
- Points-based system for content generation
- Content history and regeneration
- Responsive design for desktop and mobile devices
- Preview functionality for generated content
- Integration with Google's Generative AI (Gemini)
- Next.js - React framework for building the frontend and API routes
- TypeScript - Typed superset of JavaScript
- Tailwind CSS - Utility-first CSS framework
- Clerk - Authentication and user management
- Google Generative AI - AI model for content generation
- Drizzle ORM - TypeScript ORM for database management
- Neon Database - Serverless Postgres database
- Stripe - Payment processing for subscriptions
- Lucide React - Icon library
-
Clone the repository:
git clone https://github.com/your-username/threadcraft-ai.git cd threadcraft-ai
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env.local
file in the root directory and add the following variables:NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key CLERK_SECRET_KEY=your_clerk_secret_key NEXT_PUBLIC_GEMINI_API_KEY=your_gemini_api_key DATABASE_URL=your_neon_database_url STRIPE_SECRET_KEY=your_stripe_secret_key NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key
-
Run the development server:
npm run dev
-
Open http://localhost:3000 with your browser to see the result.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out the Next.js deployment documentation for more details.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.