[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-1943":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":30,"discoverSource":31},1943,"desktop-mode","WordPress\u002Fdesktop-mode","WordPress","Desktop Mode is a WordPress plugin that turns \u002Fwp-admin into a desktop-style interface with movable windows and a dock menu. It’s opt-in per user, doesn’t change core, and fully reverts on deactivation.","",null,"TypeScript",240,25,5,14,0,2,10,64,6,59.64,"GNU General Public License v2.0",false,"trunk",true,[],"2026-06-12 04:00:12","# WP Desktop Mode\n\nA WordPress plugin that reimagines `\u002Fwp-admin` as a desktop operating system. Admin screens open as draggable, resizable, minimizable **windows** on a **desktop**, with a left-edge **dock** built from the admin menu. Purely opt-in per user — the classic admin stays untouched for everyone else, and deactivating the plugin restores vanilla Core exactly.\n\nZero Core patches. Every feature is wired through public WordPress hooks.\n\n[![Active Installs](https:\u002F\u002Fimg.shields.io\u002Fwordpress\u002Fplugin\u002Finstalls\u002Fdesktop-mode?logo=wordpress&logoColor=%23fff&label=Active%20Installs&labelColor=%2323282D&color=%2323282D)](https:\u002F\u002Fwordpress.org\u002Fplugins\u002Fdesktop-mode\u002F) [![Playground Demo Link](https:\u002F\u002Fimg.shields.io\u002Fwordpress\u002Fplugin\u002Fv\u002Fdesktop-mode?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0c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labelColor=%233858e9&color=%233858e9)](https:\u002F\u002Fplayground.wordpress.net\u002F?blueprint-url=https:\u002F\u002Fraw.githubusercontent.com\u002FWordPress\u002Fdesktop-mode\u002Frefs\u002Fheads\u002Ftrunk\u002F.wordpress-org\u002Fblueprints\u002Fblueprint.json) [![Studio Demo Link](https:\u002F\u002Fimg.shields.io\u002Fwordpress\u002Fplugin\u002Fv\u002Fdesktop-mode?logo=wordpress&logoColor=%23fff&label=Open%20in%20WordPress%20Studio&labelColor=%2323282D&color=%2323282D)](https:\u002F\u002Fwp.com\u002Fopen?deep_link=add-site%3Fblueprint_url%3Dhttps%253A%252F%252Fraw.githubusercontent.com%252FWordPress%252Fdesktop-mode%252Frefs%252Fheads%252Ftrunk%252F.wordpress-org%252Fblueprints%252Fblueprint.json)\n\n## Demo\n\n\u003Cvideo src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F590aacc2-e9d7-4213-889e-b91e060e1bd8\" controls width=\"720\">\u003C\u002Fvideo>\n\n---\n\n## Contents\n\n- [Demo](#demo)\n- [Current State](#current-state)\n- [Still ahead](#still-ahead)\n- [Repository layout](#repository-layout)\n- [How to run it](#how-to-run-it)\n  - [Quick install](#quick-install)\n  - [Development setup](#development-setup)\n- [Requirements](#requirements)\n- [For plugin authors](#for-plugin-authors)\n- [License](#license)\n\n---\n\n## Current State\n\n- **Per-user opt-in**\n  Admin-bar toggle sets the `desktop_mode_mode` user meta. A dedicated `\u002Fdesktop-mode\u002F` portal URL auto-enables desktop mode for first-time visitors (gated by `desktop_mode_portal_auto_enable`) and the `admin_init` redirect sends opted-in users from `\u002Fwp-admin\u002F` to the portal (`desktop_mode_admin_redirect_to_portal`).\n\n- **Desktop shell**\n  Fixed-viewport desktop that overlays `\u002Fwp-admin`: wallpaper area, unified dock (placement picked in OS Settings — left \u002F right \u002F bottom, default bottom), right-column widget layer, and full windowing system. `desktop_mode_mode_init`, `desktop_mode_shell_before` \u002F `_after`, and the `desktop_mode_shell_config` filter are the main extension points.\n\n- **Window system — iframe + native**\n  Iframe windows load admin pages with `?wp_desktop=1` (chromeless mode). Native windows render directly in the parent DOM via `desktop_mode_register_window()` \u002F `wp.desktop.registerWindow()` — multi-tab native windows are supported through `desktop_mode_register_window_tab()`. Both types share drag, resize, minimize, maximize, close, fullscreen, and detach-to-new-tab.\n\n- **Dock**\n  One unified rail hosting every admin menu — core and plugin alike — plus shell-level system tiles. Placement (left \u002F right \u002F bottom) is the user's OS Settings preference. Core menus are ordered before plugin menus; per-item hiding via `desktop_mode_dock_placement` (`'hidden'`). Per-item multi-window support via `desktop_mode_dock_item_multi`. Letter-badge icon fallback for plugins without icon art.\n\n- **Virtual desktops (“Spaces”)**\n  Multiple desktops per user, each with its own window set. Overview grid (zoom-out view) surfaces the Spaces switcher, thumbnails, and create\u002Fclose controls.\n\n- **Arrange & snap**\n  Admin-bar Arrange menu: Cascade, Tile, Overview, Snap to grid. Plugins contribute custom entries via `desktop_mode_arrange_menu_items` and react to clicks via `desktop-mode.arrange.custom-action`. Tile grid dimensions and snap cell size are both filterable.\n\n- **Wallpaper registry**\n  Server- and client-side registration (`desktop_mode_register_wallpaper()` \u002F `wp.desktop.registerWallpaper()`). CSS presets + canvas (WebGL\u002F2D) wallpapers with collision-aware surface data (`wp.desktop.getWallpaperSurfaces()`) for snow\u002Frain\u002Fphysics effects. In-panel `renderEditor` callback for custom controls, shared vendor-module loader (`pixijs` pre-registered).\n\n- **Widgets**\n  Right-column floating cards, optionally draggable \u002F resizable outside the column. `desktop_mode_register_widget()` \u002F `wp.desktop.registerWidget()`. Built-in clock. User placement persists per-user in `localStorage`.\n\n- **Desktop icons**\n  Wallpaper-layer shortcuts via `desktop_mode_register_icon()` — targets a registered native window or an admin URL.\n\n- **AI Assistant + slash commands**\n  Cmd+K palette backed by an OpenAI agentic loop (search_posts, search_pages, search_comments tools). Admin-configured API key + model picker. Auto-analysis on `save_post` \u002F term \u002F comment save with per-entity prompt filters. `wp.desktop.registerCommand()` adds slash commands with autocomplete (`suggest()`), confirm dialogs (`ctx.confirm()`), and full lifecycle hooks (`before-run` \u002F `after-run` \u002F `error`). Built-in `\u002Fopen [window]` is extensible via `desktop-mode.open-command.items`.\n\n- **Palette registry**\n  Cmd+K cycles through all registered palettes (`wp.desktop.registerPalette()`) — the AI assistant is palette 0 by default; additional plugin overlays share the shortcut.\n\n- **Cross-frame drag bridge**\n  Media-library attachments drag across iframe boundaries via coordinated postMessage. Site-wide toggle through the Extended Options REST endpoint.\n\n- **Toast notifications**\n  Shell-level toasts rendered via the `\u003Cwpd-toast>` component. Plugins register their own tone\u002Ficon via the `desktop_mode_toast_types` filter. Iframe pages raise a toast through the `desktop-mode-notification` bridge message — it survives the iframe's own lifecycle.\n\n- **OS Settings**\n  Native-window settings panel: wallpaper picker (with HD-only media filter), accent color swatches + custom gradient editor, dock size slider, AI platform config, and per-user default-on-startup window. Persisted via `\u002Fdesktop-mode\u002Fv1\u002Fos-settings`.\n\n- **Session persistence**\n  Full window stack (including desktops, focus, state) is debounce-saved to `\u002Fdesktop-mode\u002Fv1\u002Fsession` and restored without layout flicker. Viewport-shrink clamping keeps off-screen windows reachable.\n\n- **postMessage bridge**\n  Typed messages for title changes, navigation (same-origin validated), focus, color-scheme sync, screen-meta panels (Screen Options \u002F Help), external-link capture, iframe-ready handshake, and observability (`iframe-error`, `iframe-network`).\n\n- **UI component library**\n  ~25 `\u003Cwpd-*>` web components (`wpd-button`, `wpd-menu`, `wpd-panel`, `wpd-range-field`, `wpd-swatch`, `wpd-toast`, `wpd-tabs`, …) available to plugin authors — rendered server-side via `desktop_mode_component()` or imported in TS.\n\n- **i18n**\n  Full gettext coverage across PHP and TypeScript; Spanish translation shipped. Strings go through `wp.i18n` (`__`, `_x`, `_n`, `sprintf`) directly — no shell-specific re-export.\n\n- **Component registration API**\n  Stable `desktop_mode_register_*` functions for windows, widgets, wallpapers, icons, and window tabs. All return `true` \u002F `WP_Error` with documented error codes.\n\n- **Public hook API**\n  Comprehensive PHP and JS hook surface — dock items, placement, multi-window, native-window lifecycle, widget lifecycle, wallpaper lifecycle + surfaces, window lifecycle, iframe observability, arrange actions, virtual-desktop transitions, palette registration, command lifecycle, batch close, AI prompt + model + post-type filters, accents, toast types, default wallpaper. See [`docs\u002Fhooks-reference.md`](.\u002Fdocs\u002Fhooks-reference.md) and [`docs\u002Fjavascript-reference.md`](.\u002Fdocs\u002Fjavascript-reference.md).\n\n---\n\n## Still ahead\n\n- **Mobile (phone OS)** — purpose-built home-screen grid, full-screen apps, app switcher, gesture nav, bottom tab bar.\n- **Tablet hybrid** — split view, slide-over, horizontal dock. `wp.desktop.mode = 'desktop' | 'tablet' | 'mobile'` surface.\n- **Cross-window drag & drop (the North Star)** — extend the current drag bridge to Media → Gutenberg block insertion, with pluggable mime-type negotiation.\n- **Polish** — color-scheme-aware variables across all shell surfaces, View Transitions API animations, full a11y audit (ARIA, focus traps, keyboard nav).\n- **…and a whole lot more hooks, filters, and actions** — every new surface lands with its own extension points, so this list keeps growing.\n\nSee [`docs\u002Farchitecture.md`](.\u002Fdocs\u002Farchitecture.md) for how the pieces fit together and [`docs\u002Fhooks-reference.md`](.\u002Fdocs\u002Fhooks-reference.md) for the hook surface (current and planned).\n\nSee [`docs\u002Farchitecture.md`](.\u002Fdocs\u002Farchitecture.md) for how the pieces fit together and [`docs\u002Fhooks-reference.md`](.\u002Fdocs\u002Fhooks-reference.md) for the hook surface (current and planned).\n\n---\n\n## Repository layout\n\n```\n.\n├── desktop-mode.php       # bootstrap: header, constants, require_once of includes\u002F\n├── includes\u002F              # PHP subsystems\n│   ├── helpers.php              admin-bar.php       ajax.php\n│   ├── assets.php               render.php          portal.php\n│   ├── session.php              default-window.php  components.php\n│   ├── os-settings.php          extended-options.php\n│   ├── accents.php              wallpapers.php      toast-types.php\n│   ├── media-query.php\n│   └── ai-copilot\u002F              # AI assistant (OpenAI client, analysis, search, jobs)\n├── assets\u002F                # compiled CSS + JS (Vite output; tracked in git)\n│   ├── css\u002F  desktop.css, windows.css, dock.css, chromeless.css, variables.css\n│   └── js\u002F   desktop.js, desktop.min.js, chromeless bridge, media-library enhancements\n├── src\u002F                   # TypeScript source — compiled by Vite\n│   ├── desktop.ts \u002F dock.ts \u002F hooks.ts \u002F commands.ts \u002F palette-registry.ts\n│   ├── ai-assistant.ts \u002F drag-bridge.ts \u002F toast.ts \u002F desktop-icons.ts\n│   ├── native-windows.ts \u002F built-in-commands.ts \u002F public-api.ts \u002F types.ts\n│   ├── window\u002F          # Window class — DOM, pointer, tabs, iframe bridge\n│   ├── window-manager\u002F  # stack, desktops, arrange, snap, overview\n│   ├── wallpapers\u002F      # registry, layer, surfaces, server sync, vendor loader\n│   ├── widgets\u002F         # registry, layer, frame, picker, storage\n│   ├── settings\u002F        # OS Settings panel sections\n│   ├── ui\u002F              # \u003Cwpd-*> web components\n│   ├── modules\u002F         # vendor-script lazy-loader\n│   └── plugins\u002F         # built-in demos (animated-logo-wallpaper)\n├── docs\u002F                  # developer-facing docs (source of truth for plugin authors)\n├── tests\u002F                 # PHPUnit + Vitest\n├── languages\u002F             # .po \u002F .mo (es shipped)\n├── bin\u002F                   # package-zip helpers\n├── package.json           # devDeps (vite, typescript, vitest)\n├── vite.config.js         # Vite lib-mode: src\u002Fdesktop.ts → assets\u002Fjs\u002Fdesktop[.min].js (IIFE)\n├── vitest.config.ts\n└── tsconfig.json\n```\n\n---\n\n## How to run it\n\n### Quick install\n\nJust want to try it? Grab the pre-built zip and upload it to any WordPress — [Studio by WordPress.com](https:\u002F\u002Fdeveloper.wordpress.com\u002Fstudio\u002F), [`wp-env`](https:\u002F\u002Fdeveloper.wordpress.org\u002Fblock-editor\u002Freference-guides\u002Fpackages\u002Fpackages-env\u002F), or a hosted site. No Node, no build step.\n\n1. Download [`desktop-mode.zip`](https:\u002F\u002Fgithub.com\u002FWordPress\u002Fdesktop-mode\u002Freleases\u002Flatest\u002Fdownload\u002Fdesktop-mode.zip) from the latest release (or pick a specific version from the [releases page](https:\u002F\u002Fgithub.com\u002FWordPress\u002Fdesktop-mode\u002Freleases)).\n2. In WP Admin: **Plugins → Add New → Upload Plugin**, choose the zip, and activate.\n3. Click the **desktop** icon in the admin bar's top-right corner. The admin reloads inside the desktop shell. Click the same icon again to return to classic admin.\n\n### Development setup\n\nFor hacking on the plugin: clone the repo, run the build in watch mode, and load it into a local WordPress via symlink so every save is one browser refresh away.\n\n#### 1. Install dependencies\n\n```bash\nnpm install\n```\n\n#### 2. Build the TypeScript bundle\n\nThe plugin uses **[Vite](https:\u002F\u002Fvitejs.dev\u002F)** in library mode. esbuild handles transpile and minify, so builds finish in ~70 ms per bundle.\n\n**Full build** — produces every bundle (`npm run build:desktop`, `:iframe-bridge`, `:recycle-bin`, `:posts-window`):\n\n```bash\nnpm run build\n```\n\nWrites:\n\n- `assets\u002Fjs\u002Fdesktop.js` \u002F `.min.js` — main shell bundle (loaded based on `SCRIPT_DEBUG`).\n- `assets\u002Fjs\u002Fiframe-bridge.js` \u002F `.min.js` — opt-in bridge that gives any same-origin iframe access to `wp.desktop.iframe.*`.\n- `assets\u002Fjs\u002Frecycle-bin.js` \u002F `.min.js` — Recycle Bin native window.\n- `assets\u002Fjs\u002Fposts-window.js` \u002F `.min.js` — Native Posts window (the `\u003Cwpd-table>` replacement for the `edit.php` iframe; opt-in per user via OS Settings → Features).\n\n**Development watch** — auto-recompiles the unminified bundle on save:\n\n```bash\nnpm run dev\n```\n\nLeave it running in a separate terminal; refresh the browser after each save. Set `define( 'SCRIPT_DEBUG', true )` in `wp-config.php` so WordPress picks up the unminified bundle during development.\n\n#### 3. Load into a local WordPress\n\nYou need a running WordPress to load the plugin into. Pick whichever is easier.\n\n##### Studio, wp-env, or a hosted WP\n\nRun `npm run package` to build a zip from `HEAD` (with correct 0644 \u002F 0755 permissions), then follow the [Quick install](#quick-install) steps 2–3 to upload and activate it. Re-package and re-upload after each change.\n\n> If you changed source, run `npm run build` before `npm run package` — the Vite output is gitignored, and `bin\u002Fpackage.sh` splices the built files into the zip from your working tree.\n\n##### Clone `wordpress-develop` and symlink\n\nGives you the full dev loop: `npm run dev` rebuilds on save, a browser refresh picks it up.\n\n```bash\n# clone Core's Docker-based dev host alongside this repo\ngit clone https:\u002F\u002Fgithub.com\u002FWordPress\u002Fwordpress-develop.git\ncd wordpress-develop\nnpm install\n\n# symlink this plugin into the WP plugins directory\nln -s \"$(pwd)\u002F..\u002Falcazaba-plugin\" src\u002Fwp-content\u002Fplugins\u002Fdesktop-mode\n\n# boot + install WordPress\nnpm run env:start      # nginx + PHP + MySQL in Docker\nnpm run env:install    # installs WordPress\n```\n\nSite: **http:\u002F\u002Flocalhost:8889**\nAdmin: **http:\u002F\u002Flocalhost:8889\u002Fwp-admin\u002F**\nCredentials: `admin` \u002F `password`\n\nStop the environment with `npm run env:stop` (from the `wordpress-develop` directory). Activate the plugin per [Quick install](#quick-install) steps 2–3.\n\n---\n\n## Requirements\n\n- WordPress **6.0+**\n- PHP **7.4+**\n\n## For plugin authors\n\n**This plugin is built to be extended.** Every significant behavior is hookable — drop an icon on the desktop, add a dock item, gate desktop mode by role, react to window events, or register a native window, all from your own plugin with zero patches here.\n\n**See [`docs\u002F`](.\u002Fdocs\u002FREADME.md) — the developer documentation index.**\n\nQuick links:\n\n- [Getting Started](.\u002Fdocs\u002Fgetting-started.md) — the five-minute tour for plugin authors.\n- [Architecture](.\u002Fdocs\u002Farchitecture.md) — how the pieces fit together.\n- [Hooks Reference](.\u002Fdocs\u002Fhooks-reference.md) — every action and filter we fire, with signatures and examples.\n- [JavaScript Reference](.\u002Fdocs\u002Fjavascript-reference.md) — CustomEvents, `window.wp.desktop` API, and the iframe `postMessage` bridge.\n- [Examples](.\u002Fdocs\u002Fexamples\u002F) — copy-paste recipes.\n\n## License\n\nGPLv2 or later. See [LICENSE](LICENSE).\n","WordPress\u002Fdesktop-mode 是一个将 WordPress 后台管理界面转换为类似桌面操作系统的插件。它通过提供可拖动、可调整大小和最小化的窗口以及左侧的停靠菜单来重新构想 \u002Fwp-admin 界面，为用户提供更直观的操作体验。该插件采用 TypeScript 开发，完全基于公开的 WordPress 钩子构建，不修改核心代码，确保了良好的兼容性和安全性。用户可以按需启用此功能，停用后系统将恢复到默认状态。适用于希望提高后台管理效率或偏好桌面风格操作界面的 WordPress 用户。","2026-06-11 02:46:59","CREATED_QUERY"]