OniThreads is a cool app built with Next.js that uses AI to whip up awesome content for all your social media needs. Whether you're looking to create engaging Twitter threads, catchy Instagram captions, professional LinkedIn posts, or fun Facebook updates, this project has got you covered with cutting-edge tech and a super easy-to-use interface.
- AI-driven content creation for Twitter, Instagram, LinkedIn and Facebook
- User authentication and account management powered by Clerk
- Points-based system for generating content
- History tracking and content regeneration
- Responsive design suitable for both desktop and mobile devices
- Preview feature for generated content
- Integration with Google's Generative AI (Gemini)
- Next.js - A React framework for developing the frontend and API routes
- TypeScript - A typed superset of JavaScript
- Tailwind CSS - A utility-first CSS framework
- Clerk - For authentication and user management
- Google Generative AI - AI model used for content generation
- Drizzle ORM - A TypeScript ORM for database management
- Neon Database - A serverless Postgres database
- Stripe - For handling payment processing and subscriptions
- Lucide React - An icon library
-
Clone the repository:
git clone https://github.com/nasaomar165/onithread.git cd onithread -
Install the necessary dependencies:
npm install
-
Configure environment variables: Create a
.env.localfile in the root directory and include 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 -
Start the development server:
npm run dev
-
Visit http://localhost:3000 in your browser to view the application.
The simplest way to deploy your Next.js application is by using the Vercel Platform, created by the developers of Next.js.
For more information, refer to the Next.js deployment documentation.
We welcome contributions! Feel free to submit a Pull Request.