Blog AI Generator
approvedby Gareth Ng
Generate blog posts from your notes using OpenAI
★ 1 stars↓ 315 downloadsUpdated 1y agoMIT
Blog Generator
Introduction
Blog Generator is a powerful plugin that transforms your Obsidian notes into well-structured blog posts. It leverages OpenAI's language models to optimize content, supports multiple languages, and handles images within your notes.
Features
- 🤖 Smart blog generation using OpenAI API
- 🌍 Multi-language support (Chinese, English, Japanese, Korean)
- 🖼️ Automatic image processing and conversion
- 🎨 Customizable prompts
- 🔧 Flexible API settings
- 💻 User-friendly interface
Installation
- Open Settings in Obsidian
- Go to "Third-party plugins"
- Disable "Safe mode"
- Click "Browse" and search for "Blog Generator"
- Click Install
Configuration
- After installation, go to plugin settings
- Configure your OpenAI API key
- (Optional) Set custom API endpoint
- Choose the language for blog generation
- (Optional) Customize prompts
Usage
- Open the note you want to convert
- Click the pencil icon in the left sidebar or use the command palette and type "Generate Blog"
- Wait for the generation to complete
- The generated blog post will be saved as a new Markdown file
Development
Prerequisites
- Node.js (v16 or higher)
- npm or yarn
- Git
Build Steps
- Clone the repository:
git clone https://github.com/garethng/obsidian-blog-generator.git
cd obsidian-blog-generator
- Install dependencies:
npm install
# or
yarn install
- Build the plugin:
npm run build
# or
yarn build
- For development with hot-reload:
npm run dev
# or
yarn dev
Testing in Obsidian
- Create a test vault in Obsidian
- Create
.obsidian/plugins/obsidian-blog-generator/directory - Copy the built files (main.js, manifest.json, styles.css) to this directory
- Enable the plugin in Obsidian settings
Notes
- Ensure you have configured a valid OpenAI API key before use
- Image processing may take some time depending on size and quantity
- Review your note content before generation to ensure proper formatting
License
This project is licensed under the MIT License. See the LICENSE file for details.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.