| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| OpenPublisher5-i386-windowsXP.exe | 2026-11-11 | 56.5 MB | |
| openpublisher5_amd64-windows-portable.exe | 2026-11-11 | 183.2 MB | |
| openpublisher5_amd64-windows.exe | 2026-11-11 | 165.2 MB | |
| openpublisher5_amd64-macos.dmg | 2026-11-11 | 233.1 MB | |
| openpublisher5_amd64-linux.run | 2026-11-11 | 193.4 MB | |
| openpublisher5_amd64-linux.rpm | 2026-11-11 | 215.4 MB | |
| openpublisher5_amd64-linux.flatpak | 2026-11-11 | 153.6 MB | |
| openpublisher5_amd64-linux.deb | 2026-11-11 | 156.2 MB | |
| openpublisher5_amd64-linux.AppImage | 2026-11-11 | 166.4 MB | |
| openpublisher5_amd64-freebsd.pkg | 2026-11-11 | 185.5 MB | |
| 5.20.0_ AI Layout _ Command Assistant Integration source code.tar.gz | 2026-11-11 | 103.7 MB | |
| 5.20.0_ AI Layout _ Command Assistant Integration source code.zip | 2026-11-11 | 104.2 MB | |
| README.md | 2026-11-11 | 16.1 kB | |
| Totals: 13 Items | 1.9 GB | 0 | |
π Summary
Version 5.20.0 introduces the built-in AI Layout & Command Assistant to OpenPublisher (openpublisher.app), turning natural-language descriptions into complete, fully editable page layouts while controlling page styling and application workspace tools from a single prompt. True to OpenPublisher's core philosophy, the assistant requires zero user sign-ups, zero API keys, zero tracking, and zero ads.
Rather than returning static raster images, the assistant acts as a direct operator of OpenPublisher's native canvas engine (extensions/ai-assistant.js). It reads live page dimensions (mm, cm, in, or px), orientation, margins, and active colour scheme before placing any combination of 21 native element types using millimeter precision, with atomic single-step undo (Ctrl+Z) and dedicated AI toolbar buttons (ui/icons/AI.png) whose hue automatically shifts with your active UI theme.
π οΈ Key Features & Enhancements
1. 7-Node Distributed Architecture, Rollover & Rate Limits (extensions/ai-assistant.js)
To provide fast, free AI generation for daily users and shared school computer labs without logins or personal API keys, requests route through a 7-node Cloudflare Worker cluster (https://openpub-ai-1.openpublisher.workers.dev through https://openpub-ai-7.openpublisher.workers.dev):
- 3 Ultra-Fast Groq LPU Nodes (
openpub-ai-1toopenpub-ai-3): - Powered by Groq LPU hardware running three independent open-weight models across separate rate-limit buckets:
openai/gpt-oss-20b,qwen/qwen3.8-27b, andopenai/gpt-oss-120bfor sub-second JSON, HTML, and CSS layout generation. - 4 Pooled Google AI Studio Nodes (
openpub-ai-4toopenpub-ai-7): - Backed by four separate Google AI Studio developer projects running
gemini-3.5-flash-litefor high daily capacity and spatial reasoning on multi-element documents. - Classroom-Safe Load Balancing & Instant
503Rollover (shuffleNodes,sendAIWorkerRequest): - Uses Fisher-Yates node shuffling on every request so classroom bursts split automatically across all 7 worker endpoints.
- Sequentially fails over in milliseconds to the next healthy node whenever any node returns HTTP
503or encounters a network error. - School-Friendly Quotas, UUID Identity & Client Validation (
getDeviceId,validatePrompt,getCooldownRemainingMs): - Persists an anonymous browser UUID v4 in
localStorage["opub_device_id"]sent via theX-Device-IDheader on every request, supporting 25 generations per hour per browser device alongside a 300 generations per hour per IP ceiling so shared school networks are not locked out. - Rejects prompts shorter than 8 characters or single-word input without spaces before hitting the network, enforces a 20-second cooldown in
localStorage["opub_ai_last_gen_ts"]with a live button countdown (Wait Ns), and halts immediately displaying the rate-limit message on HTTP429.
2. Native Context Prompting & Atomic Undo (buildAISystemPrompt, applyAILayoutResponse)
- Physical Millimeter Precision & Spacing Rules:
buildAISystemPromptpasses live canvas dimensions (mmand active units), orientation, margins, active colour scheme palette, dark mode state, and existing element count into the request payload ({ systemPrompt, userPrompt }), enforcing pure 3-part JSON (summary,appCommands,pageConfig,elementsinx_mm,y_mm,width_mm,height_mm).- Explicitly enforces
SPACING RULEinstructions requiring at least10mmvertical spacing between stacked elements to prevent overlap and keeping all elements at least20mmfrom page edges (x_mm >= 20,y_mm >= 20) when Page Border Art is active. - Single-Step Atomic Undo (
Ctrl+Z): - Captures one clean pre-AI baseline snapshot, suppresses intermediate creator history calls and
focusoutblur triggers inside#op-ai-modal-overlay, and pushes a single post-AI snapshot soCtrl+Z(or clicking Undo AI Action in the modal) reverts all generated elements, borders, watermarks, themes, and page changes in one step.
3. Everything the AI Assistant Controls & Creates
A. Application & Workspace Commands (appCommands)
- UI Themes & Dark Mode: Switch between Light Mode, Dark Mode, or named UI themes (
Publisher / Classic (Teal),Midnight Dark,Word (Blue),Discord (Blurple), etc.). - View & Layout Aids: Toggle Margin Guides, Grid overlays (
theme-grid), Baseline grids (theme-baselines), Element Boundaries (show-boundaries), and Two-Page Spreads. - Color Proofing & Image Processing: Enable colour-blindness simulation filters (
protanopia,deuteranopia,tritanopia,achromatopsia), apply recolor filters (grayscale,sepia,invert,warm,cool), or trigger selected picture compression. - Inspection & Writing Suites: Launch the Writers Analysis Suite (
readability,tone,concise,passive,sentiment,stats), Design Checker, Accessibility Scanner, or Document Inspector. - Drawing Tools: Equip
pencil,brush,spray, oreraserwith custom brush size and colour.
B. Page Setup, Themes & Master Styling (pageConfig)
- Page Dimensions & Margins: Switch preset formats (
A3,A4,A5,Letter,Legal,Tabloid,BusinessCard,Square) or custom millimeter dimensions inportrait/landscapeorientation, set custom millimeter margins, and optionally clear the active page (clearCurrentPage). - Colour Schemes & Theme Studio Backgrounds: Apply built-in document colour schemes (
Classic,Oceanic,Sunset,Forest,Berry,Monochrome,Pastel,Neon,Corporate,Earth,Cyberpunk, etc.), select Theme Studio presets (#ts-gallery-popovercategories across textures, gradients, corporate, dark, and pastel), or apply custom colours, gradients, and background images. - Borders, Watermarks, Headers & Master Pages: Apply basic or fancy page borders or any of 40 Border Art presets (
stars,hearts,roses,bells,pencils, etc.) with custom icon size and margin inset; configure diagonal/horizontal/tiled watermarks (DRAFT,CONFIDENTIAL, or custom text/opacity/colour); populate Headers & Footers; initialize Master Pages; or load built-in.opubtemplates.
C. 21 Native Editable Canvas Element Types (elements)
- Text Boxes (
text_box): Rich text containers with custom font family, size, weight, underline, alignment, colour, background, padding, and borders. - Styled Text Boxes (
styled_text_box): Pre-styled quote blocks and callout containers fromTextBoxStylesSystem(quote-teal,callout-tip,card-dark, etc.). - Beta WordArt (
wordart_beta): High-resolution display typography rendered across styles1through200. - Legacy WordArt (
wordart_legacy): Classic styled typography (1through214) synchronized viasyncWordArt. - Tables (
table): Custom rows, columns, headers, and cell data with styled borders and backgrounds. - Styled Tables (
styled_table): Formatted data tables powered byOpTableStylesacross 22 designs (round,grid,accentbar,cards,ledger, etc.) and 40 colour palettes. - Charts & Graphs (
chart): Native SVG visualizations forpie,donut,half-donut,column,stacked-column,bar,line,area, andradardatasets. - Promotional Ad Badges (
ad_badge): Scalable SVG bursts, discount tags, seals, and ribbons powered byAdvertisementEnginewith configurable text and palettes. - Page Parts (
page_part): Structural editorial modules includingsidebar,pullquote,heading,callout,contact,step,bio,checklist,review,event-date,stat,signature,pros-cons,qa-block,takeaway, andwarning. - Vector Shapes (
shape): Scalable SVG geometry (Rectangle,Rounded Rect,Circle,Oval,Diamond,5-Point Star,Heart,Cloud,Shield, callouts, ribbons, etc.) with optional centred label text. - Smart Arrows (
smart_arrow): Parametric directional, curved, and U-turn arrows with stem-only stretching (block-right,chevron-right,curved-down-right, etc.). - Progress Bars (
progress_bar): Pill, flat, chamfered, and segmented bars with custom percentages and labels viaProgressBarEngine. - Coupons (
coupon): Cut-line promotional vouchers (standard,tearaway,bogo,vip,promo,ticket,raffle, etc.) with custom copy and promo codes. - QR Codes (
qr_code): Scannable QR graphics generated from any URL or text with custom foreground/background colours and square/rounded/circle framing. - Business Info Blocks (
business_info): Structured letterhead, signature, or individual business metadata blocks with automatic fallback defaults when saved profile fields are empty. - Web ClipArt (
clipart): Automatic keyword search and placement fromwebClipartLibrary. - Emojis (
emoji): Crisp SVG emoji graphics scaled cleanly to any millimeter bounding box. - Special Symbols (
symbol): Editable vector typography symbols with custom colour and size. - Element Borders (
border): Decorative bordered frames with optional per-element Border Art tiles. - Freehand Drawing Paths (
drawing_path): Programmatic SVG vector strokes rendered directly onto the canvas supportingpencil,brush, andspraystyling. - Scoped Custom HTML/CSS Blocks (
custom_html): Sanitized HTML/CSS containers for multi-column cards, calendars, itineraries, or custom visuals, automatically rewriting CSS rules under a unique.op-ai-scope-*selector so styles cannot leak onto the canvas or app UI while keeping content editable.
4. Toolbar Integration, Theme-Reactive AI.png Icon & Draggable Modal (index.html, style.css, ui/icons/AI.png)
- Quick Access & Ribbon Entry Points: Added Quick Access button (
#qat-ai-assistant-btn), Home ribbon AI Studio > AI Assistant (#ribbon-home-ai-btn), and Insert ribbon AI Studio > AI Layout (#ribbon-insert-ai-btn), sized visually (28px x 28pxon the ribbon with balanced margins,17px x 17pxin the title bar) to align cleanly with surrounding icons and labels. - Theme-Reactive Icon Hue Shift: Applied
hue-rotate(var(--ui-theme-hue-shift, 0deg)) grayscale(var(--ui-theme-grayscale, 0%))toui/icons/AI.pngso the ribbon icon adapts across all UI themes identically toWordArt.pngandBetaWordArt.png. - Draggable Assistant Dialog (
#op-ai-modal-overlay) & Workflow: - Launch from Quick Access, Home > AI Studio > AI Assistant, or Insert > AI Studio > AI Layout.
- Type a request (minimum 8 characters, multi-word) or pick a Quick Ideas starter chip (Event Flyer, Business Card, Data Report, Certificate, Dark & Grid).
- Optionally check Clear current page elements before generating layout, then click Generate or press
Ctrl+Enter. - Edit, move, or restyle any generated object directly, or press
Ctrl+Z/ click Undo AI Action to revert the entire batch in one step.
β Browser Verification Coverage
Executed automated end-to-end verification in headless Chromium via Playwright (scratch/test_ai_assistant.py) against a local server serving index.html with mocked Cloudflare Worker nodes (openpub-ai-*.openpublisher.workers.dev) and stubbed external CDN image routes:
- Toolbar Icon & Visual Ribbon Sizing: Confirmed
ui/icons/AI.pngrenders (naturalWidth > 0) across#qat-ai-assistant-btn,#ribbon-home-ai-btn(28x28), and#ribbon-insert-ai-btn(28x28), verified baseline alignment against adjacent ribbon buttons at1760x900, and confirmed computed CSS filter updates dynamically when switching betweenPublisher / Classic (Teal)andSunset (Orange). - Prompt Schema & Validation: Verified
window.buildAISystemPrompt()outputs live canvas context (mm,ColorScheme),SPACING RULE(10mmvertical gap,20mmborderArtedge clearance), and schema definitions; verified client-side rejection of<8-char and single-word prompts before any network call. - UUID Identity,
503Rollover,429Stop & Cooldown: Verified persistentlocalStorage["opub_device_id"]UUID v4 generation,X-Device-IDheader delivery, sequential503x2 ->200failover across 3 distinct shuffled endpoints, 20-second cooldown lock (opub_ai_last_gen_ts), and immediate 1-request stop displaying the rate-limit message on HTTP429. - Full 21-Type Execution, Scoped CSS & Single-Step
Ctrl+ZUndo: Confirmed all 21 element types created in#paperat exactmm -> pxcoordinates (57pxat15mm), Theme Studio (#ts-gallery-popoveraurora-sky), Border Art (stars), Watermark (AI PROOF), Header/Footer, Dark Mode, Grid, Baselines, Bounds, Oceanic colour scheme, isolatedcustom_htmlCSS rules,v5.20.0in the About dialog, zero unexpected console or page errors, and complete single-stepCtrl+Zreversal back to0elements (historyIndex === 0).
π Version Synchronization (v5.20.0)
| Component | Target Version | Updated Reference |
|---|---|---|
| AI Assistant Engine & Icon | v5.20.0 |
New module extensions/ai-assistant.js, AIAssistant.VERSION, and ui/icons/AI.png |
| Service Worker | v5.20.0 |
open-publisher-v5-20-0-1 and header comment in sw.js |
| About Dialog & UI Interactions | v5.20.0 |
Header comment, Knowledge Base icon query strings, and About dialog (β’ v5.20.0) in extensions/ui-interactions.js |
| Print & Watermark Engines | v5.20.0 |
Header comment in extensions/print-engine.js; header and init log in extensions/watermark-engine.js |
| Proofing & Spellcheck | v5.20.0 |
Headers and load log in tools/proofing/dictionary.js and tools/proofing/spellcheck-engine.js |
| PWA Installer | v5.20.0 |
Service worker registration sw.js?v=5.20.0 in extensions/pwa-install.js |
| Application Cachebusters | v5.20.0 |
Script, style, and image asset query strings updated to ?v=5.20.0 in index.html |
| Dashboard & Template Assets | v5.20.0 |
ui/dashboard.js and elements/templates/templates.js (getTemplateAssetUrl) |
| README Badges & Listing | v5.20.0 |
Badge asset query strings (?v=5.20.0) and concise AI Layout & Command Assistant feature listing in README.md |
β Checklist Completed
- [x] Implement 7-node Cloudflare Worker client (
openpub-ai-1toopenpub-ai-7) with persistent UUID (opub_device_id/X-Device-ID), prompt validation, 20-second cooldown, Fisher-Yates shuffle, instant503rollover, and429rate-limit stop - [x] Build
buildAISystemPrompt(currentPageContext)with live page dimensions, units, scheme palette, 3-part JSON schema, and 10mm/20mmSPACING RULE - [x] Wire execution engine across
appCommands,pageConfig, all 21 native element types, and.op-ai-scope-*scopedcustom_html - [x] Ensure atomic single-step
Ctrl+Zundo without modalfocusoutpollution - [x] Add Quick Access, Home ribbon, and Insert ribbon buttons with sized, UI-theme hue-shifted
ui/icons/AI.pngicons - [x] Synchronize
v5.20.0across service worker, cachebusters, engines, About dialog, and conciseREADME.mdfeature listing - [x] Pass Playwright end-to-end verification suite and visual ribbon alignment inspection with zero unexpected errors
- [x] Consolidate v5.20.0 architecture, quota, capability, and verification details into
v5_20_0_release_notes.mdwithout duplication - [x] Commit changes locally on
main(leavinggit pushto user)
π Version 5.20.0 - Open Publisher