FA

firecrawl/anydoc

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

23,2 тыс. stars Качество 74 Тренд 89MIT

firecrawl/anydoc — это кандидат на навык агента, импортированный из https://github.com/firecrawl/anydoc.

Обзор

firecrawl/anydoc — это кандидат на навык агента, импортированный из https://github.com/firecrawl/anydoc.

Обзор (машинный перевод)

Библиотека Fast Rust, которая преобразует документы (Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV и PDF) в чистый Markdown с использованием GitHub. Включает привязки для Node.js, Python и браузера (WebAssembly).

Создано Firecrawl для превращения любого офисного документа в Markdown, готовый к LLM, за однозначные миллисекунды, с одним единым результатом независимо от формата. Он поддерживает Firecrawl Parse, так что если вы не хотите запускать его самостоятельно, хостинговый API даёт ту же конверсию, плюс наши OCR-модели для отсканированных страниц, которые ни один doc не может прочитать самостоятельно.

Попробуйте в браузере: демо-страница запускает библиотеку в формате WebAssembly, поэтому файлы конвертируются локально и никогда не покидают ваш компьютер.

Быстрый старт

Мастерство агента

anydoc поставляется как навык агента, чтобы ваш агент мог прочитать любой документ, в который он наткнётся:

Навык обучает агента конвертировать документы с помощью CLI anydoc. Работает с Claude Code, Codex, Cursor, OpenCode и любым другим совместимым агентом.

CLI

npx скачает готовый бинарный файл для вашей платформы при первом запуске. Для постоянной команды anydoc установите её глобально с помощью npm install -g @firecrawl/anydoc. Запустите anydoc --help для всех вариантов.

Node.js

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

anydoc

Fast Rust library that converts documents (Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, and PDF) into clean GitHub-Flavored Markdown. Includes bindings for Node.js, Python, and the browser (WebAssembly).

Built by Firecrawl to turn any office document into LLM-ready Markdown in single-digit milliseconds, with one consistent output no matter which format goes in. It powers Firecrawl Parse, so if you’d rather not run it yourself, the hosted API gives you the same conversion plus our OCR models for the scanned pages anydoc can’t read on its own.

Try it in your browser: the demo page runs the library as WebAssembly, so files are converted locally and never leave your machine.

Quick start

Agent skill

anydoc ships as an Agent Skill, so your agent can read any document it runs into:

npx skills add firecrawl/anydoc

The skill teaches the agent to convert documents with the anydoc CLI. Works with Claude Code, Codex, Cursor, OpenCode, and any other compatible agent.

CLI

npx @firecrawl/anydoc report.docx               # Markdown to stdout
npx @firecrawl/anydoc slides.pptx -o slides.md  # or to a file
npx @firecrawl/anydoc - --format csv < data.csv # read stdin
npx @firecrawl/anydoc scan.pdf --ocr hosted     # scanned pages via Firecrawl Parse

npx downloads the prebuilt binary for your platform on first run. For a permanent anydoc command, install globally with npm install -g @firecrawl/anydoc. Run anydoc --help for all options.

Node.js

npm install @firecrawl/anydoc
import { toDocument, toMarkdown, toMarkdownBytes } from '@firecrawl/anydoc';

// From a file path:
const markdown = await toMarkdown('report.docx');

// To enable OCR:
const markdown = await toMarkdown('report.docx', { ocr: 'hosted' );

// From bytes, with the format detected from the content:
const fromBytes = await toMarkdownBytes(bytes);

// Or name it, which signature-less formats (CSV) need:
const fromCsv = await toMarkdownBytes(bytes, 'csv');

// Or stop at the document model, which also carries embedded assets:
const document = await toDocument(bytes);
Открыть полный README на GitHub

Рекомендуемые инструменты

Попробуйте другой запрос или уберите фильтр.

Установка

npx skillfish add firecrawl/anydoc
Новичок в MCP? Начните с руководства на mcpskill.org →