snowpub

snowpub 使用与开发文档

English · 中文


Quick Start

  1. Download the latest installer from Releases
  2. Install and open snowpub
  3. Open Settings → WeChat OA, enter AppID/AppSecret, click Test Connection
  4. Open Settings → Notebook, choose a folder as your notes root directory
  5. Open a .md note → click the WeChat preview icon in toolbar → start writing
  6. Click the publish icon → fill title/author/cover → Save DraftPublish

snowpub welcome screen

Features

WeChat Publishing Setup

  1. Get AppID and AppSecret from OA console → Settings → Development → Basic Config
  2. Add your machine’s IP to the OA IP whitelist
  3. Open Settings → WeChat OA in snowpub, enter AppID/AppSecret
  4. Click Test Connection to verify
  5. Open a .md note → click WeChat preview icon → write
  6. Click publish icon → fill title / author / digest / cover → Save DraftPublish

Local images in your Markdown are auto-uploaded to WeChat and src replaced with OA URLs during publish.

Git Sync Setup

  1. Open Settings → Sync
  2. Select GitHub or Gitee
  3. Enter your username and Personal Access Token (requires repo permission)
  4. Add a remote notebook — snowpub will clone an existing repo or create a new one

AI Assistant

  1. Install at least one agent CLI: Claude Code, OpenCode, or OpenClaw
  2. Open the AI Assistant tab in the right sidebar — detected CLIs appear automatically
  3. Select text (or use the whole article) → click a preset: Polish / Title / Digest / Theme
  4. A generated theme can be saved and applied in one click; it lands in <notebook>/themes/ and appears in the preview theme dropdown

Keyboard Shortcuts

| Shortcut | Action | |—|—| | Ctrl+\ | Toggle terminal | | Cmd/Ctrl+S | Save note | | Cmd/Ctrl+Shift+P | Git push | | Alt+↑/↓ | Navigate between notes | | Cmd/Ctrl+?` | Show help |


快速开始

  1. Releases 下载最新安装包
  2. 安装并打开 snowpub
  3. 打开设置 → 公众号,填入 AppID/AppSecret,点击测试连接
  4. 打开设置 → 笔记本,选择一个文件夹作为笔记根目录
  5. 打开 .md 笔记 → 工具栏点微信预览图标 → 开始写作
  6. 点发布图标 → 填标题/作者/封面 → 保存草稿发布

snowpub 欢迎页面

功能特性

公众号发布配置

  1. 在公众号后台 → 设置 → 开发 → 基本配置 获取 AppID 和 AppSecret
  2. 将本机 IP 加入公众号后台 IP 白名单
  3. 在 snowpub 打开设置 → 公众号,填入 AppID/AppSecret
  4. 点击测试连接验证
  5. 打开 .md 笔记 → 点微信预览图标 → 写作
  6. 点发布图标 → 填标题 / 作者 / 摘要 / 选封面图 → 保存草稿发布

发布时 Markdown 中的本地图片会自动上传到公众号并替换为公众号 URL。

AI 助手

  1. 至少安装一个 agent CLI:Claude CodeOpenCodeOpenClaw
  2. 打开右侧栏 AI 助手 页签 —— 已检测到的 CLI 自动列出
  3. 选中文字(或用全文)→ 点预设动作:润色 / 起标题 / 写摘要 / 生成主题
  4. 生成的主题可一键保存并应用,落盘在 <笔记本>/themes/,自动出现在预览主题下拉中

键盘快捷键

| 快捷键 | 操作 | |—|—| | Ctrl+\ | 切换终端 | | Cmd/Ctrl+S | 保存笔记 | | Cmd/Ctrl+Shift+P | Git 推送 | | Alt+↑/↓ | 切换笔记 | | Cmd/Ctrl+?` | 显示帮助 |


交流与反馈

Development

Prerequisites

Setup

npm install
npm run dev

Build

npm run build

Outputs to release/{version}/.

Tech Stack