An example Gleam project that shows how to use deno desktop to run a Lustre application as a desktop app.
  • Gleam 79.5%
  • JavaScript 12.8%
  • Shell 5.9%
  • CSS 1.8%
Find a file
2026-06-27 00:14:58 +10:00
client Update scripts 2026-06-26 23:52:56 +10:00
server Update scripts 2026-06-26 23:52:56 +10:00
shared Initial commit 2026-06-25 22:57:13 +10:00
.gitignore Improve handling of public directory 2026-06-26 23:36:21 +10:00
README.md Improve readme wording 2026-06-27 00:14:58 +10:00

Deno Desktop Lustre Example

An example Gleam project that shows how to use deno desktop to run a Lustre application as a desktop app.

Development

First build and bundle the client application:

cd client
gleam build
deno bundle -o ../server/public/client.js entry.js # optionally add --minify
cd ..

Then build and run the server application:

cd server
gleam build
deno desktop --no-check --allow-all --include public --hmr serve.js # optionally add --backend cef

When building an executable to distribute you may also want to bundle the server application:

cd server
gleam build
deno bundle -o server-bundle.js serve.js
deno desktop --no-check --allow-all --include public -o dist server-bundle.js # optionally add --minify

The server can also be run as a regular web server, with the Lustre application viewable in a browser:

cd server
gleam build
deno serve --allow-all serve.js # or bun serve.js