Skip to content

ericmwalk/obsidian-mbpublish

Repository files navigation

Mb.Publish Plugin for Obsidian

Mblog Publish (mb.publish) allows you to post pictures and posts directly from Obsidian to Micro.blog. In addition, you can use this to create drafts, edit previsouly published posts all with in Obsidian.


Configuration Screenshot

screenshot|300


Features

Publishing

  • Publish new posts directly to Micro.blog.
  • Support for short microblog posts or longer blog entries with titles.
  • Upload and embed images (![[image.png]]) with automatic conversion to Markdown image links.
  • Auto-generate image alt text (using OpenAI GPT models) or fallback to filename-based text.
  • Optionally delete local image files after upload.
  • Backdate or schedule posts by setting a date in frontmatter.
  • Apply categories via tags field in the frontmatter.
  • Publish drafts or public posts.

File Management

  • Optionally rename the note file after publishing based on the returned Micro.blog slug.
  • Save published metadata (slug, post date, etc.) back into frontmatter.

Setup

  1. Clone or download this repo into your Obsidian .obsidian/plugins/ folder.
  2. Run npm install and npm run build to compile the plugin.
  3. Enable the plugin inside Obsidian.
  4. Configure the plugin settings (API key, default blog, visibility, and renaming/alt-text preferences).

Properties (YAML frontmatter)

title: used as the post/page title. Falls back to filename if missing. tags: comma-separated tags for posts. Falls back to defaults if missing. url: added by Micro.publish after a successful publish; used to update existing posts/pages.

Publishing

You will have to have the following yaml properties in order to actually have your file be published to Micro.blog.

Example:

---
date: '2025-09-05 13:33'
status: published
tags: obsidian, running
title: Obsidian Plugin - Mb Publish
---

Editing and updating

  • After publishing with Mb.Publish, the note’s microblog_id and url is saved in the Properties.
    • microblog_id - This is used to update the post instead of using the url as if settings or website url changes it can still find the post to update.
  • To update a post, edit the note (or title/tags) and run the the publish command or click the button again

Images

About

Use Obsidian to allow you to publish pictures, posts, and pages to Micro.blog

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors