Skip to content

v0.2.0 · AI-native yaf

Choose a tag to compare

@uxgnod uxgnod released this 26 Oct 04:09
· 14 commits to main since this release

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-cli on 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 的部署一节:

  1. npx wrangler vectorize create yaf-memos --dimensions=1024 --metric=cosine and create the userId metadata index
  2. openssl rand -base64 32 | npx wrangler secret put ENCRYPTION_KEY
  3. Optional · 可选: npx wrangler r2 bucket create yaf-media (or remove r2_buckets from wrangler.jsonc)
  4. npm run db:migrate:remote (migrations 0002–0006), then npm 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。