Skip to content

armgit / kanzo

Public Imported from GitHub
0

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.

Build a lighter Kanzo

emanuele-em3bffef16b9bb
diff --git a/.cargo/config.toml b/.cargo/config.toml
new file mode 100644
index 0000000..b614cf2
--- /dev/null
+++ b/.cargo/config.toml
@@ -0,0 +1,8 @@
+# The bundled SQLite without the parts Kanzo never uses: full-text search, R-trees,
+# stats for the query planner, extensions, shared cache, deprecated calls, memory
+# statistics. The program is 7% smaller; the database file and behaviour are the same.
+[env]
+LIBSQLITE3_FLAGS = """\
+ -USQLITE_ENABLE_FTS3 -USQLITE_ENABLE_FTS3_PARENTHESIS -USQLITE_ENABLE_FTS5 -USQLITE_ENABLE_RTREE \
+ -USQLITE_ENABLE_DBSTAT_VTAB -USQLITE_ENABLE_STAT4 -USQLITE_ENABLE_LOAD_EXTENSION -DSQLITE_OMIT_LOAD_EXTENSION \
+ -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_MAX_EXPR_DEPTH=0"""
diff --git a/Cargo.lock b/Cargo.lock
index e30ed24..ffc683c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -120,7 +120,6 @@ dependencies = [
"tower",
"tower-layer",
"tower-service",
- "tracing",
]
[[package]]
@@ -139,7 +138,6 @@ dependencies = [
"sync_wrapper",
"tower-layer",
"tower-service",
- "tracing",
]
[[package]]
@@ -1297,7 +1295,6 @@ dependencies = [
"tokio",
"tower-layer",
"tower-service",
- "tracing",
]
[[package]]
@@ -1318,7 +1315,6 @@ version = "0.1.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
dependencies = [
- "log",
"pin-project-lite",
"tracing-attributes",
"tracing-core",
diff --git a/Cargo.toml b/Cargo.toml
index 43dc8fa..bc6b96f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,11 +11,12 @@ readme = "README.md"
keywords = ["kanban", "mcp", "agents", "todo", "board"]
categories = ["command-line-utilities"]
# Only what builds Kanzo: the README's screenshots and the repo's GitHub files stay out.
-exclude = ["/docs", "/.github", "/dist-workspace.toml", "/rustfmt.toml"]
+exclude = ["/docs", "/.github", "/.cargo", "/dist-workspace.toml", "/rustfmt.toml"]
[dependencies]
anyhow = "1.0.104"
-axum = "0.8.9"
+# Only the parts Kanzo uses: forms, logging and the other extractors stay out.
+axum = { version = "0.8.9", default-features = false, features = ["http1", "json", "query", "tokio"] }
clap = { version = "4.6.7", features = ["derive"] }
dirs = "7.0.0"
rmcp = { version = "=3.7.0", features = ["server", "transport-io", "transport-streamable-http-server", "macros"] }
@@ -25,7 +26,8 @@ serde = { version = "1.0.229", features = ["derive"] }
serde_json = "1.0.154"
tokio = { version = "1.54.1", features = ["rt", "macros", "net", "signal", "io-util", "time"] }
tokio-util = "0.7.20"
-toml = "1.1.8"
+# Kanzo reads config.toml and never writes TOML.
+toml = { version = "1.1.8", default-features = false, features = ["std", "parse", "serde"] }
[dev-dependencies]
tempfile = "3.27.0"
diff --git a/README.md b/README.md
index 4a870b3..04bc645 100644
--- a/README.md
+++ b/README.md
@@ -87,7 +87,7 @@ mcp_http = true # MCP at /mcp
| | |
| --- | --- |
-| Program | 4.4 MB, SQLite included |
+| Program | 4.1 MB, SQLite included |
| Memory | 4.5 MB idle, 11 MB with 3,000 tasks |
| Start | 2 ms |
| Board of 3,000 tasks | 17 ms to load in the browser |