crate

crate — native apps with deno!

demo

get started

all you need to do is make two files. seriously!

main.ts

import { Crate, file } from "https://deno.land/x/crate/mod.ts";

let crate = new Crate();
crate.title = "Crate";
crate.url = await file("index.html");
crate.width = 720, crate.height = 480;
crate.run();

index.html

<html>
  <main>hello from index.html!</main>
</html>

linux/mac

run the command below in your terminal, and a window will appear —

deno run -A --unstable main.ts

windows

run the command below to get crate.exe. Zip this with index.html and distribute!

deno run -A --unstable https://crate.land/compile main.ts

roadmap

  • make basic window control and customization
  • custom executables that can be packaged and delivered (windows only)
  • universal support
  • ??? — make an issue!

related

contact

GitHub

View Github