Repository navigation
v0.2.0 · AI-native yaf
yaf becomes AI-native. Self-hosted on Cloudflare, works on the free plan. Still a work in progress.
yaf 进入 AI 原生版本:自部署在 Cloudflare 上,免费套餐即可运行。仍在开发中。
Highlights · 主要更新
- Hybrid search · 混合检索: keywords (D1 FTS5 + Chinese segmentation) + semantics (Workers AI
bge-m3+ Vectorize), plus related notes for every memo. 关键词 + 语义检索,每条 memo 可查看相关笔记。 - Insights · 洞察: scheduled reviews of your memos with recurring themes and open questions, every point cited. Workers AI by default, or your own Claude key. 按计划回顾 memo,每条结论附原文引用;默认 Workers AI,也可用自己的 Claude key。
- MCP server · MCP 服务器: let Claude Code and other AI assistants search and write memos. 让 AI 助手直接搜索和记录 memo。
- API tokens and CLI · API Token 与命令行: scoped tokens, device-code login, and
yaf-clion npm. 按权限授权的 Token、设备码登录,以及 npm 上的yaf-cli。 - WeChat capture (experimental) · 微信收录(实验性): text, images and voice sent to WeChat ClawBot become memos; images and voice are stored in R2 and play back in the browser. Uses an unofficial protocol. 发给微信 ClawBot 的文字、图片、语音存为 memo;非官方协议。
- Source icons and auto tags · 来源图标与自动标签: each memo shows where it came from; optional automatic tags per source. 显示每条 memo 的来源,可按来源自动加标签。
- Settings · 设置页: account and security, API tokens, WeChat, insight plans and models, search index. 账号与安全、API Token、微信、洞察计划与模型、语义索引。
Upgrading from v0.1.0 · 从 v0.1.0 升级
New Cloudflare resources and secrets are required. See the deploy section in the README / 中文 README:
需要新增 Cloudflare 资源和密钥,步骤见 README 的部署一节:
npx wrangler vectorize create yaf-memos --dimensions=1024 --metric=cosineand create theuserIdmetadata indexopenssl rand -base64 32 | npx wrangler secret put ENCRYPTION_KEY- Optional · 可选:
npx wrangler r2 bucket create yaf-media(or remover2_bucketsfromwrangler.jsonc) npm run db:migrate:remote(migrations 0002–0006), thennpm run deploy
Existing memos are indexed for semantic search automatically within about 15 minutes. 已有 memo 会在约 15 分钟内自动建立语义索引。
License · 许可证
From this release yaf is licensed under AGPL-3.0, which also applies to earlier commits. The name "yaf" is covered by TRADEMARKS.md. yaf-cli is MIT.
从这个版本起,yaf 以 AGPL-3.0 授权(同样适用于更早的提交);「yaf」名称的使用见 TRADEMARKS.md;yaf-cli 为 MIT。