Generate optimized content for all your social media platforms in one click.
- Generate content for multiple social media platforms (LinkedIn, X, Instagram, Facebook, Medium, Telegram)
- Customize tone, length, and style of content
- Add images to your posts
- Save and reuse previous content
- Support for both Google Gemini and OpenAI-compatible providers
This application can be deployed in multiple ways:
- Build the application:
npm run build
- Deploy the contents of the
distfolder to any static hosting service
- Build the application:
npm run build
- Copy the contents of the
distfolder to the appropriate location in the 'codemo' project - No base path configuration is needed, making integration flexible
To deploy to GitHub Pages at https://gigamaster.github.io/ai-media-agent/:
- Update
vite.config.tsto include:base: '/ai-media-agent/' - Build and deploy:
npm run deploy
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser to http://localhost:5173
This project uses Stylelint to ensure CSS code quality. To check for CSS issues:
npx stylelint index.cssTo automatically fix CSS issues:
npx stylelint index.css --fix-
Obtain an API key from either:
- Google AI Studio (for Gemini)
- Your OpenAI-compatible provider
-
Click the settings icon (⚙️) in the top right corner and enter your API key.
-
Fill in the content details:
- Post Title / Topic (Required)
- Keywords / Hashtags (Optional)
- Link (Optional)
- Content Tone (Optional)
- Content Length (Optional)
- Content Style (Optional)
-
Select target platforms
-
Add an image (optional)
-
Click "Generate Content"
-
Copy, save, or regenerate content as needed
The Content History is stored in the browser's localStorage with the key contentHistory.
The data structure is an array of HistoryItem objects with the following properties:
- id (string): A unique identifier generated using Date.now().toString()
- topic (string): The main topic/title of the content
- platform (string): The social media platform (e.g., "X", "LinkedIn", "Instagram")
- content (string): The actual generated content text
- keywords (string, optional): Any keywords or hashtags used
- link (string, optional): Any link that was included
This project is licensed under the MIT License - see the LICENSE file for details.
Created by Nuno Luciano.
