# How ScrapLibra Works

> ScrapLibra converts unstructured links, YouTube podcasts, ArXiv PDFs, and Telegram Saved Messages into clean Obsidian Markdown notes in under 30 seconds. Local filters strip ads, tracking parameters, dead links, and private PII at 0 credit cost. Google Gemini 3.5 Flash synthesizes atomic notes into 20 flat folders, Google NotebookLM compendiums, and a live MCP gateway.

- **Canonical URL:** https://scraplibra.com/how-it-works/
- **Brand SSOT:** ScrapLibra (Official Telegram Bot: Telelibra @telelibra_ai_bot)

## 3-Step Pipeline
1. **Forward Any Link or File:** Send web articles, YouTube videos, ArXiv papers, or full Telegram Desktop export ZIP archives directly to the Telegram bot or web platform.
2. **Gemini Multimodal Triage:** Headless Playwright extracts full content. The Zero-Credit Noise Shield strips ads, navigation junk, and sponsor segments. Gemini 3.5 Flash synthesizes high-density intelligence.
3. **Dual Knowledge Delivery:** Receive an organized 20-folder Obsidian Vault with bidirectional wikilinks, plus a Google NotebookLM master compendium ready for 1-click AI podcast generation.

## Supported Input Sources & Automated Output Formats

One unified capture pipeline handles six distinct digital knowledge sources. ScrapLibra normalizes every URL, extracts clean full text without banners, and outputs standard Markdown plus NotebookLM and TOON streams.

| Input Source | Extraction Engine | Noise & Privacy Layer | Structured Output |
| --- | --- | --- | --- |
| Web articles & JS SPAs | Headless Playwright + SSRF shield | Strips ads, cookie walls, UTM trackers | Atomic Markdown + YAML + [[wikilinks]] |
| YouTube videos & podcasts | Full audio & transcript extractor | Removes sponsor reads & intro jingles | Timestamped summary + key quotes |
| ArXiv research papers | ArXiv XML & PDF parser | Strips boilerplate & raw layout junk | Structured thesis, methods & benchmarks |
| Telegram Saved Messages ZIP | Batch result.json / messages.html parser | Zero-Credit Shield (31–44% noise = 0 cr) | Clean 20-folder Obsidian Vault ZIP |
| Forwarded Telegram posts | Official bot Telelibra (@telelibra_ai_bot) | Separates author comment & blocks PII | Note with dedicated User Context callout |
| GitHub repositories | README & metadata analyzer | Filters badges & empty templates | Categorized /repositories note + stack tags |

## Deep-Dive Architecture Sub-Guides (6 Core Modules)

- [How ScrapLibra Extracts Web Articles, YouTube Audio, ArXiv PDFs & GitHub Repos (2026)](https://scraplibra.com/how-it-works/multimodal-ingestion-pipeline.md): How ScrapLibra scrapes JS-rendered pages with SSRF protection, transcribes YouTube talks, parses ArXiv papers, and canonicalizes URLs without duplicate billing.
- [Zero-Credit Noise Shield & Sensitive Data Filter: Never Pay for Junk Links (2026)](https://scraplibra.com/how-it-works/zero-credit-noise-shield.md): How ScrapLibra filters 31% to 44% archive noise (stickers, stubs, 404s, UTM duplicates) at 0 credit cost and blocks cards, phones, and OTPs before AI calls.
- [Anatomy of a ScrapLibra Obsidian Note: YAML Frontmatter, Wikilinks & Dataview (2026)](https://scraplibra.com/how-it-works/obsidian-markdown-anatomy.md): Inspect the exact Markdown schema generated by ScrapLibra: YAML frontmatter, User Context callouts, bidirectional wikilinks, and Obsidian Dataview PARA queries.
- [Google NotebookLM (Gemini Notebook) Master Compendiums & Audio Briefings (2026)](https://scraplibra.com/how-it-works/notebooklm-audio-compendiums.md): How ScrapLibra compiles hundreds of saved links into source-grounded Google NotebookLM (Gemini Notebook) master packs for 20-minute AI audio briefings.
- [Live AI Agent Memory: ScrapLibra MCP Gateway & TOON Serialization (2026)](https://scraplibra.com/how-it-works/mcp-toon-agent-memory.md): How ScrapLibra exposes 9 JSON-RPC 2.0 MCP tools to Claude Desktop, Cursor, and Antigravity using TOON serialization with HMAC-SHA256 authentication.
- [Zero-Trace Security, Multi-Tenant Isolation, HMAC Exports & GDPR Compliance (2026)](https://scraplibra.com/how-it-works/zero-trace-security-gdpr.md): How ScrapLibra secures personal knowledge bases: Inference-Only Gemini 3.5 Flash, isolated SQLite ledgers, 15-minute HMAC-SHA256 links, and 1-second GDPR erasure.

## What Does a Generated Obsidian Markdown Note Look Like?

Every ScrapLibra note uses standard plain-text Markdown with structured YAML frontmatter. You keep 100% file ownership with zero vendor lock-in across Obsidian, Logseq, VS Code, and Git.

```markdown
---
id: sl_2026_8491
category: ML
source_url: https://arxiv.org/abs/2402.12345
source_type: arxiv_paper
tags:
  - "#ml/state-space"
  - "#research/transformers"
  - "#llm/efficiency"
created_at: 2026-11-25T10:15:00Z
---
# Mamba-2: Linear Attention and State Space Duality

> [!NOTE] User Context
> Compare linear state-space memory footprint against KV-cache limits for local RAG pipelines.

## Key Atomic Takeaways
- Structured State Space Duality (SSD) maps selective SSMs directly onto semiseparable linear attention matrices.
- Hardware-aligned block decomposition trains 2x to 8x faster than Mamba-1 on modern GPUs.
- Constant inference state size eliminates quadratic KV-cache growth on 100k+ token research documents.

## Vault Connections
- [[00_INDEX/ML_MOC]]
- [[research/Hybrid-Attention-Benchmarks]]
- [[NotebookLM_Compendiums/ML_Master_Compendium]]
```

## 20-Folder Knowledge Taxonomy

| Folder | Domain Scope | Tags |
| --- | --- | --- |
| `/agents` | Autonomous AI Agents & Multi-Agent Systems | #agentic, #langgraph, #autogen, #tool-calling |
| `/ML` | Machine Learning, RAG & LLM Core | #transformer, #quantization, #lora, #embeddings |
| `/workflows` | CI/CD, SRE & Production Pipelines | #devops, #cloudrun, #automation, #docker |
| `/cases` | Enterprise Case Studies & Architectures | #architecture, #fintech, #scale, #postmortem |
| `/research` | ArXiv Papers, Benchmarks & Deep Math | #arxiv, #benchmark, #peer-reviewed, #math |
| `/tools` | Developer Utilities & Frameworks | #cli, #profiling, #terminal, #productivity |
| `/ideas` | Product Concepts & Startup Theses | #startup, #monetization, #growth, #saas |
| `/drafts` | Working Brainstorms & Fast Notes | #draft, #scratchpad, #unverified |
| `/policy` | Privacy, Compliance & AI Governance | #gdpr, #inference-only, #retention, #audit |
| `/hooks` | Webhooks, Event Bus & Triggers | #pubsub, #event-driven, #stripe-webhook, #idempotency |
| `/trading` | Financial Markets & Quantitative Strategies | #quant, #crypto, #risk-parity, #backtesting |
| `/hints` | Technical Cheat Sheets & SQL Recipes | #cheat-sheet, #sql, #regex, #bash |
| `/literature` | Books, Summaries & Deep Courses | #book-summary, #deep-dive, #foundations |
| `/repositories` | Curated Open-Source Codebases | #github, #oss, #stars, #cloning |
| `/issues` | Security Audits, CVEs & Bug Research | #cve, #exploit, #appsec, #hardening |
| `/jobs` | Career Growth & Senior Role Specs | #hiring, #staff-plus, #compensation, #interviews |
| `/resources` | Platform Hubs, Datasets & APIs | #dataset, #api-hub, #reference |
| `/rules` | Engineering Standards & Code Guidelines | #lint, #clean-code, #pythonic, #conventions |
| `/big_data` | Data Engineering, Parquet & ETL | #bigquery, #partitioning, #storage-write-api, #parquet |
| `/other` | Miscellaneous & Unclassified Notes | #archive, #misc, #general |

## System Architecture & Pipeline FAQ

### How long does ScrapLibra take to process a web article or YouTube lecture?

Standard web articles and GitHub repositories finish in 15 to 30 seconds. Long YouTube talks and ArXiv PDFs finish in 30 to 60 seconds, while bulk Telegram exports run in parallel queues.

### What happens if I forward a broken link, ad page, or duplicate URL?

ScrapLibra canonicalizes URLs to remove utm_source and fbclid trackers and tests page substance locally. Duplicate links, HTTP 404 pages, stickers, and ads deduct exactly 0 credits.

### Does ScrapLibra preserve my personal comment when I forward a Telegram link?

Yes. ScrapLibra extracts your comment separately and writes it into a dedicated User Context callout at the top of the Obsidian note for fast six-month recall.

### Does Google Gemini train AI models on my saved articles or notes?

No. ScrapLibra operates strictly in Google Cloud Inference-Only mode with multi-tenant SQLite isolation and Zero-Trace logging. Your private notes never train any AI model.

### How do I connect my processed Obsidian Vault to Claude Desktop or Cursor?

Generate a personal HMAC-SHA256 bearer token on Pro Second Brain ($4.99/mo or $47.88/yr). Add the MCP endpoint to Claude or Cursor to query notes in TOON format (-36.7% to -45% tokens).
