
firecrawl/anydoc
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ファイアクロール/anydocは、[[T0]からインポートされたエージェントスキル候補です。
概要
ファイアクロール/anydocは、[[T0]からインポートされたエージェントスキル候補です。
概要(AI 翻訳)
Word、PowerPoint、Excel、OpenDocument、RTF、EPUB、CSV、PDFなどのドキュメントをクリーンなGitHub風味のMarkdownに変換するFast Rustライブラリ。Node.js、Python、ブラウザ(WebAssembly)用のバインディングも含まれます。
Firecrawlによって開発され、オフィス文書を一桁ミリ秒でLLM対応のMarkdownに変換し、どのフォーマットでも一貫した出力が得られます。Firecrawl Parseを動かしているので、自分で動かしたくない場合は、ホストAPIで同じ変換と、Anydocでは読み取れないスキャンページのOCRモデルも提供できます。
ブラウザで試してみてください:デモページはライブラリをWebAssemblyとして実行するため、ファイルはローカルで変換され、マシンから出ることはありません。
クイックスタート
エージェントのスキル
anydocはエージェントスキルとして配信されるため、エージェントは遭遇した文書を読み取ることができます:
このスキルはエージェントにanydoc CLIで文書の変換を教えます。Claude Code、Codex、Cursor、OpenCode、その他互換性のあるエージェントで動作します。
CLI
npxは初回実行時にあなたのプラットフォーム用の既成バイナリをダウンロードします。恒久的なanydocコマンドを出す場合は、npm install -g @firecrawl/anydocでグローバルにインストールしてください。すべてのオプションでanydoc --helpを実行してください。
Node.js
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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);
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add firecrawl/anydoc