@narumitw/pi-firecrawl

Pi extension that exposes Firecrawl web scraping and crawling tools.

Packages

Package details

extension

Install @narumitw/pi-firecrawl from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@narumitw/pi-firecrawl
Package
@narumitw/pi-firecrawl
Version
0.1.26
Published
May 17, 2026
Downloads
1,431/mo · 1,431/wk
Author
narumitw
License
MIT
Types
extension
Size
15.5 KB
Dependencies
1 dependency · 0 peers
Pi manifest JSON
{
  "extensions": [
    "./src/firecrawl.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

🔥 pi-firecrawl — Firecrawl Web Scraping Tools for Pi Agents

npm Pi extension License: MIT

@narumitw/pi-firecrawl is a native Pi coding agent extension that exposes Firecrawl scraping, crawling, URL discovery, and search APIs as Pi tools.

Use it to give your AI coding agent reliable web research capabilities for documentation lookup, website audits, competitive research, content extraction, and retrieval-friendly markdown scraping.

✨ Features

  • Scrape a single URL into markdown, HTML, raw HTML, links, screenshots, or JSON.
  • Start Firecrawl crawl jobs from Pi.
  • Check crawl job status and retrieve completed crawl data.
  • Discover URLs with Firecrawl map.
  • Search the web and optionally scrape search result pages.
  • Supports Firecrawl API endpoint overrides.
  • Shows statusline activity only while Firecrawl tools are running.
  • Never logs or displays your Firecrawl API key.

📦 Install

pi install npm:@narumitw/pi-firecrawl

Try without installing permanently:

FIRECRAWL_API_KEY=fc-... pi -e npm:@narumitw/pi-firecrawl

Try this package locally from the repository root:

FIRECRAWL_API_KEY=fc-... pi -e ./extensions/pi-firecrawl

⚙️ Configuration

Set a Firecrawl API key before running Pi:

export FIRECRAWL_API_KEY=fc-your-key

Optional API endpoint override:

export FIRECRAWL_API_URL=https://api.firecrawl.dev/v1

FIRECRAWL_BASE_URL is also accepted for compatibility. The extension never logs or displays the API key.

🛠️ Pi tools

  • firecrawl_scrape — scrape a single URL and return requested formats such as markdown, HTML, links, screenshots, or JSON.
  • firecrawl_crawl — start a site crawl job and return the Firecrawl job id.
  • firecrawl_crawl_status — check a crawl job status and retrieve completed crawl data.
  • firecrawl_map — discover URLs for a site.
  • firecrawl_search — search the web through Firecrawl and optionally scrape result pages.

All tools fail with a clear configuration error when FIRECRAWL_API_KEY is missing.

💬 Command

/firecrawl

Shows whether the extension sees an API key and which Firecrawl API URL it will call.

🚀 Examples

Scrape a page as markdown:

{
  "url": "https://example.com",
  "formats": ["markdown"]
}

Map a small site:

{
  "url": "https://example.com",
  "limit": 20
}

Start a crawl with markdown extraction:

{
  "url": "https://example.com",
  "limit": 10,
  "scrapeOptions": {
    "formats": ["markdown"]
  }
}

🧠 Use cases

  • Research documentation from inside Pi.
  • Crawl websites for migration or audit tasks.
  • Extract clean markdown for AI context.
  • Discover URLs before scraping a site.
  • Combine web search with coding-agent implementation work.

🗂️ Package layout

extensions/pi-firecrawl/
├── src/
│   └── firecrawl.ts
├── README.md
├── LICENSE
├── tsconfig.json
└── package.json

🔎 Keywords

Pi extension, Pi coding agent, Firecrawl, web scraping, web crawling, URL discovery, web search, markdown extraction, AI research agent, TypeScript Pi tools.

📄 License

MIT. See LICENSE.