Repository navigation
Releases
v0.4.1
Important
强烈建议在 2026-11-20 前升级 / Recommended upgrade before November 20, 2026
Cloudflare 将于 2026 年 11 月 20 日 正式下线 @cf/qwen/qwen3-30b-a3b-fp8(yaf v0.2.0–v0.4.0 洞察功能的默认免费模型)。到期后继续请求该模型会直接返回 HTTP 410 Gone (code 5028),导致洞察报告生成失败。
Cloudflare is retiring @cf/qwen/qwen3-30b-a3b-fp8 on November 20, 2026, after which requests to it will fail with HTTP 410 Gone (5028).
更新内容 / What's Changed
- 可选 Workers AI 洞察模型与废弃提醒(Selectable Workers AI insight model):
- 在 设置 › 洞察与搜索 › 洞察模型 中点击「更换模型」,可从当前可用的免费套餐模型(如
@cf/qwen/qwen3.8-27b、@cf/google/gemma-4-26b-a4b-it、@cf/zai-org/glm-4.7-flash、@cf/moonshotai/kimi-k2.5等)或 Paid 套餐模型(@cf/deepseek-ai/deepseek-v4.1-flash-1017、@cf/zai-org/glm-5.3)中选择,并支持按需开关思考模式(enable_thinking)。 - 新老用户策略:全新安装或首次启用洞察的用户默认使用
@cf/qwen/qwen3.8-27b(思考模式关闭);已有存量洞察计划的老用户保持原有配置不变,并在侧栏、洞察页与设置页给出明确的下线提醒,由用户自行确认切换。
- 在 设置 › 洞察与搜索 › 洞察模型 中点击「更换模型」,可从当前可用的免费套餐模型(如
- 洞察报告增强(Insights improvements):
- 报告正文(摘要、要点、追问)支持完整 Markdown 渲染(引用块、列表、行内代码与代码块);
- 每条笔记召回的相关历史笔记提升至 20 条,并由代码统计高频标签与未勾选待办直接提供给模型。
- 摘抄引用块渲染与标签识别优化(Excerpt quotes & tag linking):
- Markdown 引用块(
>)渲染为带悬挂引号与衬线字体的摘抄卡片,尾行以—或——开头时自动作为右下角来源行展示; - 正文中的
#tag仅在属于该 memo 的真实标签时才渲染为可点击链接(避免代码或正文中的#include等误匹配)。
- Markdown 引用块(
- 文档与 CI:
- 中英文 README 补充 16 张功能演示截图与目录;新增 GitHub Actions 类型检查与构建工作流。
升级说明 / Upgrade Notes
- Migrations: none(无需执行数据库迁移)
- Resources: none(无新增 Cloudflare 资源)
- Secrets: none(无新增 Secret)
- Action required(已开启洞察功能的存量用户):升级部署
v0.4.1后,请打开 设置 › 洞察与搜索 › 洞察模型,点击 更换模型,从@cf/qwen/qwen3-30b-a3b-fp8切换至Qwen 3.8 27B或Gemma 4 26B A4B并保存。 - 升级步骤 / Upgrade procedure: docs/AGENT-UPGRADE.md
v0.4.0
- Sidebar AI usage ring: today's Workers AI neurons for the account, admin only. Hidden until configured (optional secrets
CF_ACCOUNT_ID,CF_ANALYTICS_TOKEN,AI_PLAN). - WeChat image descriptions use
@cf/qwen/qwen3.8-27b(thinking off). npm run deploynow runs a preflight check (needsdatabase_id, no pending migrations).mainno longer contains adatabase_id: keep it on your owndeploybranch.- Includes v0.2.1 (card editor / device code) and v0.3.0 (lenses, private memo masking; migration
0007).
Install: tell your AI agent: Read https://raw.githubusercontent.com/uxgnod/yaf/main/docs/AGENT-INSTALL.md and install yaf for me.
Upgrade: docs/AGENT-UPGRADE.md. Migrations only add; rolling back the code is always safe. Per-version notes: CHANGELOG.md.
Migrations since v0.2.0: 0007. New resources: none. Required secrets: none new.
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。
v0.1.0 · The simple version
The original, simple version of yaf: a flomo-style memo app on Cloudflare Workers + D1. No AI, API or WeChat. Use this tag if you prefer a minimal starting point for a fork.
yaf 最初的简单版本:跑在 Cloudflare Workers + D1 上的 flomo 风格笔记应用,没有 AI、API 和微信。想要一个精简的起点来 fork,可以用这个标签。
- Memos in Markdown,
#tagswith nesting, tag filter · Markdown memo、层级标签、按标签筛选 - Keyword search, export to Markdown / JSON · 关键词搜索、导出 Markdown / JSON
- Email + password login, light / dark themes, stats and heatmap · 邮箱密码登录、亮暗主题、统计与热力图
Licensed under AGPL-3.0 (see the LICENSE file on main). 以 AGPL-3.0 授权(见 main 分支的 LICENSE)。