Anylens

io.github.Slowper由 GitHub 帳號 Slowper 發布v0.5.3更新於 Nov 3, 2026

Turn videos, PDFs, screenshots, and articles into anchored, cached understanding for agents.

概覽

AI 產生的概覽

把影片、PDF、截圖和文章轉成附時間點或頁碼錨點、可快取的解析結果,讓助理依不同視角查詢。

可以做什麼
  • 分析網址或本機檔案並輪詢任務狀態,取得一份快取的解析結果
  • 以 student、developer、uiux、researcher、teardown、spec、blueprint、design、raw 等視角呈現該結果
  • 針對已分析的來源提出單一附錨點的問題,或列出可用視角
  • 依描述截取片段匯出影片,匯出單字卡或 markdown/JSON/HTML,並把來源朗讀成音訊
  • 從已分析的影片擷取可重複使用的風格,並據此規劃新作品
適用情境
適合助理需要依據它無法直接閱讀的素材工作時,例如演講、產品展示、螢幕錄影、掃描版 PDF 與文章,且結論必須能追溯到特定時間點或頁碼。也適合需要從來源取得可實作需求或設計規範的編碼助理。
執行需求
以 stdio 在本機執行,需要 Bun 1.3+、yt-dlp 與 ffmpeg;README 說明從複製的儲存庫安裝,並提到發布到 npm 後可用 npx anylens mcp。需要 GOOGLE_API_KEY 進行分析與視角呈現,可選 GROQ_API_KEY、ANTHROPIC_API_KEY 或 OPENAI_API_KEY,設定於 ~/.anylens/env 或網頁介面。需要連線至這些 API 與來源網址的網路。
安裝前請注意
需要付費的第三方 API 金鑰;README 表示除呼叫這些 API 外資料不離開本機,因此來源內容與提問會傳送給 Google,並可能傳送給 Groq、Anthropic 或 OpenAI。金鑰存放於本機 env 檔案。首次分析需數分鐘且會產生費用,結果會被快取。它會抓取遠端網址、讀取本機檔案,並可寫出 mp4、mp3、HTML 等匯出檔。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Anylens,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

anylens

Any link, any lens. Paste a URL — a conference talk, a product demo, a dense PDF, an article — and get it back as understanding shaped for who's asking, with every claim linked to the exact second or page it came from.

Agents can read text. anylens lets them read everything else — and lets you check their work.

analyze(url)  →  one cached Understanding  →  lens(source, "student")                                           →  lens(source, "spec")                                           →  lens(source, "uiux")   …

Why not just ask a chatbot to summarize it?

A summary is a dead end. You can't verify it, you can't get a different cut of it without paying for it again, it's blind to what was on screen, and no agent can act on it. anylens fixes those four things:

  • Verifiable — every claim carries its timestamp or page. stated is never blurred with inferred. Missing analysis is named, not hidden.
  • Many readers, one extraction — the expensive pass runs once and is cached forever; a second lens is cheap and instant.
  • Reads what was shown — on-screen code, slides, UI states, demos, not just the words. A silent ten-second screen recording still produces a full analysis.
  • Built for agents too — the spec lens turns any source into implementable requirements with acceptance criteria, over MCP.
  • Knows how it was made — for video, a production pass captures the music, the sound design, the shot rhythm, the motion and typography, and turns it into a recipe you (or a generator) can rebuild from. Content lenses let an agent know; the blueprint lens lets it make.

Lenses

LensForGives you
studentlearning without watchinglayered explainer, concept map, flashcards
developerbuilding from itcode shown on screen, decisions, implementation steps
uiuxdesign studyscreens, flows, interaction patterns
researchercitable notesclaims + evidence, every one anchored
teardowncompetitive analysisfeatures (shown vs claimed), flows, positioning
speccoding agentsrequirements, acceptance criteria, ambiguities
blueprintremaking itmusic, sound design, shot rhythm, motion, typography — as a production recipe
design"make it look like this"measured colour tokens, spacing and type rhythm, components — as paste-ready CSS
askone specific questionan anchored answer — or an honest "the source doesn't answer this"
rawagents, debuggingthe Understanding Object itself — no LLM, no cost

Lenses are single markdown files in src/lenses/. Adding one is adding a file — no code.

Beyond lenses: anylens can learn a reusable style from analyzed videos — the pacing, structure, look, motion, and sound as portable rules, every rule carrying the timestamp it was learned from — then plan new work in that style (style_extract / style_apply over MCP, or "Learn this style" in the web UI).

Quickstart

Prerequisites: Bun 1.3+, yt-dlp, and ffmpeg (brew install yt-dlp ffmpeg on macOS).

sh
git clone https://github.com/Slowper/anylens && cd anylensbun install

Keys — run bun run web and paste them on the Your keys page (they're validated as you save), or create ~/.anylens/env (mode 600) yourself:

GOOGLE_API_KEY=...      # required: analysis, structuring, lens renderingGROQ_API_KEY=...        # optional: Whisper transcripts for sources without captionsANTHROPIC_API_KEY=...   # optional: run the writing on Claude insteadOPENAI_API_KEY=...      # optional: run the writing on an OpenAI model instead

Get them at aistudio.google.com and console.groq.com. Nothing leaves your machine except the calls you make to those APIs. The text layer is provider-agnostic: set ANYLENS_TEXT_MODEL=anthropic (or groq, or openai/<model>) to choose who writes the lenses and answers — the media passes stay on Gemini, which is what it's genuinely best at.

Try it — from the terminal:

sh
bun bin/anylens.ts "https://www.youtube.com/watch?v=..."              # student explainerbun bin/anylens.ts ./screenshot.png --lens design --export css        # tokens you can pastebun bin/anylens.ts ~/Desktop/demo.mov --lens blueprint                # files on your machine work toobun bin/anylens.ts "<url>" --lens spec                                # any lensbun bin/anylens.ts "<url>" --ask "does this cover error handling?"    # one anchored answerbun bin/anylens.ts "<url>" --clip "where they demo the CLI"           # cut that segment to mp4bun bin/anylens.ts "<url>" --export anki                              # flashcard deck (or markdown/json/html)bun bin/anylens.ts "<url>" --audio                                    # narrate it to an mp3bun bin/anylens.ts "<url>" --open                                     # render the page and open it

Analysis takes a few minutes the first time and is cached forever after, so every later lens on the same link returns instantly. Pass a source_id instead of a URL to re-lens something already analyzed.

Or use the web UI:

sh
bun run web        # → http://127.0.0.1:4517 — paste a link, pick a lens

Use it from an agent — any MCP client

anylens speaks standard MCP over stdio, so Claude Code, Codex, Cursor, Gemini CLI, and anything else MCP-capable can use it the same way.

sh
# Claude Codeclaude mcp add --scope user anylens -- bun /absolute/path/to/anylens/bin/anylens.ts mcp
toml
# Codex CLI — ~/.codex/config.toml[mcp_servers.anylens]command = "bun"args = ["/absolute/path/to/anylens/bin/anylens.ts", "mcp"]
json
// Gemini CLI (~/.gemini/settings.json), Cursor (~/.cursor/mcp.json), or any other client{ "mcpServers": { "anylens": { "command": "bun", "args": ["/absolute/path/to/anylens/bin/anylens.ts", "mcp"] } } }

Once published to npm, npx anylens mcp replaces the path form everywhere.

Tools: analyze(url) → status(job_id) → lens(source_id, lens) · ask(source_id, question) · clip(source_id, query) · export(source_id, format) · audio(source_id) · style_extract / style_apply / style_list · lenses(). lens returns { data, markdown } — typed JSON for the agent, readable markdown for the human, plus a full HTML page with include_html. ask answers from the cache without re-analyzing.

What it reads

Video (YouTube, X, LinkedIn, Vimeo, Twitch, Loom, direct files — anything yt-dlp reaches), audio, PDFs (including scanned and figure-heavy ones, read page by page with vision), web articles, and images.

Full inventory: docs/FEATURES.md · Where it's going: docs/ROADMAP.md · Architecture and invariants: AI_INDEX.md

Contributing

New lenses are the easiest and most valuable contribution — see CONTRIBUTING.md. The codebase is deliberately small files with one concern each, so a change rarely touches more than one place.

MIT licensed.

來源:README.md,提交 3579dc5

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.5.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分