𝗧𝘂𝗿𝗻 𝗬𝗼𝘂𝗿 𝗪𝗲𝗯 𝗔𝗽𝗽 𝗶𝗻𝘁𝗼 𝗮 𝗗𝗲𝘀𝗸𝘁𝗼𝗽 𝗔𝗽𝗽 𝘄𝗶𝘁𝗵 𝗗𝗲𝗻𝗼
You can now build desktop apps using Deno.
Deno is no longer a runtime for servers and scripts only. Deno Desktop lets you package your app for macOS, Windows, and Linux. You do not need to learn a new language. You do not need to move your backend logic.
How it works: Your app runs like a web app. You serve HTML, CSS, and JavaScript using Deno.serve(). Deno then opens your app in a native desktop window.
The architecture is simple: • Desktop window • Local webview • Deno.serve() • HTML and API routes
Why use this?
- Use standard browser APIs for your UI.
- Use Deno APIs for your backend.
- Build with TypeScript immediately.
- Reuse your web development skills.
- Use frameworks like Fresh, Astro, or Next.js.
Deno Desktop is in the Deno 2.9 canary build. You can try it now.
Follow these steps to start:
Upgrade to the canary version: deno upgrade canary
Create your project: mkdir deno-desktop-app cd deno-desktop-app touch main.ts
Write a simple server in main.ts: Deno.serve((request) => { return new Response("
Hello from Deno Desktop 👋
", { headers: { "content-type": "text/html" }, }); });Run your desktop app: deno desktop main.ts
This is a great tool for internal tools, admin panels, developer tools, and local AI apps. It closes the gap between web and desktop development.
If you know JavaScript and TypeScript, you can build desktop software today.
Source: https://dev.to/marrouchi/turn-your-web-app-into-a-desktop-app-with-deno-2p7c