This application is a powerful tool for content creators and bloggers that leverages Artificial Intelligence (Google Gemini 2.5 Flash and Imagen 4/Flash Image) to automatically generate attractive Pinterest pins from your blog posts.
The app generates titles, descriptions, SEO keywords, and creates visually appealing images. Results can be saved directly to Google Drive and downloaded as a CSV ready for Pinterest bulk upload.
- Content Analysis: Paste your blog text, and the AI suggests relevant pin concepts.
- Image Generation: Creates unique images using Imagen 4.0 (High Quality) or Gemini 2.5 Flash Image (Cost Effective).
- Pinterest Optimization: Automatically formats images to 2:3 or 3:4 aspect ratios.
- Google Drive Integration: Automatically creates folders, uploads images, and generates public viewing links.
- Bulk Export: Generates a CSV file formatted exactly for the Pinterest Bulk Upload tool.
- Profile Management: Save settings for multiple blogs or clients.
Before you begin, you will need:
- Node.js (Version 18 or later).
- Google Gemini API Key (Get it from Google AI Studio).
- Google Cloud Project (For Google Drive integration - see Configuration section).
-
Clone the repository:
git clone https://github.com/your-username/repo-name.git cd repo-name -
Install dependencies:
npm install # or yarn install -
Environment Setup: Create a
.envfile in the root directory and add your Gemini API Key:API_KEY=your_gemini_api_key_here
Note: This file is ignored by Git to keep your key secure.
-
Start the application:
npm start # or the command defined in your package.json (e.g., npm run dev)
To allow the app to save files to your Google Drive, you need to create an "OAuth Client ID":
- Go to the Google Cloud Console.
- Create a new project or select an existing one.
- Go to APIs & Services > Enabled APIs and enable the Google Drive API.
- Go to OAuth consent screen and configure the app (for personal use, select "External" and add your email to "Test users").
- Go to Credentials, click Create Credentials, and select OAuth Client ID -> Web application.
- Under "Authorized JavaScript origins", add the URL where the app is running (e.g.,
http://localhost:3000). - Copy the generated Client ID.
- In the application, click the settings icon (or "Sign in") and paste this Client ID.
- API Keys: Never upload your
.envfile to GitHub. The.gitignorefile in this project is already configured to exclude it. - Client ID: The Google Client ID is stored locally in your browser (
localStorage) and communicates directly with Google servers.
This project is provided as-is.