Self-hosted, sharable kanban for humans and agents. One 4.7 MB binary, 5 MB of RAM, 10 to 60 tokens per agent reply, starts in 3 ms, zero setup.
Rust ai-agentsclaude-codeclicodexcoding-agentskanbanlocal-firstmcpmcp-servermodel-context-protocolproductivityproject-managementraspberry-pirustself-hostedsqlitetask-manager
Fold the sidebar to icons
emanuele-em90f196d7e001
diff --git a/README.md b/README.mdindex 7420a4d..a253794 100644--- a/README.md+++ b/README.md@@ -62,7 +62,7 @@ The board opens at http://localhost:4242. That's all the setup there is: the fir`n` adds a task, `/` or `⌘K` searches every project, `⌘`-click or a drag on empty board space selects tasks to move, tag or delete together, `f` filters the board and `↵` keeps the filter, `Tab` moves to the description, `⌘↵` saves and closes. `Esc` leaves a description or tags with what you typed saved, and cancels other fields. In Chrome or Edge, **Install app** at the bottom of the sidebar makes the board an app of its own; on macOS `kanzo` then opens it instead of a tab, on the default port. In the app, `⌘1`–`⌘8` pick a project, `⌘9` the last one and `⌘0` all of them.-Drag the left edge of a task's panel to resize it, or expand it to the whole window; double-click the edge to reset it.+Drag the left edge of a task's panel to resize it, or expand it to the whole window; double-click the edge to reset it. **Fold** at the bottom of the sidebar leaves only its icons.Mark a task Human and agents leave it to you; the person icon shows only those. Paste or drop an image into a task or a comment to attach it. Give a task a URL, like its pull request on any site, and click the link on its card to open it; agents set it with `url`. A link to a file in a description or comment, `[name](file:///path)`, opens in your editor. When a new version is out, the sidebar offers it: one click installs it.diff --git a/src/app.js b/src/app.jsindex efe47be..cdf9f39 100644--- a/src/app.js+++ b/src/app.js@@ -338,7 +338,7 @@ function renderNav() {const { projects } = state.board;const open = projects.reduce((n, p) => n + p.open, 0);const link = (slug, name, count, glyph) =>- el("a", { href: "#" + slug, class: state.project === slug ? "active" : null,+ el("a", { href: "#" + slug, title: name, class: state.project === slug ? "active" : null,onclick: (e) => { e.preventDefault(); setProject(slug); } },glyph,el("span", { class: "name" }, name),@@ -1761,6 +1761,15 @@ async function installUpdate(available) {location.reload();}+function setRail(on) {+ document.documentElement.classList.toggle("rail", on);+ $("#rail").setAttribute("aria-expanded", String(!on));+ localStorageSet("kanzo.rail", on ? "1" : "");+}+setRail(localStorageGet("kanzo.rail") === "1");+document.documentElement.classList.add("ready");+$("#rail").addEventListener("click", () => setRail($("#rail").getAttribute("aria-expanded") === "true"));+// Chromium's browsers ask this only while the board isn't installed; the others never do.let installPrompt;window.addEventListener("beforeinstallprompt", (e) => {diff --git a/src/index.html b/src/index.htmlindex 7d46f07..d1db8d1 100644--- a/src/index.html+++ b/src/index.html@@ -482,7 +482,7 @@ label.setting { cursor: pointer; }.nav { flex-direction: row; overflow-x: auto; }.nav a { width: auto; }.nav .label { display: none; }- #new-project-toggle, .panel-edge, #p-wide { display: none; }+ #new-project-toggle, #rail, .panel-edge, #p-wide { display: none; }.panel { width: 100vw; }.columns { grid-auto-columns: minmax(78vw, 1fr); padding: 0 12px 12px; }.settings-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }@@ -492,6 +492,16 @@ label.setting { cursor: pointer; }#filter-box { order: 1; flex: 1 0 100%; }#filter { width: 100%; }}+/* A page can paint before its script runs: this way a folded sidebar never shows open. */+html:not(.ready) aside { visibility: hidden; }+@media (min-width: 701px) {+ .rail body { grid-template-columns: 52px minmax(0, 1fr); }+ .rail aside .ghost, .rail .nav a { font-size: 0; gap: 0; justify-content: center; padding: 8px 0; }+ .rail .brand { font-size: 0; gap: 12px; flex-direction: column; padding: 4px 0 12px; }+ .rail .brand .ghost { margin: 0; }+ .rail .nav .name, .rail .nav .count, .rail .nav .item .more, .rail .nav .label { display: none; }+ .rail #rail .icon { transform: rotate(180deg); }+}</style></head><body>@@ -501,11 +511,12 @@ label.setting { cursor: pointer; }Kanzo<button class="ghost" id="search-open" title="Search (/ or ⌘K)" aria-label="Search tasks"><span class="icon" data-icon="search"></span></button></div>- <button class="ghost" id="new-project-toggle"><span class="icon" data-icon="newProject"></span>New project</button>+ <button class="ghost" id="new-project-toggle" title="New project"><span class="icon" data-icon="newProject"></span>New project</button><nav class="nav" id="nav"></nav><button class="ghost update" id="update" hidden><span class="icon" data-icon="update"></span><span id="update-label"></span></button><button class="ghost" id="install" title="Use the board as an app of its own" hidden><span class="icon" data-icon="update"></span>Install app</button>- <button class="ghost" id="settings" aria-haspopup="menu"><span class="icon" data-icon="settings"></span>Settings</button>+ <button class="ghost" id="rail" title="Fold the sidebar" aria-label="Fold the sidebar"><span class="icon" data-icon="expand"></span>Fold</button>+ <button class="ghost" id="settings" title="Settings" aria-haspopup="menu"><span class="icon" data-icon="settings"></span>Settings</button></aside><main>