This Next.js application generates 8 daily X posts about user-provided topics using OpenAI and Perplexity AI APIs. It uses Tailwind CSS for styling.
- Generate 8 unique X posts daily
- User-friendly interface for topic input
- Utilizes both OpenAI and Perplexity AI for diverse content generation
- Responsive design using Tailwind CSS
- Node.js (v14 or later)
- npm or yarn
- OpenAI API key
- Perplexity AI API key
-
Clone the repository:
git clone https://github.com/William-Karkegi/x-post-assistant.git cd x-post-assistant
-
Install dependencies:
npm install
or
yarn install
-
Copy the
.env.example
file to.env.local
and fill in your API keys:cp .env.example .env.local
-
Edit
.env.local
and add your OpenAI and Perplexity AI API keys.
-
Start the development server:
npm run dev
or
yarn dev
-
Open your browser and navigate to
http://localhost:3000
. -
Enter a topic in the input field and click "Generate Posts".
-
View the generated X posts.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License - see the LICENSE file for details.
This project is for educational purposes only. Make sure to comply with X's terms of service and API usage policies when using generated content.