Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.20.0
Name Modified Size InfoDownloads / 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.

op-AILayoutAndCommandAssistant


πŸ› οΈ 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-1 to openpub-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, and openai/gpt-oss-120b for sub-second JSON, HTML, and CSS layout generation.
  • 4 Pooled Google AI Studio Nodes (openpub-ai-4 to openpub-ai-7):
  • Backed by four separate Google AI Studio developer projects running gemini-3.5-flash-lite for high daily capacity and spatial reasoning on multi-element documents.
  • Classroom-Safe Load Balancing & Instant 503 Rollover (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 503 or 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 the X-Device-ID header 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 HTTP 429.

2. Native Context Prompting & Atomic Undo (buildAISystemPrompt, applyAILayoutResponse)

  • Physical Millimeter Precision & Spacing Rules:
  • buildAISystemPrompt passes live canvas dimensions (mm and 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, elements in x_mm, y_mm, width_mm, height_mm).
  • Explicitly enforces SPACING RULE instructions requiring at least 10mm vertical spacing between stacked elements to prevent overlap and keeping all elements at least 20mm from 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 focusout blur triggers inside #op-ai-modal-overlay, and pushes a single post-AI snapshot so Ctrl+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, or eraser with 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 in portrait/landscape orientation, 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-popover categories 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 .opub templates.

C. 21 Native Editable Canvas Element Types (elements)

  1. Text Boxes (text_box): Rich text containers with custom font family, size, weight, underline, alignment, colour, background, padding, and borders.
  2. Styled Text Boxes (styled_text_box): Pre-styled quote blocks and callout containers from TextBoxStylesSystem (quote-teal, callout-tip, card-dark, etc.).
  3. Beta WordArt (wordart_beta): High-resolution display typography rendered across styles 1 through 200.
  4. Legacy WordArt (wordart_legacy): Classic styled typography (1 through 214) synchronized via syncWordArt.
  5. Tables (table): Custom rows, columns, headers, and cell data with styled borders and backgrounds.
  6. Styled Tables (styled_table): Formatted data tables powered by OpTableStyles across 22 designs (round, grid, accentbar, cards, ledger, etc.) and 40 colour palettes.
  7. Charts & Graphs (chart): Native SVG visualizations for pie, donut, half-donut, column, stacked-column, bar, line, area, and radar datasets.
  8. Promotional Ad Badges (ad_badge): Scalable SVG bursts, discount tags, seals, and ribbons powered by AdvertisementEngine with configurable text and palettes.
  9. Page Parts (page_part): Structural editorial modules including sidebar, pullquote, heading, callout, contact, step, bio, checklist, review, event-date, stat, signature, pros-cons, qa-block, takeaway, and warning.
  10. 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.
  11. Smart Arrows (smart_arrow): Parametric directional, curved, and U-turn arrows with stem-only stretching (block-right, chevron-right, curved-down-right, etc.).
  12. Progress Bars (progress_bar): Pill, flat, chamfered, and segmented bars with custom percentages and labels via ProgressBarEngine.
  13. Coupons (coupon): Cut-line promotional vouchers (standard, tearaway, bogo, vip, promo, ticket, raffle, etc.) with custom copy and promo codes.
  14. QR Codes (qr_code): Scannable QR graphics generated from any URL or text with custom foreground/background colours and square/rounded/circle framing.
  15. Business Info Blocks (business_info): Structured letterhead, signature, or individual business metadata blocks with automatic fallback defaults when saved profile fields are empty.
  16. Web ClipArt (clipart): Automatic keyword search and placement from webClipartLibrary.
  17. Emojis (emoji): Crisp SVG emoji graphics scaled cleanly to any millimeter bounding box.
  18. Special Symbols (symbol): Editable vector typography symbols with custom colour and size.
  19. Element Borders (border): Decorative bordered frames with optional per-element Border Art tiles.
  20. Freehand Drawing Paths (drawing_path): Programmatic SVG vector strokes rendered directly onto the canvas supporting pencil, brush, and spray styling.
  21. 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 28px on the ribbon with balanced margins, 17px x 17px in 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%)) to ui/icons/AI.png so the ribbon icon adapts across all UI themes identically to WordArt.png and BetaWordArt.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.png renders (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 at 1760x900, and confirmed computed CSS filter updates dynamically when switching between Publisher / Classic (Teal) and Sunset (Orange).
  • Prompt Schema & Validation: Verified window.buildAISystemPrompt() outputs live canvas context (mm, ColorScheme), SPACING RULE (10mm vertical gap, 20mm borderArt edge clearance), and schema definitions; verified client-side rejection of <8-char and single-word prompts before any network call.
  • UUID Identity, 503 Rollover, 429 Stop & Cooldown: Verified persistent localStorage["opub_device_id"] UUID v4 generation, X-Device-ID header delivery, sequential 503 x2 -> 200 failover 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 HTTP 429.
  • Full 21-Type Execution, Scoped CSS & Single-Step Ctrl+Z Undo: Confirmed all 21 element types created in #paper at exact mm -> px coordinates (57px at 15mm), Theme Studio (#ts-gallery-popover aurora-sky), Border Art (stars), Watermark (AI PROOF), Header/Footer, Dark Mode, Grid, Baselines, Bounds, Oceanic colour scheme, isolated custom_html CSS rules, v5.20.0 in the About dialog, zero unexpected console or page errors, and complete single-step Ctrl+Z reversal back to 0 elements (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-1 to openpub-ai-7) with persistent UUID (opub_device_id / X-Device-ID), prompt validation, 20-second cooldown, Fisher-Yates shuffle, instant 503 rollover, and 429 rate-limit stop
  • [x] Build buildAISystemPrompt(currentPageContext) with live page dimensions, units, scheme palette, 3-part JSON schema, and 10mm/20mm SPACING RULE
  • [x] Wire execution engine across appCommands, pageConfig, all 21 native element types, and .op-ai-scope-* scoped custom_html
  • [x] Ensure atomic single-step Ctrl+Z undo without modal focusout pollution
  • [x] Add Quick Access, Home ribbon, and Insert ribbon buttons with sized, UI-theme hue-shifted ui/icons/AI.png icons
  • [x] Synchronize v5.20.0 across service worker, cachebusters, engines, About dialog, and concise README.md feature 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.md without duplication
  • [x] Commit changes locally on main (leaving git push to user)

πŸš€ Version 5.20.0 - Open Publisher

Source: README.md, updated 2026-11-11