All Projects → uki00a → carol

uki00a / carol

Licence: MIT license
A Deno port of carlo

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to carol

deno deploy versailles
凡尔赛语录(部署在 Deno Deploy)
Stars: ✭ 18 (-71.43%)
Mutual labels:  deno, deno-module
deno serverless aliyun
为阿里云 serverless 平台添加 Deno Runtime
Stars: ✭ 60 (-4.76%)
Mutual labels:  deno, deno-module
typeorm
Forked from https://github.com/typeorm/typeorm
Stars: ✭ 107 (+69.84%)
Mutual labels:  deno, deno-module
dataStructure
Implement different Data Structures using TypeScript and JavaScript. Deno Third-party Module.
Stars: ✭ 24 (-61.9%)
Mutual labels:  deno, deno-module
Fae
A functional module for Deno inspired from Ramda.
Stars: ✭ 44 (-30.16%)
Mutual labels:  deno, deno-module
deno install
Deno 安装器(国内加速)
Stars: ✭ 58 (-7.94%)
Mutual labels:  deno, deno-module
wasm
fast wasm modules
Stars: ✭ 37 (-41.27%)
Mutual labels:  deno
Ogone
Advanced Web Composition for Future
Stars: ✭ 38 (-39.68%)
Mutual labels:  deno
cache
🥌 Deno cache library
Stars: ✭ 38 (-39.68%)
Mutual labels:  deno
wocket
A WebSocket library for Deno
Stars: ✭ 103 (+63.49%)
Mutual labels:  deno
http compression
🗜️ Deno HTTP compression middleware
Stars: ✭ 34 (-46.03%)
Mutual labels:  deno
deno-bcrypt
A port of jBCrypt to TypeScript for use as a Deno module
Stars: ✭ 56 (-11.11%)
Mutual labels:  deno
deno doc
Documentation generator for Deno
Stars: ✭ 162 (+157.14%)
Mutual labels:  deno
monkey-master
A deno tool for buying hot GPUs in JD, such as RTX3080 rx6800, a thick-skinned orange!
Stars: ✭ 180 (+185.71%)
Mutual labels:  deno
deno docker
Latest dockerfiles and images for Deno - alpine, centos, debian, ubuntu
Stars: ✭ 678 (+976.19%)
Mutual labels:  deno
postgres-deno
A PostgreSQL extension for Deno: run Typescript in PostgreSQL functions and triggers.
Stars: ✭ 87 (+38.1%)
Mutual labels:  deno
parseargs
Migrated to https://github.com/denoland/deno_std
Stars: ✭ 28 (-55.56%)
Mutual labels:  deno
depsbot
⚙️ GitHub action to check freshness of your deno dependencies
Stars: ✭ 28 (-55.56%)
Mutual labels:  deno
dps-dial.vim
Increment/decrement plugin using denops.vim
Stars: ✭ 21 (-66.67%)
Mutual labels:  deno
deno rest
A Boilerplate for deno RESTful apis
Stars: ✭ 74 (+17.46%)
Mutual labels:  deno

Carol

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

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

hello.ts

import { launch } from "https://deno.land/x/carol/mod.ts";
import { dirname, fromFileUrl, join } from "https://deno.land/std/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(fromFileUrl(import.meta.url)), "public");
app.serveFolder(folder); // Serve contents from "./public" folder
await app.load("index.html");

public/index.html

<html>
<body>
  <div>Hello, Deno!</div>
  <script>
    window.onload = async () => window.alert(await window.greet("Deno"));
  </script>
</body>
</html>

Run hello.ts from the CLI:

# If you are using Windows, you additionally need `--allow-env`!
$ deno run --allow-read --allow-write --allow-run --allow-net hello.ts

Links

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].