返回文章列表文章索引阅读全文
STARBLOG / 阅读手记
StarBlog番外

StarBlog Bonus Chapter (3) StarBlog Publisher: Cross-Platform One-Click Publishing, Ultimate Article Creation Tool Powered by DeepSeek

StarBlog Publisher is a professional article publishing tool designed for the StarBlog blogging system, simplifying the publishing process for Markdown articles. It supports previewing, one-click publishing, automatic image handling, AI-assisted creation, and cross-platform usage. Developed based on .NET 8.0, this tool integrates multiple AI models, enhancing efficiency for content creators.

曦远 (DealiAxy)约 22 分钟
目录19 个章节

Foreword

I have been constantly optimizing the workflow for publishing articles.

Previously, StarBlog already supported article package uploading (packaging Markdown and image files into ZIP format for upload), but it still required several steps. After repeating it many times, it still felt cumbersome.

For this reason, I burned the midnight oil for several days and developed this StarBlog Publisher. This tool further simplifies the article publishing process, achieving a truly one-stop publishing experience and significantly improving the efficiency of content creators.

Introduction

StarBlog Publisher is a professional article publishing tool specifically designed for the StarBlog blogging system, offering a more convenient way to publish articles compared to traditional packaging and uploading.

It supports previewing and publishing articles in Markdown format, providing an intuitive user interface that allows you to easily manage and publish blog content.

Built with C# and .NET 8.0, it fully leverages the Microsoft.Extensions.AI framework, integrating multiple leading AI large models (including OpenAI's ChatGPT, Anthropic's Claude, and DeepSeek, among others) to provide intelligent assistance for content creation.

The cross-platform design enables a consistent experience on Windows, macOS, and Linux, showcasing the .NET ecosystem's strong support for modern AI application development.

Interface Screenshots

Main Interface (Light Mode)

Main Interface-Light Mode

Main Interface (Dark Mode)

Main Interface-Dark Mode

Settings Interface

Settings Interface

Addressing Pain Points in Markdown Writing

When using Markdown for blog writing, we often encounter the following pain points:

  • Cumbersome Image Management: When writing with editors like Typora, managing and uploading local images is a common pain point. Each time an article is published, image resources need to be handled separately.
  • Complex Publishing Process: Traditional blog publishing methods usually involve multiple steps, including exporting the article, processing images, logging into the backend, filling in information, etc.
  • Difficulty in Multi-Platform Adaptation: Publishing the same article to different platforms (such as a personal blog, Zhihu, WeChat Official Account, etc.) requires repeated adjustments to the formatting.
  • Inconvenient Version Management: It is difficult to track and manage multiple revisions and updates to articles.

Advantages of StarBlog Publisher

Compared to traditional article publishing methods, StarBlog Publisher offers the following advantages:

  • One-click publishing: Publish directly from local Markdown files to the blog system without manual packaging and uploading.
  • Automatic image processing: Automatically identifies and processes local images within Markdown, uploads them to the server, and updates the links.
  • Real-time preview: A what-you-see-is-what-you-get editing experience ensures the publishing result meets expectations.
  • Cross-platform copying: After publishing, formatted content can be copied with a single click, facilitating publication to other platforms such as Zhihu or WeChat Official Accounts.
  • AI-assisted creation: Integrates various AI large models (AI 大模型) to provide intelligent assistance functions like title polishing and content summarization.
  • Local and cloud synchronization (本地与云端同步): Maintains synchronization between local articles and published articles, facilitating continuous updates.

Features

  • Markdown Support: Full support for Markdown format, including images, links, code blocks, etc.
  • Image Upload: Automatically processes local images in Markdown and uploads them to the blog server
  • Article Preview: Real-time preview of Markdown rendering effects
  • Article Management: Supports creating, editing, publishing, and deleting articles
  • Category Management: Supports categorizing articles
  • AI Assistance: Integrates multiple AI models (OpenAI, Claude, DeepSeek, etc.), providing AI-powered article title refinement, article summarization, and automatic introduction generation, significantly enhancing content creation efficiency
  • Word Cloud Generation: Visually displays blog content keywords
  • Theme Switching: Supports switching between light/dark themes
  • Proxy Settings: Supports configuring HTTP proxies to resolve network access issues
  • Custom Backend: Allows configuring a custom blog backend API address

Tech Stack

  • UI Framework: Avalonia 11.2.1
  • Development Language: C# (.NET 8.0)
  • MVVM Framework (MVVM 框架): CommunityToolkit.Mvvm 8.2.1 + ReactiveUI 19.5.41
  • Markdown Processing (Markdown 处理): Markdig 0.40.0 + Markdown.Avalonia 11.0.3
  • HTTP Client: Refit 8.0.0
  • AI Integration: Microsoft.Extensions.AI 9.3.0
  • Dialogs (对话框): MessageBox.Avalonia 3.1.5

Download and Installation Steps

  1. Download the latest version from the Github Releases page.
  2. Extract the downloaded file.
  3. Run StarBlogPublisher.exe.

Development Log

Finally, let's take a look at this development log, the result of many days of hard work!

Core Features

  • Article Management

    • Add article update functionality and optimize the publishing workflow (2025-03-23)
    • Add API method for retrieving article details (2025-03-23)
    • Add new models and service interfaces for blog articles (2025-03-23)
    • Refactor article publishing logic into separate methods (2025-03-23)
    • Fix issue where article details are not refreshed after content update (2025-03-23)
  • Markdown Processing

    • Add Markdown processing functionality and utility classes (2025-03-23)
    • Add file path support and optimize Markdown processing logic (2025-03-23)
    • Refactor image handling logic to upload images directly to the backend (2025-03-23)
    • Add image upload progress events to enhance user experience (2025-03-23)
  • Category Management

    • Integrate category API (2025-03-22)
    • Add category word cloud feature (2025-03-23)

AI Features

  • Added AI configuration functionality (2025-03-23)
  • Added AI article summary generation feature (2025-03-23)
  • Added AI article title polishing feature (2025-03-23)
  • Added button to regenerate article summaries and optimized AI function state management (2025-03-23)
  • Added AIService class to support AI text generation and chat responses (2025-03-23)
  • Optimized AI provider configuration and default model settings (2025-03-23)
  • Enhanced AI provider selection functionality, adding display names and descriptions (2025-03-23)
  • Optimized AI service provider retrieval method and summary generation prompts (2025-03-23)
  • Fixed issue where default values were not correctly set when customizing AI providers (2025-03-23)

User Interface

  • Initial completion of the interface layout using Claude; as well as markdown preview functionality (2025-03-12)
  • Added dark mode toggle (2025-03-13)
  • Added an "About" interface (2025-03-13)
  • Adjusted main interface layout; added preview interface (2025-03-23)
  • Adjusted layout and style of the login status panel (2025-03-23)
  • Saved dark/light mode toggle preference (2025-03-23)
  • Added content copy and title reset functions (2025-03-26)

User Experience

  • Automatically fill in the title and article description when opening a file (2025-03-23)
  • Add auto-login functionality to enhance user experience (2025-03-23)
  • Completed the password show/hide toggle feature (2025-03-22)

Security

  • Added password encryption feature (2025-03-22)
  • Added proxy feature to the API service (2025-03-23)

Documentation and Configuration

  • Added VSCode debugging configuration (2025-03-18)
  • Added README file and project-related images (2025-03-26)

Bug Fixes

  • Fixed a bug where configuration loading failed (2025-03-22)
  • Fixed a bug caused by AI generation: the showPassword was reversed (2025-03-22)
  • Fixed an issue where article details were not re-fetched after updating article content (2025-03-23)
  • Fixed an issue where default values were not set correctly when customizing an AI provider (2025-03-23)
  • The link on the About page has also been corrected (2025-03-13)

_EOF_

StarBlog Bonus Chapter (3) StarBlog Publisher: Cross-Platform One-Click Publishing, Ultimate Article Creation Tool Powered by DeepSeek

本文作者:
程序设计实验室
版权声明:
本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

相关文章

StarBlog番外(4) 文章一键发布工具Publisher大升级,AI功能增强与界面优化

《StarBlogPublisher》是一款提升博客与公众号文章创作效率的工具。作者在原有版本基础上进行了多项优化,包括界面调整(空间利用率更高、统一Font Awesome图标)及功能增强(新增文章Slug配置、独立的AI配置窗口、多组AI配置文件管理)。新功能支持AI模型动态加载、API Key灵活切换,显著提升大模型创作效率。作者计划持续开发AI辅助工具以解放生产力。

2025-05-18 · StarBlog番外 · 约 1 分钟

讨论

共 0 条

良言一句三冬暖,恶语伤人六月寒。

加载评论中…

StarBlog Bonus Chapter (3) StarBlog Publisher: Cross-Platform One-Click Publishing, Ultimate Article Creation Tool Powered by DeepSeek · StarBlog