@octocrawl/ai-sdk weekly downloads statistics
Octocrawl scrape and map as Vercel AI SDK tools: web pages as Markdown with an Evidence Record. Hosted, no key needed.
@octocrawl/ai-sdk has 102 recorded weekly downloads on npm, a decrease of 90.4% over the past 30 days, ranking #2623 of 3,247 tracked listings.
About @octocrawl/ai-sdk
@octocrawl/ai-sdk
Octocrawl's scrape and map as AI SDK tools. scrape reads a web page as Markdown (or links, cleaned HTML, tables), and map lists a site's URLs. Every page carries an Evidence Record: the final URL, HTTP status, robots.txt decision and hashes of what was read. A page that is blocked, empty or not the page asked for comes back with that status and the reason, not as content.
The tools call hosted Octocrawl by default: no account and no key, 20 pages a day per address.
npm install @octocrawl/ai-sdk ai zod
import { generateText, isStepCount } from 'ai'
import { octocrawlTools } from '@octocrawl/ai-sdk'
const { text } = await generateText({
model: 'anthropic/claude-sonnet-5.5',
tools: octocrawlTools(),
stopWhen: isStepCount(5),
prompt: 'Find the pricing page on https://example.com and summarize it. Cite the final URL you read.',
})
With ai 6, use stepCountIs(5) in place of isStepCount(5). The tools need zod 4. With ai 7, which needs Node.js 22, a CommonJS project needs Node.js 22.12 or later to load it.
Options
octocrawlTools(options) returns { scrape, map }. scrapeTool(options) and mapTool(options) return one tool each.
apiKey: an Octocrawl key (oc_…), sent asAuthorization: Bearer. A key raises the daily allowance. Defaults toOCTOCRAWL_API_KEY.baseUrl: the Octocrawl API to call. Defaults toOCTOCRAWL_API_URL, elsehttps://api.octocrawl.dev. Point it athttp://127.0.0.1:8787to use a server you run withnpx octocrawl serve: no daily limit, and the browser lane for pages that only appear in a browser.fetch: a fetch to send the requests with.
What the tools return
scrape returns status, requestedUrl, finalUrl, httpStatus, title, the formats asked for (markdown by default), warning and agentHints when there are any, and evidenceRecord. Only success and partial carry the page's content. For the other statuses, failureReason or blockReason says why.
scrape accepts an optional verify contract and preserves verification and readiness when the server supplies them. Ask for the formats a check reads, for example formats: ['tables'] and verify: { checks: [{ type: 'tableRowsMin', tableIndex: 0, columns: [0, 1], min: 1 }] }. Output formats are unchanged; this tool does not offer list selectors or JSON extraction.
field and explicit listRecordsMin.path checks can target only fields preserved unchanged in the tool result: status, requestedUrl, finalUrl, markdown, links, html, tables and truncated, including nested paths such as links.0. Other paths are refused with invalid_request before any API call. This includes snapshot, document, metadata, usage, and verdict fields (verification, readiness, evidenceRecord). The output's httpStatus and title are renamed fields and cannot be used in this tool's contract either. Use the REST API or TypeScript SDK for those checks. recordFields and listRecordsMin without a path require list/JSON records this tool does not return, so they are also refused. Supported contracts are forwarded unchanged; the tool does not rewrite their paths or hashes.
Read verification.status separately from fetch status: passed means only the configured checks passed, failed needs the failed checks, readiness and access reason examined, and not_requested or a missing field means the task has not been verified. A successful navigation-only page is not a completed product task. Neither success nor extraction confidence proves field accuracy. Login walls, captchas and unavailable source data are not instructions to retry automatically. emptyOk permits an already verified empty result, not an unknown or unavailable one. The server enforces contract validation; hosted Octocrawl refuses regex checks and their refusal is returned without retrying.
map returns status, links (url, with title and description when known), and counts of the URLs returned and of those left out: outside the site, disallowed by robots.txt, repeated, filtered by search or past limit.
When the API refuses a call, the tool answers { status: 'refused', httpStatus, code, error, agentHints, retryAfterSeconds } instead of throwing, so the model can read what to do next. A refusal can be the daily allowance used up (quota_exhausted, reset at 00:00 UTC), a rate limit or an invalid key. A network failure still throws.
More
- Guide: https://octocrawl.dev/docs/integrations/ai-sdk/?utm_source=npm&utm_medium=readme&utm_campaign=ai-sdk
- Limits of hosted Octocrawl: https://octocrawl.dev/docs/limits/?utm_source=npm&utm_medium=readme&utm_campaign=ai-sdk
- The same tools over MCP: https://octocrawl.dev/docs/connect-mcp/?utm_source=npm&utm_medium=readme&utm_campaign=ai-sdk
Licence: MIT, for this package. The Octocrawl server is AGPL-3.0-only. Source: https://github.com/77777R7/Octocrawl
Description from the npm listing.
- octocrawl
- web-scraping
- web-crawler
- scraper
- markdown
- html-to-markdown
- llm
- rag
- ai-agents
- evidence
- ai-sdk
- vercel-ai-sdk
- tools
- typescript
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (142)Similar npm AI SDKs plugins
All 20 @octocrawl/ai-sdk alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@octocrawl/ai-sdk. First seen Nov 9, 2026; last successful collection Dec 2, 2026. See the methodology.