driftnet 1.2.0 → 1.3.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/.env.example +4 -3
- package/NOTICE +13 -0
- package/README.md +87 -80
- package/README.zh-TW.md +87 -79
- package/dist/driftnet.mjs +1600 -401
- package/package.json +4 -4
- package/public/index.html +213 -260
- package/public/locales/es.js +140 -0
- package/public/locales/ja.js +140 -0
- package/public/locales/ko.js +140 -0
- package/public/locales/zh-CN.js +149 -0
- package/public/locales/zh-TW.js +237 -0
- package/public/manifest.webmanifest +10 -1
package/.env.example
CHANGED
|
@@ -18,10 +18,11 @@ DRIFTNET_LLM_API_KEY=
|
|
|
18
18
|
DRIFTNET_LLM_BASE_URL=
|
|
19
19
|
# anthropic: low | medium | high | xhigh (typo → low). openai: sent as reasoning_effort.
|
|
20
20
|
DRIFTNET_LLM_EFFORT=
|
|
21
|
-
# Language of the summaries and the bot's replies:
|
|
22
|
-
#
|
|
21
|
+
# Language of the summaries and the bot's replies:
|
|
22
|
+
# e.g. "English", "Traditional Chinese (Taiwan)", "Simplified Chinese", "Japanese", "Korean", "Spanish"
|
|
23
|
+
# (built-in UI/bot locales: en | zh-TW | zh-CN | ja | ko | es; other languages fall back to English for bot replies)
|
|
23
24
|
DRIFTNET_LANGUAGE=English
|
|
24
|
-
# Force the bot's own words: en | zh-TW (default: follows DRIFTNET_LANGUAGE)
|
|
25
|
+
# Force the bot's own words: en | zh-TW | zh-CN | ja | ko | es (default: follows DRIFTNET_LANGUAGE)
|
|
25
26
|
DRIFTNET_LOCALE=
|
|
26
27
|
|
|
27
28
|
# Examples:
|
package/NOTICE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
driftnet
|
|
2
|
+
Copyright (c) 2026 Kevin Chu (KevinChu1110)
|
|
3
|
+
Original repository: https://github.com/KevinChu1110/driftnet
|
|
4
|
+
|
|
5
|
+
This software is licensed under the MIT License (see LICENSE).
|
|
6
|
+
|
|
7
|
+
Per the MIT License terms, all copies, redistributions, forks, hosted mirrors,
|
|
8
|
+
and substantial portions of this Software MUST retain:
|
|
9
|
+
1. The copyright notice ("Copyright (c) 2026 Kevin Chu")
|
|
10
|
+
2. The MIT License permission notice (LICENSE)
|
|
11
|
+
|
|
12
|
+
Removing or obscuring the original copyright and attribution notices while
|
|
13
|
+
redistributing or rebranding this codebase is a violation of the license terms.
|
package/README.md
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
**English** · [繁體中文](https://github.com/KevinChu1110/driftnet/blob/main/README.zh-TW.md)
|
|
9
9
|
|
|
10
|
-
**[▶ Try the demo](https://kevinchu1110.github.io/driftnet/demo/)** · **[Website](https://kevinchu1110.github.io/driftnet/)** · **[Chrome extension](https://chromewebstore.google.com/detail/driftnet/inmlinbodfopmanbllkkjcgheelacddm)** · **[Docs](#-docs)**
|
|
10
|
+
**[▶ Try the demo](https://kevinchu1110.github.io/driftnet/demo/)** · **[Quick start](#-quick-start)** · **[Website](https://kevinchu1110.github.io/driftnet/)** · **[Chrome extension](https://chromewebstore.google.com/detail/driftnet/inmlinbodfopmanbllkkjcgheelacddm)** · **[Docs](#-docs)**
|
|
11
11
|
|
|
12
|
-
🆕 **1.
|
|
12
|
+
🆕 **1.3 is out:** 6 languages (EN / 繁中 / 简中 / 日本語 / 한국어 / ES) loaded on demand, zero-config local AI detection & connection test, `driftnet export --format site` static showcase, desktop tray app & PWA share target, `driftnet init` for Gemini CLI & VS Code, and a 50 MB slimmer runtime (native Anthropic & Discord clients) with security hardening. [What's new](https://github.com/KevinChu1110/driftnet/releases/tag/v1.3.0) · [What stays stable](https://github.com/KevinChu1110/driftnet/blob/main/docs/stability.md)
|
|
13
13
|
|
|
14
14
|
[](https://www.npmjs.com/package/driftnet)
|
|
15
15
|
[](https://chromewebstore.google.com/detail/driftnet/inmlinbodfopmanbllkkjcgheelacddm)
|
|
@@ -33,59 +33,33 @@ in your language, and files it in your own folders, in a local catalogue with fu
|
|
|
33
33
|
(Chinese included). Your agents haul in the same catalogue over MCP. It runs on your own computer
|
|
34
34
|
and works with any model, or none.
|
|
35
35
|
|
|
36
|
-
##
|
|
37
|
-
|
|
38
|
-
**1. A post becomes the tool.** A Facebook reel with no links in it goes into the chat. driftnet reads the caption, finds both repos on GitHub by exact name, and files each as its own card. The chat gets one line; the summary is on the page.
|
|
39
|
-
|
|
40
|
-
```text
|
|
41
|
-
you ▸ this week's AI roundup https://www.facebook.com/share/v/1DfVB2odi3/
|
|
42
|
-
|
|
43
|
-
bot ▸ 📌 This week in AI (3/11)|News + Paperclip, RealWonder
|
|
44
|
-
https://driftnet.example/#item-1
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
<p align="center"><img src="https://raw.githubusercontent.com/KevinChu1110/driftnet/main/assets/cards-en.jpg" alt="The driftnet card list: each shared post is now the repo it was about, with a one-line summary, its folder and how many times it was shared" width="100%"></p>
|
|
48
|
-
<sub>From a real run. The post had no links: driftnet read the caption and found both repos on GitHub by name.</sub>
|
|
49
|
-
|
|
50
|
-
**2. Know what it is at a glance.** Before: a bare link in a chat. After: a card with pictures from the page, a one-line answer, **what you'll see** and **why it's here**, so you can tell in seconds whether to open it.
|
|
51
|
-
|
|
52
|
-
<p align="center"><img src="https://raw.githubusercontent.com/KevinChu1110/driftnet/main/assets/card-modal-en.jpg" alt="A card opened: pictures, the one-line summary, What you'll see, Why it's here, and buttons to open the link, favorite, move, add a note or refresh" width="100%"></p>
|
|
53
|
-
|
|
54
|
-
**3. Sort with the mind map.** New links the AI filed on its own wait in the Inbox with two or three suggested folders. Or drag a card onto a folder on the mind map, which branches out from the root like XMind.
|
|
55
|
-
|
|
56
|
-
<p align="center"><img src="https://raw.githubusercontent.com/KevinChu1110/driftnet/main/assets/map-en.jpg" alt="The mind map: folders branching out from driftnet, cards under them, the read-only view on a phone" width="100%"></p>
|
|
36
|
+
## 🚀 Quick start
|
|
57
37
|
|
|
58
|
-
|
|
38
|
+
Everything runs on your own computer — no server to rent, no account required.
|
|
59
39
|
|
|
60
|
-
###
|
|
40
|
+
### 1. Try it in 10 seconds (no install)
|
|
61
41
|
|
|
62
|
-
|
|
63
|
-
- 💬 **Reads "link in the comments".** The [Chrome extension](https://github.com/KevinChu1110/driftnet/blob/main/docs/chrome-extension.md) opens the comments; a weekly roundup becomes one item per project.
|
|
64
|
-
- 📥 **Many ways in.** A Chrome button, Discord, Telegram, Slack or LINE bots, your agent, or one HTTP call ([Ways in](https://github.com/KevinChu1110/driftnet/blob/main/docs/ways-in.md)).
|
|
42
|
+
**[▶ Try the live demo](https://kevinchu1110.github.io/driftnet/demo/)** — runs the real driftnet web page directly in your browser.
|
|
65
43
|
|
|
66
|
-
###
|
|
44
|
+
### 2. Run on your computer (1 command)
|
|
67
45
|
|
|
68
|
-
|
|
69
|
-
- 🗂️ **Your folders are the categories.** The AI files new links by each folder's path and description; its suggestions wait in the Inbox.
|
|
70
|
-
- 🧠 **Mind map and split view.** Drag cards onto folders; ✨ AI tidy-up proposes a plan that changes nothing until you apply it ([the web page](https://github.com/KevinChu1110/driftnet/blob/main/docs/web-page.md)).
|
|
71
|
-
- 📱 **A page you can search, on a phone too.** Notes, undo and trash, keyboard shortcuts, read-only share links.
|
|
72
|
-
- 🚫 **Not a read-later app.** Pocket and Raindrop keep the link you gave them. driftnet follows the post to the tool it is about, keeps a short outline instead of the whole page, and lets your agents read and write the same catalogue over MCP.
|
|
46
|
+
Requires [Node.js](https://nodejs.org) 22.13 or newer. Never used a terminal? [Step by step for Mac and Windows](https://github.com/KevinChu1110/driftnet/blob/main/docs/install-beginners.md).
|
|
73
47
|
|
|
74
|
-
|
|
48
|
+
```bash
|
|
49
|
+
npx driftnet
|
|
50
|
+
```
|
|
75
51
|
|
|
76
|
-
|
|
77
|
-
- ⚖️ **Optional judge.** [Jev](https://console.typesafe.ai) (needs a TypeSafe key) decides in ~100 ms what is worth summarising. Without it, your model sorts each link.
|
|
78
|
-
- 🗳️ **Learns what to ignore.** 👎 a result and its publisher loses reputation; sources that keep getting voted down stop costing anything.
|
|
79
|
-
- 🛡️ **Safe by default.** Private and local addresses are refused, and prompt injection is never passed on to agents.
|
|
80
|
-
- 🤖 **Agents use it too.** MCP, `/openapi.json`, `/llms.txt`, `/feed.xml` and an outgoing webhook; or let them do the reading ([Agents](https://github.com/KevinChu1110/driftnet/blob/main/docs/agents.md)).
|
|
81
|
-
- 🧩 **Any model or none, and it stays yours.** A free local model through Ollama, a Claude or Gemini subscription you already have, a paid API key (pennies), or no model (links are then saved and wait unsorted under "Other"). Local SQLite; English and Traditional Chinese throughout.
|
|
52
|
+
Your browser opens **http://localhost:8787** (*localhost* means "this machine"; nobody else can see it). Go to **⚙ Settings → AI** to pick a provider and model — or skip it (links are still saved under "Other", and an AI agent can write the summaries; see [Agents](https://github.com/KevinChu1110/driftnet/blob/main/docs/agents.md)).
|
|
82
53
|
|
|
83
|
-
|
|
54
|
+
- **Connect your AI apps** (Claude Code, Claude Desktop, Cursor, Windsurf, Codex) in one go: `npx driftnet init`
|
|
55
|
+
- **Run in the background at login** (macOS, Linux, Windows — otherwise closing the terminal stops driftnet):
|
|
56
|
+
```bash
|
|
57
|
+
npx driftnet service install # status: npx driftnet service status · undo: npx driftnet service uninstall
|
|
58
|
+
```
|
|
84
59
|
|
|
85
|
-
|
|
86
|
-
**[Try the demo](https://kevinchu1110.github.io/driftnet/demo/)** runs the real page in your browser.
|
|
60
|
+
Settings live in `~/.driftnet/.env` and the catalogue in `~/.driftnet/driftnet.db`.
|
|
87
61
|
|
|
88
|
-
###
|
|
62
|
+
### 3. Or let your AI agent install it
|
|
89
63
|
|
|
90
64
|
Copy this into Claude Code, Cursor, Codex or any agent that can run commands on your computer:
|
|
91
65
|
|
|
@@ -95,31 +69,8 @@ Read https://raw.githubusercontent.com/KevinChu1110/driftnet/main/docs/llms-inst
|
|
|
95
69
|
|
|
96
70
|
It checks Node.js, starts driftnet, connects itself over MCP and tells you when it is done.
|
|
97
71
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
You need [Node.js](https://nodejs.org) 22.13 or newer. Never used a terminal?
|
|
101
|
-
[Step by step for Mac and Windows](https://github.com/KevinChu1110/driftnet/blob/main/docs/install-beginners.md). Then, in a terminal:
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
npx driftnet
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
Your browser opens **http://localhost:8787**: that is driftnet's page, served by your own computer
|
|
108
|
-
(*localhost* means "this machine"; nobody else can see it). ⚙ Settings → AI: pick a provider and fill
|
|
109
|
-
in its key and model. Or skip it: links are still saved and wait unsorted under "Other", and an AI agent
|
|
110
|
-
can write the summaries ([Agents](https://github.com/KevinChu1110/driftnet/blob/main/docs/agents.md)). To connect the AI apps on this computer (Claude Code,
|
|
111
|
-
Claude Desktop, Cursor, Windsurf, Codex) in one go: `npx driftnet init`.
|
|
112
|
-
|
|
113
|
-
**Closing that terminal window stops driftnet.** To have it start at login and run in the background
|
|
114
|
-
instead (macOS, Linux, Windows), run once:
|
|
115
|
-
|
|
116
|
-
```bash
|
|
117
|
-
npx driftnet service install # status: npx driftnet service status · undo: npx driftnet service uninstall
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
Your settings live in `~/.driftnet/.env` and the catalogue in `~/.driftnet/driftnet.db`.
|
|
121
|
-
|
|
122
|
-
### Add your first link
|
|
72
|
+
<details>
|
|
73
|
+
<summary><b>Add your first link</b></summary>
|
|
123
74
|
|
|
124
75
|
Any of these works:
|
|
125
76
|
|
|
@@ -130,6 +81,19 @@ Any of these works:
|
|
|
130
81
|
|
|
131
82
|
A card shows up within 5–30 seconds: what it is, why it might matter to you, and where it was filed.
|
|
132
83
|
|
|
84
|
+
</details>
|
|
85
|
+
|
|
86
|
+
<details>
|
|
87
|
+
<summary><b>Which setup is yours?</b></summary>
|
|
88
|
+
|
|
89
|
+
| You are | Start with | Model |
|
|
90
|
+
|---|---|---|
|
|
91
|
+
| Just me, on my computer | The [Chrome extension](https://github.com/KevinChu1110/driftnet/blob/main/docs/chrome-extension.md) and [the web page](https://github.com/KevinChu1110/driftnet/blob/main/docs/web-page.md) | A local one through Ollama (see [Models](https://github.com/KevinChu1110/driftnet/blob/main/docs/models.md)), or none |
|
|
92
|
+
| A group chat | A Discord, Telegram, Slack or LINE bot, see [Ways in](https://github.com/KevinChu1110/driftnet/blob/main/docs/ways-in.md) | Any |
|
|
93
|
+
| My agents | [MCP, the Claude Code plugin or the agent queue](https://github.com/KevinChu1110/driftnet/blob/main/docs/agents.md) | None needed: the agent does the reading |
|
|
94
|
+
|
|
95
|
+
</details>
|
|
96
|
+
|
|
133
97
|
<details>
|
|
134
98
|
<summary><b>Other ways to run it: from source, Docker</b></summary>
|
|
135
99
|
|
|
@@ -142,14 +106,19 @@ pnpm start # http://localhost:87
|
|
|
142
106
|
pnpm service:install # optional: start at login (macOS / Linux)
|
|
143
107
|
```
|
|
144
108
|
|
|
145
|
-
With Docker:
|
|
109
|
+
With Docker (one-liner):
|
|
146
110
|
|
|
147
111
|
```bash
|
|
148
|
-
docker
|
|
149
|
-
docker run -d -p 127.0.0.1:8787:8787 -v driftnet:/data -e DRIFTNET_HOST=0.0.0.0 driftnet start
|
|
112
|
+
docker run -d -p 127.0.0.1:8787:8787 -v driftnet_data:/data -e DRIFTNET_HOST=0.0.0.0 ghcr.io/kevinchu1110/driftnet:latest start
|
|
150
113
|
```
|
|
151
114
|
|
|
152
|
-
|
|
115
|
+
Or with Docker Compose (uses [docker-compose.yml](https://github.com/KevinChu1110/driftnet/blob/main/docker-compose.yml)):
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
docker compose up -d
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Without `start`, the container is the MCP server over stdio (`docker run -i --rm -v driftnet_data:/data ghcr.io/kevinchu1110/driftnet:latest`).
|
|
153
122
|
`DRIFTNET_HOME` moves the settings and the catalogue somewhere else.
|
|
154
123
|
|
|
155
124
|
</details>
|
|
@@ -164,14 +133,52 @@ Without `start`, the container is the MCP server over stdio (`docker run -i --rm
|
|
|
164
133
|
|
|
165
134
|
</details>
|
|
166
135
|
|
|
167
|
-
|
|
136
|
+
## 🎥 See it work
|
|
168
137
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
138
|
+
**1. A post becomes the tool.** A Facebook reel with no links in it goes into the chat. driftnet reads the caption, finds both repos on GitHub by exact name, and files each as its own card. The chat gets one line; the summary is on the page.
|
|
139
|
+
|
|
140
|
+
```text
|
|
141
|
+
you ▸ this week's AI roundup https://www.facebook.com/share/v/1DfVB2odi3/
|
|
142
|
+
|
|
143
|
+
bot ▸ 📌 This week in AI (3/11)|News + Paperclip, RealWonder
|
|
144
|
+
https://driftnet.example/#item-1
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
<p align="center"><img src="https://raw.githubusercontent.com/KevinChu1110/driftnet/main/assets/cards-en.jpg" alt="The driftnet card list: each shared post is now the repo it was about, with a one-line summary, its folder and how many times it was shared" width="100%"></p>
|
|
148
|
+
<sub>From a real run. The post had no links: driftnet read the caption and found both repos on GitHub by name.</sub>
|
|
174
149
|
|
|
150
|
+
**2. Know what it is at a glance.** Before: a bare link in a chat. After: a card with pictures from the page, a one-line answer, **what you'll see** and **why it's here**, so you can tell in seconds whether to open it.
|
|
151
|
+
|
|
152
|
+
<p align="center"><img src="https://raw.githubusercontent.com/KevinChu1110/driftnet/main/assets/card-modal-en.jpg" alt="A card opened: pictures, the one-line summary, What you'll see, Why it's here, and buttons to open the link, favorite, move, add a note or refresh" width="100%"></p>
|
|
153
|
+
|
|
154
|
+
**3. Sort with the mind map.** New links the AI filed on its own wait in the Inbox with two or three suggested folders. Or drag a card onto a folder on the mind map, which branches out from the root like XMind.
|
|
155
|
+
|
|
156
|
+
<p align="center"><img src="https://raw.githubusercontent.com/KevinChu1110/driftnet/main/assets/map-en.jpg" alt="The mind map: folders branching out from driftnet, cards under them, the read-only view on a phone" width="100%"></p>
|
|
157
|
+
|
|
158
|
+
## ✨ Core features
|
|
159
|
+
|
|
160
|
+
### Catch the link
|
|
161
|
+
|
|
162
|
+
- 🎯 **Finds the actual tool.** A post linking a repo becomes the repo; a post that only *names* projects gets them looked up on GitHub by exact name. Links a model makes up are thrown away.
|
|
163
|
+
- 💬 **Reads "link in the comments".** The [Chrome extension](https://github.com/KevinChu1110/driftnet/blob/main/docs/chrome-extension.md) opens the comments; a weekly roundup becomes one item per project.
|
|
164
|
+
- 📥 **Many ways in.** A Chrome button, mobile PWA Share Target, Discord, Telegram, Slack or LINE bots, your agent, or one HTTP call ([Ways in](https://github.com/KevinChu1110/driftnet/blob/main/docs/ways-in.md)).
|
|
165
|
+
|
|
166
|
+
### Understand and sort it
|
|
167
|
+
|
|
168
|
+
- 🖼️ **Cards you can read at a glance.** Pictures, a one-line answer, what you'll see, why it's here.
|
|
169
|
+
- 🗂️ **Your folders are the categories.** The AI files new links by each folder's path and description; its suggestions wait in the Inbox.
|
|
170
|
+
- 🧠 **Mind map and split view.** Drag cards onto folders; ✨ AI tidy-up proposes a plan that changes nothing until you apply it ([the web page](https://github.com/KevinChu1110/driftnet/blob/main/docs/web-page.md)).
|
|
171
|
+
- 📱 **Desktop app, mobile PWA, or static showcase.** Run as a native desktop app (macOS / Windows / Linux) or in any browser; includes notes, undo and trash, keyboard shortcuts, read-only share links, and static site export (`driftnet export --format site -o ./docs`).
|
|
172
|
+
- 🚫 **Not a read-later app.** Pocket and Raindrop keep the link you gave them. driftnet follows the post to the tool it is about, keeps a short outline instead of the whole page, and lets your agents read and write the same catalogue over MCP.
|
|
173
|
+
|
|
174
|
+
### Cheap, safe and yours
|
|
175
|
+
|
|
176
|
+
- 💸 **Spends almost nothing.** Repeat links are free and pages are cut to an outline of about 350 tokens before any model sees them. Five real Facebook reels were judged for $0.00029 in total.
|
|
177
|
+
- ⚖️ **Optional judge.** [Jev](https://console.typesafe.ai) (needs a TypeSafe key) decides in ~100 ms what is worth summarising. Without it, your model sorts each link.
|
|
178
|
+
- 🗳️ **Learns what to ignore.** 👎 a result and its publisher loses reputation; sources that keep getting voted down stop costing anything.
|
|
179
|
+
- 🛡️ **Safe by default.** Private and local addresses are refused, and prompt injection is never passed on to agents.
|
|
180
|
+
- 🤖 **Agents use it too.** MCP, `/openapi.json`, `/llms.txt`, `/feed.xml` and an outgoing webhook; or let them do the reading ([Agents](https://github.com/KevinChu1110/driftnet/blob/main/docs/agents.md)).
|
|
181
|
+
- 🧩 **Any model or none, and it stays yours.** A free local model through Ollama, a Claude or Gemini subscription you already have, a paid API key (pennies), or no model (links are then saved and wait unsorted under "Other"). Local SQLite; UI and bot replies in 6 languages (**English, 繁體中文, 简体中文, 日本語, 한국어, Español**).
|
|
175
182
|
|
|
176
183
|
## 📚 Docs
|
|
177
184
|
|
package/README.zh-TW.md
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
[English](https://github.com/KevinChu1110/driftnet/blob/main/README.md) · **繁體中文**
|
|
9
9
|
|
|
10
|
-
**[▶ 線上試玩](https://kevinchu1110.github.io/driftnet/demo/)** · **[官方網站](https://kevinchu1110.github.io/driftnet/)** · **[Chrome 擴充](https://chromewebstore.google.com/detail/driftnet/inmlinbodfopmanbllkkjcgheelacddm)** · **[文件](#-文件)**
|
|
10
|
+
**[▶ 線上試玩](https://kevinchu1110.github.io/driftnet/demo/)** · **[開始使用](#-開始使用)** · **[官方網站](https://kevinchu1110.github.io/driftnet/)** · **[Chrome 擴充](https://chromewebstore.google.com/detail/driftnet/inmlinbodfopmanbllkkjcgheelacddm)** · **[文件](#-文件)**
|
|
11
11
|
|
|
12
|
-
🆕 **1.
|
|
12
|
+
🆕 **1.3 版:** 支援 6 種語系(EN / 繁中 / 简中 / 日本語 / 한국어 / ES)並按需載入、本機免費 AI 自動偵測與連線測試、`driftnet export --format site` 一鍵公開精選靜態頁、三平台桌面系統列 App 與手機 PWA 系統分享、`driftnet init` 新增 Gemini CLI 與 VS Code,以及移除重量級 SDK 瘦身 50 MB 並完成資安強化。[更新內容](https://github.com/KevinChu1110/driftnet/releases/tag/v1.3.0) · [哪些不會變](https://github.com/KevinChu1110/driftnet/blob/main/docs/stability.md)
|
|
13
13
|
|
|
14
14
|
[](https://www.npmjs.com/package/driftnet)
|
|
15
15
|
[](https://chromewebstore.google.com/detail/driftnet/inmlinbodfopmanbllkkjcgheelacddm)
|
|
@@ -31,59 +31,33 @@
|
|
|
31
31
|
歸進你自己的資料夾,放進支援中文全文搜尋的本機知識庫。你的 AI agent 也能透過 MCP 隨時來收網。
|
|
32
32
|
它跑在你自己的電腦上,可以接任何模型,也可以完全不接。
|
|
33
33
|
|
|
34
|
-
##
|
|
35
|
-
|
|
36
|
-
**1. 貼文變成工具。** 一則沒有附任何連結的 Facebook reel 丟進聊天室。driftnet 讀了說明文字,用名稱到 GitHub 找到兩個 repo,各收成一張卡片。聊天室只回一行,整理好的摘要在網頁上。
|
|
37
|
-
|
|
38
|
-
```text
|
|
39
|
-
你 ▸ 這週的 AI 整理 https://www.facebook.com/share/v/1DfVB2odi3/
|
|
40
|
-
|
|
41
|
-
bot ▸ 📌 本週 AI 大事彙整(3/11)|新聞動態 + Paperclip、RealWonder
|
|
42
|
-
https://driftnet.example/#item-1
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
<p align="center"><img src="https://raw.githubusercontent.com/KevinChu1110/driftnet/main/assets/cards-zh-TW.jpg" alt="driftnet 卡片清單:每則分享的貼文都變成它真正介紹的 repo,附一句摘要、所屬資料夾和被分享的次數" width="100%"></p>
|
|
46
|
-
<sub>實測結果。這篇貼文沒有附任何連結,driftnet 讀了說明文字,再用名稱到 GitHub 找到兩個 repo。</sub>
|
|
47
|
-
|
|
48
|
-
**2. 一眼看懂它是什麼。** 之前:聊天室裡一條光禿禿的連結。之後:一張卡片,有網頁上的圖片、一句話的答案、**你會看到什麼**和**為什麼會在這裡**,幾秒就能判斷要不要點開。
|
|
34
|
+
## 🚀 開始使用
|
|
49
35
|
|
|
50
|
-
|
|
36
|
+
全部跑在你自己的電腦上——不用租伺服器,也不用註冊帳號。
|
|
51
37
|
|
|
52
|
-
|
|
38
|
+
### 1. 10 秒試玩(免安裝)
|
|
53
39
|
|
|
54
|
-
|
|
40
|
+
**[▶ 線上試玩](https://kevinchu1110.github.io/driftnet/demo/)** — 直接在瀏覽器裡跑真正的 driftnet 網頁。
|
|
55
41
|
|
|
56
|
-
|
|
42
|
+
### 2. 在自己的電腦跑(一行指令)
|
|
57
43
|
|
|
58
|
-
|
|
44
|
+
需要 [Node.js](https://nodejs.org) 22.13 以上。沒用過終端機?[Mac 和 Windows 一步一步教你](https://github.com/KevinChu1110/driftnet/blob/main/docs/zh-TW/install-beginners.md)。
|
|
59
45
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
### 看懂、整理
|
|
65
|
-
|
|
66
|
-
- 🖼️ **一眼看懂的卡片。** 圖片、一句話的答案、你會看到什麼、為什麼會在這裡。
|
|
67
|
-
- 🗂️ **資料夾就是分類。** AI 照每個資料夾的路徑和說明分新連結,建議放在收件匣等你確認。
|
|
68
|
-
- 🧠 **樹狀圖和並排檢視。** 把卡片拖到資料夾;✨ AI 整理建議會提一份方案,你套用之前什麼都不會動(見[網頁](https://github.com/KevinChu1110/driftnet/blob/main/docs/zh-TW/web-page.md))。
|
|
69
|
-
- 📱 **可以搜尋的網頁,手機也能用。** 筆記、復原和垃圾桶、鍵盤快捷鍵、唯讀分享連結。
|
|
70
|
-
- 🚫 **不是稍後閱讀 App。** Pocket、Raindrop 存的是你給它的那個連結;driftnet 會順著貼文追到它在講的工具,只留一份簡短大綱而不是整頁內容,你的 agent 還能透過 MCP 讀寫同一份清單。
|
|
46
|
+
```bash
|
|
47
|
+
npx driftnet
|
|
48
|
+
```
|
|
71
49
|
|
|
72
|
-
|
|
50
|
+
瀏覽器會自動打開 **http://localhost:8787**(*localhost* 就是「這台電腦」,別人看不到)。到 **⚙ 設定 → AI** 選一個供應商和模型,也可以先跳過(連結照樣會存下來,先放在「其他」等待整理;也可以讓 AI agent 幫你寫摘要,見 [Agent](https://github.com/KevinChu1110/driftnet/blob/main/docs/zh-TW/agents.md))。
|
|
73
51
|
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
- 🧩 **模型任選或不接,資料屬於你。** 用 Ollama 跑免費的本機模型、你已經有的 Claude 或 Gemini 訂閱、付費 API 金鑰(花費很低),或完全不接(連結照樣存下來,先放在「其他」等待整理)。資料存在本機 SQLite;介面、回覆和摘要都支援英文與繁體中文。
|
|
80
|
-
|
|
81
|
-
## 🚀 開始使用
|
|
52
|
+
- **一次接好這台電腦上的 AI 工具**(Claude Code、Claude Desktop、Cursor、Windsurf、Codex):`npx driftnet init`
|
|
53
|
+
- **開機自動啟動、在背景執行**(macOS、Linux、Windows;否則關掉終端機視窗 driftnet 就會停):
|
|
54
|
+
```bash
|
|
55
|
+
npx driftnet service install # 看狀態:npx driftnet service status · 取消:npx driftnet service uninstall
|
|
56
|
+
```
|
|
82
57
|
|
|
83
|
-
|
|
84
|
-
**[線上試玩](https://kevinchu1110.github.io/driftnet/demo/)** 直接在瀏覽器跑真正的網頁。
|
|
58
|
+
設定存在 `~/.driftnet/.env`,清單存在 `~/.driftnet/driftnet.db`。
|
|
85
59
|
|
|
86
|
-
###
|
|
60
|
+
### 3. 或交給你的 AI agent 安裝
|
|
87
61
|
|
|
88
62
|
把下面這句複製給 Claude Code、Cursor、Codex,或任何能在你電腦上執行指令的 agent:
|
|
89
63
|
|
|
@@ -93,30 +67,8 @@ Read https://raw.githubusercontent.com/KevinChu1110/driftnet/main/docs/llms-inst
|
|
|
93
67
|
|
|
94
68
|
它會檢查 Node.js、啟動 driftnet、透過 MCP 把自己接上,完成後告訴你。
|
|
95
69
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
需要 [Node.js](https://nodejs.org) 22.13 以上。沒用過終端機?
|
|
99
|
-
[Mac 和 Windows 一步一步教你](https://github.com/KevinChu1110/driftnet/blob/main/docs/zh-TW/install-beginners.md)。在終端機輸入:
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
npx driftnet
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
瀏覽器會自動打開 **http://localhost:8787**:這是你自己電腦提供的 driftnet 網頁
|
|
106
|
-
(*localhost* 就是「這台電腦」,別人看不到)。到 ⚙ 設定 → AI:選一個供應商,填好它的金鑰和模型。
|
|
107
|
-
也可以先跳過:連結照樣會存下來,先放在「其他」等待整理;也可以讓 AI agent 幫你寫摘要([Agent](https://github.com/KevinChu1110/driftnet/blob/main/docs/zh-TW/agents.md))。
|
|
108
|
-
想一次接好這台電腦上的 AI 工具(Claude Code、Claude Desktop、Cursor、Windsurf、Codex):`npx driftnet init`。
|
|
109
|
-
|
|
110
|
-
**關掉那個終端機視窗,driftnet 就停了。** 想讓它開機自動啟動、在背景執行(macOS、Linux、Windows),
|
|
111
|
-
執行一次:
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
npx driftnet service install # 看狀態:npx driftnet service status · 取消:npx driftnet service uninstall
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
設定存在 `~/.driftnet/.env`,清單存在 `~/.driftnet/driftnet.db`。
|
|
118
|
-
|
|
119
|
-
### 加入第一個連結
|
|
70
|
+
<details>
|
|
71
|
+
<summary><b>加入第一個連結</b></summary>
|
|
120
72
|
|
|
121
73
|
任選一種:
|
|
122
74
|
|
|
@@ -127,6 +79,19 @@ npx driftnet service install # 看狀態:npx driftnet service status ·
|
|
|
127
79
|
|
|
128
80
|
5~30 秒內就會出現一張卡片:它是什麼、為什麼值得你看、放進了哪個資料夾。
|
|
129
81
|
|
|
82
|
+
</details>
|
|
83
|
+
|
|
84
|
+
<details>
|
|
85
|
+
<summary><b>哪種用法適合你</b></summary>
|
|
86
|
+
|
|
87
|
+
| 你是 | 從這裡開始 | 模型 |
|
|
88
|
+
|---|---|---|
|
|
89
|
+
| 只有我自己,用我的電腦 | [Chrome 擴充](https://github.com/KevinChu1110/driftnet/blob/main/docs/zh-TW/chrome-extension.md)加[網頁](https://github.com/KevinChu1110/driftnet/blob/main/docs/zh-TW/web-page.md) | 用 Ollama 跑本機模型(見[模型](https://github.com/KevinChu1110/driftnet/blob/main/docs/zh-TW/models.md)),或不接 |
|
|
90
|
+
| 一個群組聊天室 | Discord、Telegram、Slack 或 LINE 機器人,見[接法](https://github.com/KevinChu1110/driftnet/blob/main/docs/zh-TW/ways-in.md) | 任選 |
|
|
91
|
+
| 我的 agent | [MCP、Claude Code 外掛或 agent 佇列](https://github.com/KevinChu1110/driftnet/blob/main/docs/zh-TW/agents.md) | 不用接:由 agent 自己讀 |
|
|
92
|
+
|
|
93
|
+
</details>
|
|
94
|
+
|
|
130
95
|
<details>
|
|
131
96
|
<summary><b>其他跑法:從原始碼、Docker</b></summary>
|
|
132
97
|
|
|
@@ -139,14 +104,19 @@ pnpm start # http://localhost:87
|
|
|
139
104
|
pnpm service:install # 選用:登入後自動執行(macOS/Linux)
|
|
140
105
|
```
|
|
141
106
|
|
|
142
|
-
用 Docker
|
|
107
|
+
用 Docker(一行指令):
|
|
143
108
|
|
|
144
109
|
```bash
|
|
145
|
-
docker
|
|
146
|
-
docker run -d -p 127.0.0.1:8787:8787 -v driftnet:/data -e DRIFTNET_HOST=0.0.0.0 driftnet start
|
|
110
|
+
docker run -d -p 127.0.0.1:8787:8787 -v driftnet_data:/data -e DRIFTNET_HOST=0.0.0.0 ghcr.io/kevinchu1110/driftnet:latest start
|
|
147
111
|
```
|
|
148
112
|
|
|
149
|
-
|
|
113
|
+
或用 Docker Compose(使用 [docker-compose.yml](https://github.com/KevinChu1110/driftnet/blob/main/docker-compose.yml)):
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
docker compose up -d
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
不加 `start` 時,容器就是 stdio 的 MCP 伺服器(`docker run -i --rm -v driftnet_data:/data ghcr.io/kevinchu1110/driftnet:latest`)。
|
|
150
120
|
用 `DRIFTNET_HOME` 可以把設定和清單一起搬到別的地方。
|
|
151
121
|
|
|
152
122
|
</details>
|
|
@@ -161,14 +131,52 @@ docker run -d -p 127.0.0.1:8787:8787 -v driftnet:/data -e DRIFTNET_HOST=0.0.0.0
|
|
|
161
131
|
|
|
162
132
|
</details>
|
|
163
133
|
|
|
164
|
-
|
|
134
|
+
## 🎥 實際看看
|
|
165
135
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
136
|
+
**1. 貼文變成工具。** 一則沒有附任何連結的 Facebook reel 丟進聊天室。driftnet 讀了說明文字,用名稱到 GitHub 找到兩個 repo,各收成一張卡片。聊天室只回一行,整理好的摘要在網頁上。
|
|
137
|
+
|
|
138
|
+
```text
|
|
139
|
+
你 ▸ 這週的 AI 整理 https://www.facebook.com/share/v/1DfVB2odi3/
|
|
140
|
+
|
|
141
|
+
bot ▸ 📌 本週 AI 大事彙整(3/11)|新聞動態 + Paperclip、RealWonder
|
|
142
|
+
https://driftnet.example/#item-1
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
<p align="center"><img src="https://raw.githubusercontent.com/KevinChu1110/driftnet/main/assets/cards-zh-TW.jpg" alt="driftnet 卡片清單:每則分享的貼文都變成它真正介紹的 repo,附一句摘要、所屬資料夾和被分享的次數" width="100%"></p>
|
|
146
|
+
<sub>實測結果。這篇貼文沒有附任何連結,driftnet 讀了說明文字,再用名稱到 GitHub 找到兩個 repo。</sub>
|
|
171
147
|
|
|
148
|
+
**2. 一眼看懂它是什麼。** 之前:聊天室裡一條光禿禿的連結。之後:一張卡片,有網頁上的圖片、一句話的答案、**你會看到什麼**和**為什麼會在這裡**,幾秒就能判斷要不要點開。
|
|
149
|
+
|
|
150
|
+
<p align="center"><img src="https://raw.githubusercontent.com/KevinChu1110/driftnet/main/assets/card-modal-zh-TW.jpg" alt="打開一張卡片:圖片、一句話摘要、你會看到什麼、為什麼會在這裡,以及開啟連結、加入最愛、移動、寫筆記、重新整理的按鈕" width="100%"></p>
|
|
151
|
+
|
|
152
|
+
**3. 用樹狀圖整理。** AI 自己分好的新連結會放在收件匣,附兩、三個建議資料夾。也可以在樹狀圖上把卡片拖到資料夾,樹狀圖像 XMind 一樣從中心往外展開。
|
|
153
|
+
|
|
154
|
+
<p align="center"><img src="https://raw.githubusercontent.com/KevinChu1110/driftnet/main/assets/map-zh-TW.jpg" alt="樹狀圖:資料夾從 driftnet 往外展開、底下掛著卡片;以及手機上的唯讀瀏覽" width="100%"></p>
|
|
155
|
+
|
|
156
|
+
## ✨ 核心功能
|
|
157
|
+
|
|
158
|
+
### 接住連結
|
|
159
|
+
|
|
160
|
+
- 🎯 **追到真正的工具。** 貼文附了 repo,就收錄 repo;貼文只提到專案名稱,就到 GitHub 用名稱完全比對。模型編出來的連結一律丟掉。
|
|
161
|
+
- 💬 **看得懂「連結在留言」。** [Chrome 擴充](https://github.com/KevinChu1110/driftnet/blob/main/docs/zh-TW/chrome-extension.md)會打開留言找;一篇週報整理文,會拆成每個專案各一筆。
|
|
162
|
+
- 📥 **很多種丟法。** Chrome 按鈕、手機 PWA 分享選單(Share Target)、Discord、Telegram、Slack 或 LINE 機器人、你的 agent,或一個 HTTP 請求(見[接法](https://github.com/KevinChu1110/driftnet/blob/main/docs/zh-TW/ways-in.md))。
|
|
163
|
+
|
|
164
|
+
### 看懂、整理
|
|
165
|
+
|
|
166
|
+
- 🖼️ **一眼看懂的卡片。** 圖片、一句話的答案、你會看到什麼、為什麼會在這裡。
|
|
167
|
+
- 🗂️ **資料夾就是分類。** AI 照每個資料夾的路徑和說明分新連結,建議放在收件匣等你確認。
|
|
168
|
+
- 🧠 **樹狀圖和並排檢視。** 把卡片拖到資料夾;✨ AI 整理建議會提一份方案,你套用之前什麼都不會動(見[網頁](https://github.com/KevinChu1110/driftnet/blob/main/docs/zh-TW/web-page.md))。
|
|
169
|
+
- 📱 **桌面 App、手機 PWA,還能匯出靜態展示站。** 提供桌面應用程式(macOS/Windows/Linux)與可安裝的行動版網頁;內建筆記、復原和垃圾桶、鍵盤快捷鍵、唯讀分享連結,以及靜態網站匯出(`driftnet export --format site -o ./docs`)。
|
|
170
|
+
- 🚫 **不是稍後閱讀 App。** Pocket、Raindrop 存的是你給它的那個連結;driftnet 會順著貼文追到它在講的工具,只留一份簡短大綱而不是整頁內容,你的 agent 還能透過 MCP 讀寫同一份清單。
|
|
171
|
+
|
|
172
|
+
### 便宜、安全、資料是你的
|
|
173
|
+
|
|
174
|
+
- 💸 **幾乎不花錢。** 重複的連結不再處理;頁面先整理成約 350 token 的大綱才給模型看。實測 5 個 FB reels,判斷全部只花 $0.00029。
|
|
175
|
+
- ⚖️ **選用的判斷器。** [Jev](https://console.typesafe.ai)(需要 TypeSafe 金鑰)用約 100ms 決定哪些值得摘要。沒有 Jev 時,由你選的模型逐筆分類。
|
|
176
|
+
- 🗳️ **學會排除垃圾。** 按 👎,發布者的信譽就下降;一直被倒讚的來源之後就不再花錢處理。
|
|
177
|
+
- 🛡️ **預設就安全。** 拒絕指向私有或本機位址的連結,提示詞注入永遠不會傳給 agent。
|
|
178
|
+
- 🤖 **agent 也能用。** MCP、`/openapi.json`、`/llms.txt`、`/feed.xml` 和對外 Webhook;也可以讓它們自己來讀(見 [Agent](https://github.com/KevinChu1110/driftnet/blob/main/docs/zh-TW/agents.md))。
|
|
179
|
+
- 🧩 **模型任選或不接,資料屬於你。** 用 Ollama 跑免費的本機模型、你已經有的 Claude 或 Gemini 訂閱、付費 API 金鑰(花費很低),或完全不接(連結照樣存下來,先放在「其他」等待整理)。資料存在本機 SQLite;介面與機器人回覆支援 6 種語言(**English、繁體中文、简体中文、日本語、한국어、Español**)。
|
|
172
180
|
|
|
173
181
|
## 📚 文件
|
|
174
182
|
|