Skip to main content

Carol

Build Status https://img.shields.io/github/tag/uki00a/carol.svg license deno doc

Note: This module is still work in progress.

Carol is a deno module to build desktop applications using Deno, HTML, and Google Chrome. This module is a port of carlo to Deno.

Requirements

  • Deno🦕
  • Google Chrome (Carol uses locally-installed Google Chrome to provide UI.)

Examples

import { launch } from "https://deno.land/x/carol@v0.2.0/mod.ts";
import { dirname, join } from "https://deno.land/std@0.70.0/path/mod.ts";

const app = await launch({
  title: "Hello Deno!",
  width: 480,
  height: 320
});

app.onExit().then(() => Deno.exit(0));

await app.exposeFunction("greet", (name: string) => `Hello, ${name}!`);
const folder = join(dirname(new URL(import.meta.url).pathname), "public");
app.serveFolder(folder); // Serve contents from "./public" folder
await app.load("index.html");

License

  • This module contains code adopted from the following projects. They have preserved their individual licenses and copyrights.
  • Additional work with this module is licensed under the MIT license.