Skip to main content
ClaudeWave

Easily download long-format articles and floods from X as Markdown (.md), Text (.txt), or PDF files.

ToolsRegistry oficial9 estrellas0 forks● TypeScriptActualizado today
ClaudeWave Trust Score
62/100
· OK
Passed
  • ✓Actively maintained (<30d)
  • ✓Clear description
  • ✓Documented (README)
Flags
  • !No standard license detected
Last scanned: 10/4/2026
Get started
Method: Clone
Terminal
git clone https://github.com/ahmetdeveci3112-crypto/Xtracticle
1. Clone the repository.
2. Follow the README for installation and usage instructions.
Casos de uso

Resumen de Tools

<div align="center">
  <img width="80" height="80" src="public/icon-192.png" alt="Xtracticle Logo"/>
  <h1>Xtracticle</h1>
  <p><strong>Download X (Twitter) Articles, threads & posts as PDF, Markdown, EPUB/Kindle, text or a ZIP with images.</strong></p>
  <p>Free, open source, no login required.</p>

  <p>
    <a href="https://www.producthunt.com/posts/xtracticle" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=xtracticle&theme=light" alt="Xtracticle - Download X articles & threads as Markdown, Text or PDF | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
  </p>

  <p>
    <a href="#features">Features</a> •
    <a href="#getting-started">Getting Started</a> •
    <a href="#architecture">Architecture</a> •
    <a href="#seo--ai-discoverability">SEO & AI</a> •
    <a href="#api">API</a> •
    <a href="#contributing">Contributing</a>
  </p>

  <img src="https://img.shields.io/badge/React-19-61DAFB?logo=react&logoColor=white" alt="React 19"/>
  <img src="https://img.shields.io/badge/TypeScript-5.8-3178C6?logo=typescript&logoColor=white" alt="TypeScript"/>
  <img src="https://img.shields.io/badge/Vite-6-646CFF?logo=vite&logoColor=white" alt="Vite 6"/>
  <img src="https://img.shields.io/badge/TailwindCSS-4-06B6D4?logo=tailwindcss&logoColor=white" alt="TailwindCSS 4"/>
  <img src="https://img.shields.io/badge/Cloudflare_Workers-F38020?logo=cloudflare&logoColor=white" alt="Cloudflare Workers"/>
</div>

---

**Live:** [xtracticle.com](https://xtracticle.com) — or just change `x.com` to `xtracticle.com` in any post URL.

## Features

### Export formats
| Format | What you get |
|--------|--------------|
| **PDF** | A4, print-ready; title/author/date/source header, images, page numbers, clickable source link. Rendered page by page so long articles never produce blank PDFs and lines are never cut. |
| **Markdown** | Headings, bold/italic/strikethrough, links, nested lists, quotes, code, dividers, images, video thumbnails. Optional YAML front-matter (Obsidian properties, Hugo/Jekyll/Astro). |
| **EPUB 3** | Reflowable e-book with embedded images and metadata — Kindle (Send to Kindle), Kobo, Apple Books. |
| **ZIP + images** | Markdown + every image stored locally — an offline archive that survives deleted posts. |
| **Text** | Clean `.txt`. |
| **Obsidian** | Copies the Markdown and opens a new note via `obsidian://new`. |

### Content
- 📝 **X Articles** — full Draft.js conversion: cover, inline images, videos, captions, embedded posts
- 🧵 **Threads from any post** — paste the first, a middle or the last post; the whole self-thread is assembled (other people's replies are excluded)
- 💬 **Posts** — line breaks, photos, videos and quoted posts
- 🔗 **Flexible input** — x.com, twitter.com, mobile, fxtwitter/vxtwitter/fixupx, nitter/xcancel links, `/i/web/status/`, bare IDs, links inside shared text

### Workflow
- 🔁 **URL swap** — `xtracticle.com/{user}/status/{id}` opens a post directly, with rich link previews (Open Graph) when shared
- 📚 **Batch mode** — up to 20 links → one ZIP of Markdown files
- 🔖 **Bookmarklet** and **PWA share target** (share from the X app on Android)
- 🔊 **Listen** — read aloud with the browser's text-to-speech
- 📱 **iPhone/iPad Shortcut** — share a post from the X app straight to Xtracticle (`public/shortcuts/`)
- 🤖 **MCP server + Markdown API** — AI assistants read X posts as Markdown (`/mcp`, `/api/markdown/:id`)
- 📜 **History**, 🌙 **dark mode**, 🌍 **English, Español, Português, 日本語, 简体中文, العربية, Türkçe** (Arabic is right-to-left)
- 📈 **Analytics events** — `extract`, `download` (format), `copy`, `share`, `listen`, `batch_extract`, errors — in GA4

## Getting Started

```bash
git clone https://github.com/ahmetdeveci3112-crypto/Xtracticle.git
cd Xtracticle
npm install
npm run dev
```

The dev server runs at `http://localhost:5173`. `/api/*` is served by the **same handler as the Worker** (`src/shared/api.ts`), and every landing page is rendered on the fly — no wrangler needed.

| Script | Description |
|--------|-------------|
| `npm run dev` | Vite dev server with the API |
| `npm run build` | Production build → `dist/` (all landing pages, 404, sitemap) |
| `npm run preview:worker` | Build and run the real Worker locally with `wrangler dev` (SSR status pages, 404s, `_headers`) |
| `npm run lint` | Type-check the app and the Worker |

## Deployment

Cloudflare Workers + Static Assets, deployed automatically on push to `main` (build: `npm run build`, deploy: `npx wrangler deploy`). No environment variables.

`wrangler.json`:
- `run_worker_first` — only `/api/*`, `/mcp`, `/video/*` and `/*/status/*` hit the Worker; everything else is served straight from the CDN
- `not_found_handling: "404-page"` — unknown URLs return a real `404` (no soft-404s)
- `public/_headers` — security headers, `Link: </llms.txt>`, download headers for the iOS Shortcut

## Architecture

```
Browser ──► Cloudflare
             ├─ Static assets (dist/)          /, /x-article-to-pdf, /tr/, … , 404.html, sitemap.xml
             └─ Worker (src/worker.ts)
                 ├─ /api/thread/:id, /api/tweet/:id ──► src/shared/api.ts ──► FxTwitter API
                 │                                        (edge cache, 5 min)
                 └─ /{user}/status/{id} ──► app shell + per-post OG tags + preloaded JSON (noindex)
```

```
src/
├── App.tsx              UI: extraction, exports, batch mode, deep links
├── i18n.ts              UI strings (en, tr, es, pt, ja, zh)
├── lib/export.ts        PDF (jsPDF + html2canvas-pro), EPUB, ZIP (fflate), Obsidian
├── lib/url.ts           Input + path parsing
├── lib/analytics.ts     GA4 event helper
├── shared/fx.ts         FxTwitter client (v2 thread endpoint + v1 fallback), shared by Worker & dev server
├── shared/api.ts        JSON API handler with edge caching
├── shared/convert.ts    Posts / threads / Draft.js articles → Markdown + text + metadata (app + Worker)
├── shared/markdown.ts   GET /api/markdown/:id
├── shared/mcp.ts        Remote MCP server (POST /mcp)
├── shared/text.ts       Title extraction
└── worker.ts            Cloudflare Worker (API + status-page SSR)
site/
├── blocks.ts            Types + localized shared blocks (shortcuts, privacy)
├── pages.ts             English pages (one per search intent) + page registry
├── pages-{es,pt,ja,zh,ar,tr}.ts  The same pages, localized (linked by `group`)
├── curated.ts           Weekly “Best X Articles” pages from site/curated/*.json
├── guides.ts            /guides — informational guides
├── mcp-page.ts          /mcp-server — MCP setup docs
├── render.ts            Head/meta/JSON-LD/content/footer rendering
└── plugin.ts            Vite plugin: emits every page, 404.html and sitemap.xml
```

Heavy export libraries are dynamically imported, so the initial page only loads React + the app.

## SEO & AI Discoverability

| Layer | Implementation |
|-------|---------------|
| **Intent pages** | `/x-article-to-pdf`, `/x-article-to-markdown`, `/x-thread-to-pdf`, `/x-article-to-epub`, `/save-x-articles-to-obsidian`, `/thread-reader-app-alternative` — each with unique, visible HTML content and FAQ |
| **Languages** | Every page in 7 languages (`/`, `/es/…`, `/pt/…`, `/ja/…`, `/zh/…`, `/ar/…`, `/tr/…`) + UI in 7 languages; first-visit language banner, remembered choice redirects (never for crawlers) |
| **Crawlable content** | Content is static HTML outside the React root — no JS needed to index it |
| **Structured data** | `WebApplication`, `FAQPage` (matches visible FAQ), `BreadcrumbList` |
| **i18n** | Reciprocal `hreflang` for every translation group + `x-default` |
| **Share pages** | `/{user}/status/{id}` get post-specific OG/Twitter tags; `noindex, follow` |
| **Sitemap / 404** | Generated at build; real 404 status for unknown URLs |
| **AI** | [`/llms.txt`](public/llms.txt), [`/llms-full.txt`](public/llms-full.txt), AI crawlers allowed in `robots.txt` |

## API

```
GET /api/thread/:id  → { tweets: Tweet[], count, isThread }   # self-thread containing :id
GET /api/tweet/:id   → Tweet
GET /api/markdown/:id → text/markdown  # ?format=markdown|text&thread=0|1&front_matter=0|1
POST /mcp            → MCP (Streamable HTTP, stateless), tool read_x_post
```

`Tweet` mirrors the FxTwitter status object (`text`, `author`, `media`, `quote`, `article`, …). Responses are edge-cached for 5 minutes — please be gentle.

## Weekly “Best X Articles”

`/best-x-articles` is a hand-reviewed weekly selection built from `site/curated/*.json` (title, author and a one-sentence summary in our own words — never the article text).

```bash
npm run curate -- 2026-W41 https://x.com/user/status/123 https://x.com/other/status/456
# → site/curated/2026-w41.json with title/author/lang filled in; write "intro", "topic" and "summary"
npm run build   # issues with an empty summary are skipped automatically
```

The newest issue is shown on `/best-x-articles` (its `/best-x-articles/<week>` page canonicals to the hub until the next issue); older issues stay at `/best-x-articles/<week>`.

## Contributing

1. Fork the repo
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes
4. Open a Pull Request

Notes:
- Landing page copy lives in `site/pages.ts`; run `npm run build` to see the generated HTML
- Keep `src/shared/*` free of DOM/Node-only APIs — it runs in both the Worker and the dev server
- Test Worker-only behavior (SSR, 404, headers) with `npm run preview:worker`

## License

MIT

Lo que la gente pregunta sobre Xtracticle

¿Qué es ahmetdeveci3112-crypto/Xtracticle?

+

ahmetdeveci3112-crypto/Xtracticle es tools para el ecosistema de Claude AI. Easily download long-format articles and floods from X as Markdown (.md), Text (.txt), or PDF files. Tiene 9 estrellas en GitHub y su última actualización registrada es del 2026-10-03.

¿Cómo se instala Xtracticle?

+

Puedes instalar Xtracticle clonando el repositorio (https://github.com/ahmetdeveci3112-crypto/Xtracticle) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar ahmetdeveci3112-crypto/Xtracticle?

+

Nuestro agente de seguridad ha analizado ahmetdeveci3112-crypto/Xtracticle y le ha asignado un Trust Score de 62/100 (tier: OK). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene ahmetdeveci3112-crypto/Xtracticle?

+

ahmetdeveci3112-crypto/Xtracticle es mantenido por ahmetdeveci3112-crypto. La última actividad registrada en GitHub es del 2026-10-03, con 0 issues abiertos.

¿Hay alternativas a Xtracticle?

+

Sí. En ClaudeWave puedes explorar tools similares en /categories/tools, ordenados por popularidad o actividad reciente.

Despliega Xtracticle en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: ahmetdeveci3112-crypto/Xtracticle
[![Featured on ClaudeWave](https://claudewave.com/api/badge/ahmetdeveci3112-crypto-xtracticle)](https://claudewave.com/repo/ahmetdeveci3112-crypto-xtracticle)
<a href="https://claudewave.com/repo/ahmetdeveci3112-crypto-xtracticle"><img src="https://claudewave.com/api/badge/ahmetdeveci3112-crypto-xtracticle" alt="Featured on ClaudeWave: ahmetdeveci3112-crypto/Xtracticle" width="320" height="64" /></a>

Más Tools

Alternativas a Xtracticle