kanna-code 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Jake Mor
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,6 +1,28 @@
1
- # Kanna
1
+ <p align="center">
2
+ <img src="assets/icon.png" alt="Kanna" width="80" />
3
+ </p>
2
4
 
3
- A web-first chat UI for using Claude Code in style. Remote access coming soon.
5
+ <h1 align="center">Kanna</h1>
6
+
7
+ <p align="center">
8
+ <strong>A beautiful web UI for Claude Code.</strong>
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/kanna-code"><img src="https://img.shields.io/npm/v/kanna-code.svg?style=flat&colorA=18181b&colorB=f472b6" alt="npm version" /></a>
13
+ </p>
14
+
15
+ <br />
16
+
17
+ <p align="center">
18
+ <picture>
19
+ <source media="(prefers-color-scheme: dark)" srcset="assets/screenshot.png" />
20
+ <source media="(prefers-color-scheme: light)" srcset="assets/screenshot-light.png" />
21
+ <img src="assets/screenshot.png" alt="Kanna screenshot" width="800" />
22
+ </picture>
23
+ </p>
24
+
25
+ <br />
4
26
 
5
27
  ## Quickstart
6
28
 
@@ -8,15 +30,17 @@ A web-first chat UI for using Claude Code in style. Remote access coming soon.
8
30
  bun install -g kanna-code
9
31
  ```
10
32
 
11
- Then run from anywhere:
33
+ Then run from any project directory:
12
34
 
13
35
  ```bash
14
36
  kanna
15
37
  ```
16
38
 
39
+ That's it. Kanna opens in your browser at [`localhost:3210`](http://localhost:3210).
40
+
17
41
  ## Features
18
42
 
19
- - **Project-first sidebar** — chats grouped under projects, with status indicators (idle, running, waiting, failed)
43
+ - **Project-first sidebar** — chats grouped under projects, with live status indicators (idle, running, waiting, failed)
20
44
  - **Local project discovery** — auto-discovers projects from `~/.claude/projects`
21
45
  - **Rich transcript rendering** — user messages, assistant responses, collapsible tool call groups, plan mode dialogs, and interactive prompts
22
46
  - **Plan mode** — review and approve agent plans before execution
@@ -45,33 +69,32 @@ Local File System (~/.kanna/data/, project dirs)
45
69
 
46
70
  ## Requirements
47
71
 
48
- - [Bun](https://bun.sh)
49
- - A working Claude Agent SDK environment
72
+ - [Bun](https://bun.sh) v1.0+
73
+ - A working [Claude Code](https://docs.anthropic.com/en/docs/claude-code) environment
50
74
 
51
75
  ## Install
52
76
 
53
- ```bash
54
- bun install
55
- ```
56
-
57
- ## Run
77
+ Install globally via bun:
58
78
 
59
79
  ```bash
60
- bun run build
61
- bun run start
80
+ bun install -g kanna-code
62
81
  ```
63
82
 
64
- Or use the CLI directly:
83
+ Or clone and build from source:
65
84
 
66
85
  ```bash
67
- kanna
86
+ git clone https://github.com/jakemor/kanna.git
87
+ cd kanna
88
+ bun install
89
+ bun run build
68
90
  ```
69
91
 
70
- Flags:
92
+ ## Usage
71
93
 
72
94
  ```bash
73
- bun run start -- --no-open
74
- bun run start -- --port 4000
95
+ kanna # start with defaults
96
+ kanna --port 4000 # custom port
97
+ kanna --no-open # don't open browser
75
98
  ```
76
99
 
77
100
  Default URL: `http://localhost:3210`
@@ -126,7 +149,7 @@ src/
126
149
  └── branding.ts App name, data directory paths
127
150
  ```
128
151
 
129
- ## Data
152
+ ## Data Storage
130
153
 
131
154
  All state is stored locally at `~/.kanna/data/`:
132
155
 
@@ -139,3 +162,7 @@ All state is stored locally at `~/.kanna/data/`:
139
162
  | `snapshot.json` | Compacted state snapshot for fast startup |
140
163
 
141
164
  Event logs are append-only JSONL. On startup, Kanna replays the log tail after the last snapshot, then compacts if the logs exceed 2 MB.
165
+
166
+ ## License
167
+
168
+ [MIT](LICENSE)