# Repository Briefing: runesleo/x-reader
> Source: https://repoforai.com/repo/runesleo/x-reader (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/runesleo/x-reader
- **Official Docs / Website**: https://xreader.leolabs.me
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A+ (91/100 · Maintenance 35/35 · Adoption 16/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.5.1 (2026-11-30) — https://github.com/runesleo/x-reader/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: MCP, CLI, Self-Hosted
- **Momentum**: 997 ★ total (+1 24h / +4 7d) · 97 forks
- **Topics**: `ai-agents`, `content-extraction`, `mcp`, `mcp-server`, `python`, `twitter`, `web-scraping`, `youtube`
- **When to Use**: Best for: Agent research, editorial intake, and link-triage workflows that need normalized source content and an explicit record of what was missed. Skip if: You need offline retrieval, reliable access to gated content, full visual analysis, or only a single extraction backend with no coverage reporting.

## Overview
```text
### Architecture & Core Mechanics
x-reader is a Python 3.10+ source reader with platform-specific adapters and a shared `UnifiedContent` schema. `x_reader/reader.py` orchestrates reads, while `x_reader/fetchers/` separates platform behavior from the normalized result. The base dependencies include `requests` for HTTP, `feedparser` for RSS, `html5lib` for generic HTML parsing, and `idna` for URL validation. Fetching, media completion, and interpretation are separate steps: an agent can inspect what was captured before deciding how to use it.

The CLI emits JSON and supports a local inbox. The packaged `x-reader-mcp` entrypoint exposes `read_url`, `read_batch`, `list_inbox`, and `detect_platform`; the root `mcp_server.py` is a compatibility shim for source checkouts. The experimental web surface invokes the existing `x-reader URL --json` path in an isolated environment and projects the result into an evidence receipt rather than implementing a second reader. Agent Skills add instructions for source reading, transcription, and interpretation.

### Key Capabilities & Differentiators
Adapters cover X, YouTube, Bilibili, WeChat, Xiaohongshu, Telegram, RSS, Xiaoyuzhou and Apple Podcasts, and generic web pages. Public X has an oEmbed-first path with fallbacks. Generic web reads can route a redirect to a platform-specific reader; Telegram uses Telethon with configured credentials. YouTube uses `yt-dlp` for metadata and subtitles and can fall back to Groq Whisper when configured. Podcast show notes are the default; spoken content requires opt-in local ASR.

The main capability is recording what the fetch did not establish. A search snippet is discovery, a description is metadata, and readable X post text does not cover an attached video. A thread whose subsequent posts have not been read can remain `PARTIAL`, and retrieving an X post does not provide the body of an X Article. Even a full subtitle track covers speech, not visuals. `PASS`, `PARTIAL`, `FAIL`, and `UNKNOWN` let a downstream agent decide whether to answer, qualify its answer, or seek the missing source layer.

### Trade-offs & Limitations
For article extraction alone, calling Jina Reader directly is a smaller integration; x-reader can use it as a fallback. For YouTube subtitles alone, direct `yt-dlp` avoids an extra abstraction. x-reader earns its place when several source types must feed one agent workflow and gaps need to remain visible. It does not make retrieval uniformly reliable: login and paywalls, deleted sources, upstream API changes, and missing subtitles can all reduce coverage. It is not a visual-analysis pipeline, and receipts do not fact-check the retrieved content.

Local execution also does not mean offline use or first-party-only traffic. Depending on the adapter and configuration, URLs can go to FxTwitter or Jina, and Groq transcription sends audio out. Playwright and local ASR add browser or compute overhead. URL validation blocks private and local targets on supported fetch paths, but retrieved content remains untrusted and should not be treated as agent instructions. MIT licensing permits commercial self-hosting of the software; rights to fetched content and platform access terms are separate.

### Hardware & Deployment Guide
For a local MCP installation, use Python 3.10+ and `pip install -e ".[mcp]"`, then `python mcp_server.py`; alternatively, use `uvx` to launch `x-reader-mcp`. The Claude Code and Codex plugin path uses `uvx` and a pinned repository commit. Enable the `browser` extra and install Chromium only for browser fallback; authenticated sessions, Telegram credentials, and transcription each require separate setup. `x-reader doctor --json` is a read-only readiness check. Base usage is network fetching and parsing, with no stated GPU requirement; size optional browser sessions and local ASR separately.

For a local web preview, run `x-reader-web --host 127.0.0.1 --port 8787`. The hosted beta has a narrower scope than the local toolset: it accepts public X, YouTube, and generic web URLs and gives each request a fresh temporary HOME and inbox without inheriting local credentials. v0.4.0 introduced `doctor`, v0.5.0 added the hosted receipt beta, and v0.5.1 hardened Agent Skill bootstrap and interrupted-install recovery without deploying the hosted service.
```

## Key Capabilities
```text
- MCP integration: `x-reader-mcp` exposes URL reads, batch reads, platform detection, and inbox access.
- Evidence receipts: `PASS`, `PARTIAL`, `FAIL`, and `UNKNOWN` describe coverage, not the truth of a source’s claims.
- Media handling: subtitles precede transcription; a full subtitle track still does not establish visual coverage.
- Generic web fetching: pinned direct reads check redirects and discover embedded media, with Jina Reader available as a fallback.
- Hosted isolation: public X, YouTube, and generic web reads use a fresh temporary HOME and inbox per request without inheriting local credentials.
- Diagnostics: `x-reader doctor --json` separates core blockers from optional gaps without printing secret values.
```

## Quick Start / Clone
```bash
npx skills add runesleo/x-reader --skill x-reader
```
