chat-logbook 0.1.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) 2026 Eva Wu
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 ADDED
@@ -0,0 +1,83 @@
1
+ # chat-logbook
2
+
3
+ A local-first conversation manager for Claude Code.
4
+
5
+ Browse, tag, annotate, and organize your Claude Code conversation history — all from your browser.
6
+
7
+ ## Features
8
+
9
+ - **Conversation browser** — Three-column interface (filters | session list | conversation content) for navigating all your Claude Code sessions
10
+ - **Full-text search** — Find conversations by keywords across all projects
11
+ - **Project filtering** — Focus on conversations within a specific project, or view everything at once
12
+ - **Real-time streaming** — Watch active Claude Code conversations update live in your browser via SSE
13
+ - **Collapsible tool calls** — Tool calls are collapsed by default with a one-line summary (e.g., "Read: src/index.ts")
14
+ - **Collapsible thinking blocks** — Thinking blocks are collapsed by default, expandable when you want to inspect Claude's reasoning
15
+ - **Soft delete & restore** — Hide sessions you don't need; restore them anytime
16
+ - **Keyboard shortcuts** — `↑↓` to switch sessions, `/` to search, `Esc` to go back
17
+ - **Dark theme** — Easy on the eyes, consistent with Claude Code's terminal aesthetic
18
+
19
+ ## Quick Start
20
+
21
+ ### Prerequisites
22
+
23
+ - Node.js >= 18
24
+
25
+ ### Usage
26
+
27
+ Run directly with npx:
28
+
29
+ ```bash
30
+ npx chat-logbook
31
+ ```
32
+
33
+ Or install globally for a shorter command:
34
+
35
+ ```bash
36
+ npm install -g chat-logbook
37
+ chat-log
38
+ ```
39
+
40
+ Then open the URL shown in your terminal.
41
+
42
+ ### Troubleshooting
43
+
44
+ **"No conversations found"**
45
+ Make sure you have Claude Code conversation history at `~/.claude/`. chat-logbook reads from this directory automatically.
46
+
47
+ **Port already in use**
48
+ By default, chat-logbook runs on port 3100. Use `PORT=8080 chat-log` to specify a different port.
49
+
50
+ ## How It Works
51
+
52
+ chat-logbook reads conversation data directly from the JSONL files that Claude Code stores in `~/.claude/`. It **never modifies** these files — your original conversation data is always left untouched.
53
+
54
+ User-created data (custom titles, tags, annotations, highlights) is stored in a separate SQLite database at `~/.chat-logbook/data.db`, using the session ID as the link between the two data sources.
55
+
56
+ Because chat-logbook relies on what Claude Code persists to disk, **only conversations that are written to `~/.claude/` are visible**. Ephemeral interactions that Claude Code does not persist (such as `/btw` side questions) are not captured by Claude Code's storage and therefore cannot be displayed.
57
+
58
+ ## FAQ
59
+
60
+ ### Why can't I see my `/btw` conversations?
61
+
62
+ The `/btw` feature in Claude Code is designed to be ephemeral — questions and answers appear in a temporary overlay and are never written to conversation history files. Since chat-logbook reads from these files, `/btw` exchanges are not available.
63
+
64
+ This is by design: `/btw` is intended for quick, throwaway questions. If you want a conversation to be preserved and visible in chat-logbook, use a regular message instead of `/btw`.
65
+
66
+ ### Is my data safe?
67
+
68
+ Yes. chat-logbook is fully local — no data ever leaves your machine. It only **reads** from `~/.claude/` and never modifies your original conversation files. The SQLite database it creates for your tags, annotations, and other metadata is stored separately at `~/.chat-logbook/`.
69
+
70
+ ### Does chat-logbook work with Claude Code on the web?
71
+
72
+ No. chat-logbook reads from local `~/.claude/` files, which are only created by the Claude Code CLI running on your machine. Conversations run via Claude Code on the web (cloud VMs) are not stored locally and are not accessible to chat-logbook.
73
+
74
+ ## Roadmap
75
+
76
+ - **Title editing** — Customize session titles for easier identification
77
+ - **Tag system** — Add color-coded tags to sessions, filter by multiple tags (AND logic)
78
+ - **Annotations** — Add notes next to any message in a conversation
79
+ - **Highlights** — Mark important text within conversations
80
+
81
+ ## License
82
+
83
+ [MIT](LICENSE)