Blog AI Generator

approved

by Gareth Ng

Generate blog posts from your notes using OpenAI

1 stars315 downloadsUpdated 1y agoMIT
View on GitHub

Obsidian Downloads GitHub Release

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

  1. Open Settings in Obsidian
  2. Go to "Third-party plugins"
  3. Disable "Safe mode"
  4. Click "Browse" and search for "Blog Generator"
  5. Click Install

Configuration

  1. After installation, go to plugin settings
  2. Configure your OpenAI API key
  3. (Optional) Set custom API endpoint
  4. Choose the language for blog generation
  5. (Optional) Customize prompts

Usage

  1. Open the note you want to convert
  2. Click the pencil icon in the left sidebar or use the command palette and type "Generate Blog"
  3. Wait for the generation to complete
  4. 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

  1. Clone the repository:
git clone https://github.com/garethng/obsidian-blog-generator.git
cd obsidian-blog-generator
  1. Install dependencies:
npm install
# or
yarn install
  1. Build the plugin:
npm run build
# or
yarn build
  1. For development with hot-reload:
npm run dev
# or
yarn dev

Testing in Obsidian

  1. Create a test vault in Obsidian
  2. Create .obsidian/plugins/obsidian-blog-generator/ directory
  3. Copy the built files (main.js, manifest.json, styles.css) to this directory
  4. 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.