Top
Best
New

Posted by GeneralMaximus 15 hours ago

Deno Desktop(docs.deno.com)
934 points | 345 commentspage 3
seego 8 hours ago||
Neat! Is there any "bundle/integrate with existing native application" story like Tauris sidecar [0]?

[0]: https://v2.tauri.app/develop/sidecar/

gabeidx 7 hours ago|
From what I understood, what you want is `deno desktop --include […]`.

> Includes an additional module or file/directory in the compiled executable.

steve_adams_86 7 hours ago||
This works well. I’ve been using it to bundle other binaries with my applications and so far my users have had no issues on Windows, Linux, and macOS. I’m still a bit surprised given how new it is
seego 7 hours ago||
That's great to know, thanks! Will look into that.
umvi 2 hours ago||
So I guess this is a competitor to Electron?
karol 9 hours ago||
Of all the content they put out I liked the comparison section the most. The last row says iOS/Android - Electron: no, deno: not yet. If they deliver on this it will get much bigger.
jesse_dot_id 8 hours ago||
This is kind of exciting. I have a lot of web development experience but every time I've tried to write a desktop app in the past, it just feels like a very clunky and unintuitive experience.

Smart move from the Deno team to get me to try out their ecosystem. I probably wouldn't have bothered prior. I've been mostly fine with npm, as its been much faster of late, and the security features recently released are good.

daft_pink 14 hours ago||
Is it going to support iOS/Android?
bartlomieju 10 hours ago||
Bartek from the Deno team here. No promises yet, but we're looking into feasibility of it.
koolala 12 hours ago|||
No customizable programmable browser runtimes exist for those.
rbits 10 hours ago||
What do you mean by that? Does this[1] not count?

[1] https://capacitorjs.com/

koolala 5 hours ago||
Correct, that isn't a browser it uses a webview. The limited webview version of Deno Desktop could work like that on phones.
robtro 8 hours ago||
The docs say it's planned but no proper roadmap for it yet.
omojo 9 hours ago||
Impressive work. This is going to be really interesting for vibe coding Desktop apps. I imagine this on Lovable, Bolt or v0 since they basically default to using Typescript for building web apps. I've been using Go/Wails for desktop projects rather than a bundled Chromium and Node in a small desktop app, Electron did a good job but that was a big No for me.
pier25 4 hours ago||
So how much does a hello world weight?
josephernest 9 hours ago||
> deno desktop is opinionated about those tradeoffs:

> Small by default, full Node compatibility

I tried `deno desktop index.ts` with the 5-line Hello world in the article.

Result (Windows 10): 442 MB. Ouch.

I thought it would be smaller than an Electron build, but it's far worse. Did I do something wrong?

(libcef.dll: 247 MB) (deno-test.dll: 78 MB <- contains the hello world)

fny 8 hours ago||
libcef is the Chromium embedded framework[0], so your build isn't using a webview or maybe its using both. I just tried it on my mac, and I can't keep libcef out even with `--backend webview`.

https://github.com/chromiumembedded/cef

josephernest 8 hours ago|||
IIRC Electron hello world is ~ 100-150 MB because it bundles a browser/Chromium runtime.

So I hoped we could have a <= 20 MB solution by reusing the OS webview or similar. Having more than 400 MB is a bit deceptive for me. (Again: maybe I just did something wrong in the config: should I do something else than `deno desktop test.ts`?)

undefined_void 8 hours ago||
Try the webview backend: `deno desktop --backend webview`
IdiotSavage 8 hours ago||
The docs say that's the default:

https://docs.deno.com/runtime/desktop/backends/#webview-(def...

crowlKats 6 hours ago||
apologies, this is inaccurate currently, will get things updated
asim 12 hours ago|
Curious to know who is using Deno in anger most days and in production full time? It seems like the choice of JS runtimes exploded over the past few years with that, Bun, etc.
steve_adams_86 7 hours ago||
I use it for several applications (frontend, backend, CLIs) in production settings, and it has been excellent. Caveat: I serve small internal teams mostly, some projects only serve < dozen users. One is around 500/day. No issues at all. I’ll definitely use Deno desktop for these internal tools. Their binary compilation (especially now that it can include other binaries) has been totally sound and I expect this to work well too.

Worth noting is that the team has improved compilation features steadily. Every issue I watched last year has been completed and I’m not encountering blockers anymore.

flexagoon 12 hours ago||
Why "etc."? Isn't it just node, bun and deno? Genuine question
asim 12 hours ago|||
In case someone is using something we haven't heard of e.g some are running using cloudflare workers which also has some unique runtime properties. AWS has something called LLRT.

https://github.com/awslabs/llrt

https://developers.cloudflare.com/workers/runtime-apis/

syrusakbary 4 hours ago||
We have created Edge.js that can run Node.js apps fully using your preferred JS runtime: V8 or QuickJS.

https://edgejs.org/

gr4vityWall 9 hours ago|||
There's QuickJS, LLRT, Rhino, and GameMaker is about to get TS/JS support.
More comments...