Skip to content

docs: add deno desktop reference page#3085

Draft
lunadogbot wants to merge 6 commits into
denoland:2.8from
lunadogbot:docs/2.8-deno-desktop
Draft

docs: add deno desktop reference page#3085
lunadogbot wants to merge 6 commits into
denoland:2.8from
lunadogbot:docs/2.8-deno-desktop

Conversation

@lunadogbot
Copy link
Copy Markdown
Contributor

Summary

Adds a reference page for the new (experimental) deno desktop subcommand from the 2.8 milestone (denoland/deno#33441). The page documents the public-facing surface in the upstream PR and explicitly marks it experimental, since the API is still evolving.

Covered:

  • Quick start, including framework-detection mode (deno desktop .).
  • The three rendering backends — cef, webview, raw — and how WEF binaries are downloaded/cached.
  • Framework auto-detection list (Next.js, Astro, Fresh, Remix, Nuxt, SvelteKit, SolidStart, TanStack Start, Vite SSR) and the --hmr flow.
  • The Deno.BrowserWindow API surface (window lifecycle, bind/unbind RPC, executeJs, menus, native handle), plus Deno.dock and Deno.Tray.
  • Native prompt() / alert() / confirm() and the desktop.errorReporting.url hook.
  • Unified DevTools (--inspect / --inspect-brk / --inspect-wait).
  • Auto-updater (Deno.autoUpdate, Deno.desktopVersion).
  • Cross-compile and per-platform output formats (.app / .dmg / .exe / .AppImage).
  • The desktop config block in deno.json.

Also notes what is not yet implemented (codesigning, MSI, deb/rpm, notifications, clipboard, secureStorage).

Sidebar entry in runtime/_data.ts, entry in the CLI index page.

Test plan

  • deno task serve — page renders, sidebar entry resolves.
  • Page will need a follow-up sweep once the upstream PR settles. Marked experimental at the top so readers don't take it as gospel.

lunadogbot and others added 6 commits April 29, 2026 11:48
Adds a CLI reference page for the new (experimental) deno desktop
subcommand which builds self-contained desktop apps from a Deno
project. Documents the three rendering backends (cef / webview / raw),
framework auto-detection, HMR, the Deno.BrowserWindow / Deno.Tray /
Deno.dock APIs, the unified DevTools session, the auto-updater, the
cross-compile output formats, and the new \`desktop\` block in
deno.json. Marks the surface as still evolving. Adds entries to the
CLI index and sidebar.

Refs denoland/deno#33441
Adds a new runtime/desktop/ section with 16 guides covering configuration,
backends, framework auto-detection, HTTP serving, the BrowserWindow API,
bindings, menus, tray/dock, dialogs, HMR, unified DevTools, auto-update,
error reporting, distribution, and a comparison vs Electron/Tauri/etc.

Slims down runtime/reference/cli/desktop.md to a flag reference that links
into the new section, and wires up the sidebar in runtime/_data.ts.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Drops `command: desktop` and `openGraph*` frontmatter so renderCommand.tsx
isn't invoked — there is no `desktop` entry in `_commands_reference.json`
yet, and the renderer accesses `.about` unconditionally.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@crowlKats crowlKats changed the base branch from main to 2.8 May 5, 2026 11:43
Copy link
Copy Markdown
Contributor

@fibibot fibibot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR adds 2,701 lines, which is over the scheduled-review size limit. Can this be split into smaller PRs, for example the reference page skeleton first and the generated/long-form sections separately?

@crowlKats
Copy link
Copy Markdown
Member

Deferred from this release

@crowlKats crowlKats changed the title docs: add deno desktop reference page (2.8) docs: add deno desktop reference page May 19, 2026
@crowlKats crowlKats marked this pull request as draft May 19, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants