starblog-publisher 2.x Refactor
After two months of dragging it out, the 2.x refactor is finally here—CLI, Core, and GUI split cleanly, all to keep up with the Agent trend. WeChat article formatting got wired in along the way, so publishing efficiency is at least passable. 3.x will probably slip again; energy always has to be split across too many directions.
目录8 个章节
Preface
Recently I've been continuously refactoring StarBlog publisher. This article should have gone out two months ago, but I kept putting it off and forgot 😂
If I don't post this now, the brand-new UI 3.x is about to ship—better get this out quickly.
Open source: https://github.com/star-blog/starblog-publisher/tree/v2.3.4
New Architecture
To meet current Agent usage needs, a lot of GUI software is going fully "CLI-ified". In the 2.0 refactor, I also split the original StarBlog Publisher into multiple libraries: CLI, Core, GUI
Shared business logic was extracted into the Core package, and both CLI and GUI are built on top of Core.
I also provide Skill and MCP so Agents can use it—now you can publish an article with a single sentence inside an Agent.
Besides the architecture changes, a major new feature is WeChat article formatting. I'd already implemented this in the wechat-pub project, but that was a Python version that only exposed MCP for Agents to call, and it wasn't well integrated with the StarBlog workflow. This time they're connected, so publishing efficiency improved a bit.
CLI
The command-line tool supports the same features as the GUI.
dotnet run --project .\StarBlogPublisher.Cli
Required command was not provided.
Description:
StarBlog Publisher CLI - 博客发布命令行工具
Usage:
StarBlogPublisher.Cli [command] [options]
Options:
-?, -h, --help Show help and usage information
--version Show version information
Commands:
auth 认证管理
category 分类管理
post 文章管理
ai AI 辅助功能
install 安装 StarBlog Publisher 的 skills 或 MCP 配置到 AI Agent
Main Interface
Enough talk—here's a screenshot.

Publish Result Screen
Added a publish result page so you can easily copy the URL and markdown.

Official Account Formatting & Publishing
You can configure WeChat Official Account details in the settings screen.

There's also a dedicated formatting screen. The 2.x version at the time lets you pick from 4 formatting themes; wechat-pub has 20+ in full, but this time I only ported a few commonly used ones.

Here's the formatted result.

New About Screen
This is just an update to the tech stack description. The icon hasn't been changed yet, so it still looks pretty ugly.

Wrap-up
That's it. There's a lot going on and it's easy to get spread thin. I had planned to ship a new version of StarBlog in this period as well, but development has been much slower than I expected.
_EOF_
starblog-publisher 2.x Refactor
- 本文作者:
- 程序设计实验室
- 版权声明:
- 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
相关文章
StarBlog v1.3.0 新版本,一大波更新以及迁移服务器部署
服务器故障逼得更新,直接上云服务器迁移。v1.3.0版本来了,架构、界面、SEO全升级,还加了图片压缩工具,代码总算整理干净点。来看看这波大更新如何?
2025-08-19 · StarBlog番外 · 约 1 分钟
StarBlog 番外篇 (1) 全新的访问统计功能,异步队列,分库存储
虽然现在工作重心以AI为主了,不过相比起各种大模型的宏大叙事,我还是更喜欢自己构思功能、写代码,享受解决问题和发布上线的过程。 之前 StarBlog 系列更新的时候我也有提到,随着功能更新,会在教程系列完结之后继续写番外,这不第一篇番外就来了。 这次是全新设计的访问统计功能。
2025-03-25 · StarBlog番外 · 约 1 分钟
重写 StarBlog 的搜索功能和页面,支持权重设置和结果高亮
重写搜索?就内存算权重加Regex?太业余了。标题权重100倍正文?这种土味方案意外的有效。页面也重写了,但Bootstrap样式够原始的。 v2还指望用Lucene.NET?
2025-09-02 · StarBlog番外 · 约 1 分钟
StarBlog 番外篇 (3) StarBlog Publisher,跨平台一键发布,DeepSeek加持的文章创作神器
StarBlog Publisher是一款针对StarBlog博客系统的专业文章发布工具,简化了Markdown文章的发布流程。它支持预览、一键发布,自动处理图片,提供AI辅助创作,且支持跨平台使用。该工具基于.NET 8.0开发,集成多种AI模型,提升内容创作者效率。
2025-03-27 · StarBlog番外 · 约 1 分钟
讨论
共 0 条加载评论中…