{"id":13395192,"url":"https://github.com/huytd/kanban-app","last_synced_at":"2025-05-16T10:06:28.215Z","repository":{"id":45022322,"uuid":"131445485","full_name":"huytd/kanban-app","owner":"huytd","description":"Kanban board built with Rust and Elm","archived":false,"fork":false,"pushed_at":"2018-05-09T20:28:12.000Z","size":191,"stargazers_count":1792,"open_issues_count":6,"forks_count":71,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-04-09T04:07:06.135Z","etag":null,"topics":["elm","gui","kanban","rust","webview"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huytd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-28T21:30:52.000Z","updated_at":"2025-04-03T07:13:43.000Z","dependencies_parsed_at":"2022-09-02T18:30:37.184Z","dependency_job_id":null,"html_url":"https://github.com/huytd/kanban-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huytd%2Fkanban-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huytd%2Fkanban-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huytd%2Fkanban-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huytd%2Fkanban-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huytd","download_url":"https://codeload.github.com/huytd/kanban-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254509475,"owners_count":22082891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elm","gui","kanban","rust","webview"],"created_at":"2024-07-30T17:01:45.699Z","updated_at":"2025-05-16T10:06:28.190Z","avatar_url":"https://github.com/huytd.png","language":"Rust","funding_links":[],"categories":["Rust","rust"],"sub_categories":[],"readme":"# Desktop Kanban Board\n\nLook ma, no Electron!\n\n![](light-theme.png)\n\n![](dark-theme.png)\n\n## What is this?\n\nThis is a web-based Kanban board application, built with Elm and Rust.\n\nThe only different from this application and hundred thousands of web-based application out there is: **We don't need [Electron](https://electronjs.org/)!**.\n\nInstead, it use native WebView (WebKit for Linux/macOS, and MSHTML on Windows), more details [see here](https://github.com/zserge/webview).\n\nThe whole source code in this repository is just a desktop client, which you can actually use for **any** web-based application.\n\n_Note: I maintain my own version of [zserge/webview](https://github.com/zserge/webview) and [Boscop/web-view](https://github.com/Boscop/web-view), because I want to add some customized titlebar on macOS, and my code is ugly enough to create a PR on these repos._\n\n## Instruction\n\n### Step 1: Build the web application\n\n**Skip this if you're using an online hosted application from an URL, or building your own app**.\n\nClone the [Kanelm](https://github.com/huytd/kanelm) application source code from here https://github.com/huytd/kanelm \n\nFollow the instruction in that repo to config your jsonbin.io config, then install the dependencies and build it:\n\n```\nyarn install\nelm-package install\nyarn build\n```\n\nWhat you will get is a `dist` folder, and you only need the `dist.js` file, copy it to `www` folder of this repo.\n\n```\n└── www\n    └── dist.js\n```\n\n### Step 2: Build the desktop application\n\nYou gonna need [cargo bundle](https://github.com/burtonageo/cargo-bundle).\n\nInstall it, then run:\n\n```\ncargo bundle --release\n```\n\nNow you got it.\n\n## Wait, what happened?\n\nWell, the Elm application will be compiled into a single `dist.js` file, the content of this JavaScript file will be inlined into our Rust source code:\n\n**src/main.rs**\n```rust\nlet html = format!(r#\"\n    \u003chtml\u003e\n        \u003chead\u003e\n        \u003clink href=\"https://fonts.googleapis.com/css?family=PT+Sans\" rel=\"stylesheet\"\u003e \n        \u003cstyle\u003e{css}\u003c/style\u003e\n        \u003c/head\u003e\n        \u003cbody\u003e\n        \u003cscript\u003e{js}\u003c/script\u003e\n        \u003c/body\u003e\n    \u003c/html\u003e\n    \"#,\n    css = r#\"body { background: #1d1f21; }\"#,\n    js = include_str!(\"../www/dist.js\"));\n```\n\nThe Rust application will then create a new window, contains a webview, load this HTML content into that webview, and that's it.\n\n## But Electron did the same thing?\n\nYeh, but sometimes, all you need is just a webview to display your web application on a desktop. You don't need file system access or automatic update, blah blah, it would be a huge waste to ship your app with \u003e100MB of Chromium and V8 in it.\n\nIn fact, this application only uses 0-3% CPU and the bundle size is \u003e800KB on macOS.\n\n![](monitor.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuytd%2Fkanban-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuytd%2Fkanban-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuytd%2Fkanban-app/lists"}