How styayur/publishing-workbench works
Publishing Workbench is a local-first desktop CMS publishing workbench: users edit or import Markdown/MDX/JSON, inspect a preview, configure a destination, then publish or resume a tracked job. Its documented runtime separates the React interface, Tauri command boundary, canonical content/transform layer, reliable job processing and destination adapters. The README documents broader adapter and recovery behavior; unsampled internals are represented only where that documentation supports them.
Main entry points: App.tsx Workbench App · desktop.rs Tauri Commands · mod.rs Publisher Registry · reliable.rs Reliable Publisher
Components 25
Workbench UI
- Writer
src/editor/Editor.tsx - Content Import
src/editor/import.ts - Preview
src/preview/Preview.tsx - Extensions UI
src/extensions/Extensions.tsx - Publish History
src/publishing/Publish.tsx - Capability Selector
src/publishing/capabilities.ts - Settings UI
src/settings/Settings.tsx - Workbench App
src/App.tsx - Desktop API Client
src/api.ts - UI Data Models
src/models.ts
Desktop Boundary
- Tauri Commands
src-tauri/desktop.rs
Publishing Core
- Canonical Content
src-tauri/content/mod.rs - Content Transform
src-tauri/transform/mod.rs - Reliable Publisher
src-tauri/publishing/reliable.rs - Publisher Registry
src-tauri/publishing/mod.rs - SQLite Job Store
src-tauri/storage/mod.rs
Destination Adapters
- WordPress Adapter
src-tauri/extensions/wordpress/mod.rs - WeChat Adapter
src-tauri/extensions/wechat/mod.rs - Generic REST Adapter
src-tauri/extensions/generic_rest/mod.rs - Git Content Adapter
src-tauri/extensions/git_content/mod.rs
Other components
- Author
- WordPress API
- WeChat API
- Configured REST API
- Content Repository
Connections 29
- Author → Writer: edits
README.md - Author → Content Import: imports
README.md - Writer → Content Import: uses
src/editor/Editor.tsx - Workbench App → Writer: renders
src/App.tsx - Workbench App → Preview: renders
src/App.tsx - Workbench App → Extensions UI: renders
src/App.tsx - Workbench App → Publish History: renders
src/App.tsx - Workbench App → Settings UI: renders
src/App.tsx - Publish History → Capability Selector: checks support
src/publishing/Publish.tsx - Workbench App → Desktop API Client: invokes
src/App.tsx - Publish History → Desktop API Client: invokes
src/publishing/Publish.tsx - Writer → Desktop API Client: imports files
src/editor/Editor.tsx - Desktop API Client → Tauri Commands: invokes commands
README.md - Tauri Commands → Canonical Content: loads and saves
src-tauri/desktop.rs - Tauri Commands → Content Transform: prepares preview
README.md - Tauri Commands → Reliable Publisher: starts and resumes
README.md - Tauri Commands → SQLite Job Store: uses
src-tauri/desktop.rs - Reliable Publisher → Content Transform: transforms content
README.md - Reliable Publisher → SQLite Job Store: persists jobs
README.md - Reliable Publisher → Publisher Registry: dispatches adapter
src-tauri/publishing/mod.rs - Publisher Registry → WordPress Adapter: registers
- Publisher Registry → WeChat Adapter: registers
- Publisher Registry → Generic REST Adapter: registers
- Publisher Registry → Git Content Adapter: registers
- WordPress Adapter → WordPress API: calls API
README.md - WeChat Adapter → WeChat API: calls API
README.md - Generic REST Adapter → Configured REST API: sends requests
README.md - Git Content Adapter → Content Repository: writes content
README.md - Git Content Adapter → SQLite Job Store: uses asset registry
src-tauri/extensions/git_content/mod.rs