𝗧𝘂𝗿𝗻 𝗬𝗼𝘂𝗿 𝗪𝗲𝗯 𝗔𝗽𝗽 𝗶𝗻𝘁𝗼 𝗮 𝗗𝗲𝘀𝗸𝘁𝗼𝗽 𝗔𝗽𝗽 𝘄𝗶𝘁𝗵 𝗗𝗲𝗻𝗼

You no longer need to learn a new language to build desktop software.

Deno Desktop allows you to package your web app as a native application for macOS, Windows, and Linux. You use your existing web skills to ship a desktop product.

How it works:

Your app runs like a web application. You serve HTML, CSS, and JavaScript using Deno.serve(). Deno then opens your app inside a desktop window.

The architecture follows this flow:

• Desktop window • Local webview • Deno.serve() • HTML and API routes

This model offers several benefits:

  • Use standard browser APIs for your UI.
  • Use Deno APIs for your backend logic.
  • Write TypeScript without extra setup.
  • Reuse web development patterns you already know.
  • Switch to frameworks like Astro or Next.js later.

Deno Desktop is part of the upcoming Deno 2.9 release. It is available now through the canary build.

To start, upgrade your Deno installation:

deno upgrade canary

Then, create a main.ts file with a simple Deno server. Run your app with this command:

deno desktop main.ts

This is ideal for building:

  • Internal tools
  • Admin panels
  • Developer tools
  • Local-first applications
  • Dashboards
  • AI tools needing local filesystem access

If you know JavaScript and TypeScript, you can build desktop software today. You write a server, run the desktop command, and your app is ready.

Source: https://dev.to/marrouchi/turn-your-web-app-into-a-desktop-app-with-deno-2p7c