1.0.1 • Published 3 weeks ago
flycrawl
Licence
MIT
Version
1.0.1
Deps
0
Size
7 kB
Vulns
0
Weekly
0
FlyCrawl TypeScript / JavaScript SDK
Official client SDK for FlyCrawl — Zero-Leak Web-to-Markdown & AI Ingestion API.
Official npm Package:
flycrawl
(Note: The canonical package isflycrawl. Always installnpm install flycrawl).
Installation
npm install flycrawl
# or
pnpm add flycrawl
# or
yarn add flycrawl
Quick Usage
import { FlyCrawlApp } from 'flycrawl';
const app = new FlyCrawlApp({ apiKey: 'fly_live_your_api_key' });
// 1. Scrape single page with browser actions
const scrapeResult = await app.scrapeUrl('https://example.com', {
format: 'markdown',
actions: [{ type: 'wait', milliseconds: 1000 }]
});
console.log(scrapeResult.content);
// 2. Discover all URLs on a domain in <2s
const sitemap = await app.mapUrl('https://example.com', { limit: 1000 });
console.log(`Discovered ${sitemap.total_links} links`);
// 3. Live search & auto-scrape
const searchRes = await app.search('latest AI models 2026', { limit: 5 });
console.log(searchRes.results);
// 4. Structured JSON extraction
const extracted = await app.extract('https://example.com/pricing', {
prompt: 'Extract all pricing tiers'
});
console.log(extracted.data);