peco12 downloadsMeasure note and wikilink token costs, bundle linked Markdown context with local PII redaction, and audit vault health offline
Privacy-first AI context bundler, live wikilink token & cost meter, and reversible PII/secret vault for Obsidian (Desktop & Mobile).
Stop leaking client names, emails, Japanese MyNumbers, or API keys when pasting notes into ChatGPT, Claude, or Gemini — and stop guessing how many tokens your linked notes will cost before hitting send.
isDesktopOnly: false): Runs identically on macOS, Windows, Linux, iOS, and Android using standard Web APIs and Web Crypto (ES256).[[PII_EMAIL_1]], [[ALIAS_1]], [[SECRET_AWS_1]]) and restores AI replies locally in one click.[[wikilink]] neighbor tokens + real-time input cost across 6 frontier models (GPT-5, Claude Sonnet 4, Gemini 2.5 Pro, GPT-4o mini, Claude Haiku 4.5, Gemini 2.5 Flash).Copy note + linked notes safely)[[wikilinks]] and ![[embeds]] (including ![[Note#Heading]] section embeds) with automatic cycle detection (A -> B -> A).%%comments%% (while preserving %% inside fenced code blocks).<vaultlens_context>) or Markdown fenced packs straight to your clipboard.API_KEY/DB_PASSWORD assignments.Project Phoenix, Acme Holdings, 株式会社ミライ) -> automatically mapped to [[ALIAS_1]], [[ALIAS_2]] (or custom labels like Project Phoenix => CLIENT_A -> [[ALIAS_CLIENT_A_1]]).Paste / restore redacted tokens into active note): Restores placeholders in an AI response back to exact original values from the in-memory session vault (safely handles $& / $1 inside passwords). Includes an interactive Restore Modal for mobile devices where clipboard read permissions may be restricted.ES256 License — Zero Subscription Lock-In)Verified 100% offline using Web Crypto ECDSA P-256 (ES256) — works air-gapped on Desktop, iOS, and Android with zero license server calls.
VaultLens-Audit-Report.md with:[[wikilinks]][[wikilinks]] audit tablesSupport development & unlock Pro via GitHub Sponsors.
Settings -> Community plugins -> Browse -> BRAT).https://github.com/pecopeko/obsidian-vaultlensSettings -> Community plugins.main.js, manifest.json, and styles.css from the latest GitHub Release (1.0.0).<YourVault>/.obsidian/plugins/vaultlens-ai-context/.| Command | Tier | Description |
|---|---|---|
Copy note + linked notes safely (redact PII & secrets) |
Free | Bundle active note + configured wikilink depth, redact locally, copy to clipboard |
Copy note + 1-hop links safely (redact PII & secrets) |
Free | Quick 1-hop safe context bundle |
Copy note + 2-hop links safely (redact PII & secrets) |
Free | Quick 2-hop safe context bundle |
Paste / restore redacted tokens into active note |
Free | Restore [[PII_*]] / [[SECRET_*]] / [[ALIAS_*]] in selection or clipboard |
Open interactive AI reply restore modal |
Free | Paste & preview placeholder restoration (ideal for iOS/Android) |
Inspect active note tokens, links & PII findings |
Free | Open live 6-model cost matrix and masked findings inspector |
Clear in-memory PII redaction session vault |
Free | Immediately wipe in-memory placeholder mappings |
Pro: vault-wide token heatmap & broken wikilink audit |
Pro | Generate complete Markdown vault audit & heatmap report |
Pro: batch safe-export folder to RAG JSONL |
Pro | Export folder into sanitized, heading-chunked RAG JSONL |
Zero external dependencies (npm install is not even needed — runs directly on Node.js >= 20):
# Build deterministic mobile-safe main.js bundle from src/core/* + src/plugin.js
npm run build
# Run full Node.js native test suite (including mocked Obsidian plugin lifecycle against built main.js)
npm test
main.js.AKIA••••7890).MIT — see LICENSE.