Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
This report summarizes scanner evidence for apify/crawlee, a TypeScript project with 26,303 GitHub stars. SynthScan examined 178,703 lines of code across 1973 source files, recording 97 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 0.7 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 78 finding(s).
Are imports declared and package/API names verified? 10 finding(s).
Are wrappers, guards, and repeated structures necessary? 78 finding(s).
Which changes need focused human review? 97 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 97 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/core/enqueue-links/enqueue-links.test.ts | 113 | async function runPlaywrightEnqueueLinks( | CODE |
| LOW | test/core/enqueue-links/click-elements.test.ts | 30 | function isPuppeteerTargetRelevant(page: PPPage, target: Target): boolean { | CODE |
| LOW | …/fs-storage/request-queue/request-queue-access.test.ts | 20 | async function seedQueueWithDanglingLock(dir: string) { | CODE |
| LOW | test/browser-pool/remote-browser.test.ts | 59 | function createMockPlaywrightLibrary(browser = createMockBrowser()) { | CODE |
| LOW | test/browser-pool/remote-browser.test.ts | 69 | function createMockPuppeteerLibrary(browser = createMockBrowser()) { | CODE |
| LOW | website/blog/2025/07-14-scrape-youtube/index.md | 271 | async def handle_transcript_request(route: PlaywrightRoute, request: PlaywrightRequest) -> None: | CODE |
| LOW | website/src/theme/Navbar/MobileSidebar/Layout/index.js | 5 | export default function NavbarMobileSidebarLayout({ | CODE |
| LOW | website/src/theme/Navbar/MobileSidebar/Header/index.js | 29 | export default function NavbarMobileSidebarHeader() { | CODE |
| LOW | …te/src/theme/BlogPostItem/Footer/ReadMoreLink/index.js | 15 | export default function BlogPostItemFooterReadMoreLink(props) { | CODE |
| LOW | website/src/theme/BlogPostItem/Header/Authors/index.js | 7 | export default function BlogPostItemHeaderAuthors({ className }) { | CODE |
| LOW | website/src/pages/index.js | 20 | function LanguageGetStartedSection() { | CODE |
| LOW | docs/public-api/crawlee-playwright.api.md | 187 | function enqueueLinksByClickingElements(options: EnqueueLinksByClickingElementsOptions): Promise<BatchAddRequestsResult> | CODE |
| LOW | docs/public-api/crawlee-playwright.api.md | 214 | function handleCloudflareChallenge(page: Page, url: string, options?: HandleCloudflareChallengeOptions): Promise<Respons | CODE |
| LOW | docs/public-api/crawlee-playwright.api.md | 217 | export function handleCloudflareChallengeHook(options?: HandleCloudflareChallengeOptions): PlaywrightHook; | CODE |
| LOW | docs/public-api/crawlee-puppeteer.api.md | 40 | function addInterceptRequestHandler(page: Page, handler: InterceptHandler): Promise<void>; | CODE |
| LOW | docs/public-api/crawlee-puppeteer.api.md | 75 | function enqueueLinksByClickingElements(options: EnqueueLinksByClickingElementsOptions): Promise<BatchAddRequestsResult> | CODE |
| LOW | docs/public-api/crawlee-puppeteer.api.md | 232 | function removeInterceptRequestHandler(page: Page, handler: InterceptHandler): Promise<void>; | CODE |
| LOW | packages/core/src/service-locator.ts | 339 | export function bindMethodsToServiceLocator( | CODE |
| LOW | packages/core/src/storages/request-loader.ts | 41 | export function joinRequestSourceStatuses(a: RequestSourceStatus, b: RequestSourceStatus): RequestSourceStatus { | CODE |
| LOW | packages/core/src/storages/utils.ts | 188 | function getOrCreate(): Promise<TItem[]> { | CODE |
| LOW | packages/core/src/storages/request-list.ts | 60 | function buildRequestListStateCodec(list: { | CODE |
| LOW | packages/core/src/storages/transaction.ts | 457 | export function currentStorageTransaction(): StorageTransaction | undefined { | CODE |
| LOW | packages/core/src/storages/transaction.ts | 481 | export function rejectOperationInTransaction(operation: string, reason = 'it cannot be rolled back.'): void { | CODE |
| LOW | packages/core/src/storages/transaction.ts | 494 | export function operationRejectedInTransaction(operation: string, reason = 'it cannot be rolled back.'): Error { | CODE |
| LOW | packages/core/src/storages/key-value-store-codec.ts | 128 | function isContentTypeStringifiable(contentType: string): boolean { | CODE |
| LOW | packages/http-crawler/src/internals/utils.ts | 15 | export function processHttpRequestOptions({ | CODE |
| LOW | packages/http-crawler/src/internals/utils.ts | 69 | export function extractCharsetFromHtmlBytes(bytes: Buffer): string | undefined { | CODE |
| LOW | packages/http-crawler/src/internals/utils.ts | 80 | export function parseContentTypeFromResponse(response: Response): { type: string; charset: BufferEncoding } { | CODE |
| LOW | packages/utils/src/internals/validation.ts | 11 | export function assertBrowserPoolNotConfigured(crawlerName: string, ignoredOptions: Dictionary): void { | CODE |
| LOW | packages/utils/src/internals/general.ts | 54 | function replaceShadowDomsWithHtml(rootElement: any) { | CODE |
| LOW | packages/cli/src/commands/create-project-command.ts | 69 | async function downloadTemplateFilesToDisk(template: Template, destinationDirectory: string) { | CODE |
| LOW | packages/browser-pool/src/fingerprinting/hooks.ts | 29 | export function createFingerprintPreLaunchHook(browserPool: BrowserPool<any, any, any, any, any>) { | CODE |
| LOW | packages/basic-crawler/src/internals/request-timeout.ts | 42 | export function remainingNavigationWindowMillis(ctx: object, windowMillis: number): number { | CODE |
| LOW | packages/basic-crawler/src/internals/cookie-utils.ts | 27 | export function getDefaultCookieExpirationDate(maxAgeSecs: number) { | CODE |
| LOW | packages/basic-crawler/src/internals/cookie-utils.ts | 37 | export function toughCookieToBrowserPoolCookie(toughCookie: Cookie): CookieObject { | CODE |
| LOW | packages/basic-crawler/src/internals/cookie-utils.ts | 61 | export function browserPoolCookieToToughCookie(cookieObject: CookieObject, maxAgeSecs?: number) { | CODE |
| LOW | packages/basic-crawler/src/internals/cookie-utils.ts | 88 | export function cookieStringToToughCookie(cookieString: string) { | CODE |
| LOW | …asic-crawler/src/internals/session-pool/fingerprint.ts | 31 | export function createDefaultSessionFingerprint(): SessionFingerprint { | CODE |
| LOW | …sic-crawler/src/internals/session-pool/session-pool.ts | 80 | function buildSessionPoolStateCodec(pool: { | CODE |
| LOW | …c-crawler/src/internals/enqueue-links/enqueue-links.ts | 158 | export function resolveBaseUrlForEnqueueLinksFiltering({ | CODE |
| LOW | …c-crawler/src/internals/enqueue-links/enqueue-links.ts | 209 | export function buildEnqueueStrategyPatterns(baseUrl: string, strategy: EnqueueStrategyOption): UrlPatternObject[] { | CODE |
| LOW | …es/basic-crawler/src/internals/enqueue-links/shared.ts | 82 | export function updateEnqueueLinksPatternCache( | CODE |
| LOW | …es/basic-crawler/src/internals/enqueue-links/shared.ts | 98 | export function constructGlobObjectsFromGlobs(globs: readonly GlobInput[]): GlobObject[] { | CODE |
| LOW | …es/basic-crawler/src/internals/enqueue-links/shared.ts | 148 | export function constructRegExpObjectsFromRegExps(regexps: readonly RegExpInput[]): RegExpObject[] { | CODE |
| LOW | …es/basic-crawler/src/internals/enqueue-links/shared.ts | 181 | export function constructUrlPatternObjects(patterns: readonly UrlPatternInput[]): UrlPatternObject[] { | CODE |
| LOW | …es/basic-crawler/src/internals/enqueue-links/shared.ts | 201 | export function filterRequestOptionsByPatterns( | CODE |
| LOW | …es/basic-crawler/src/internals/enqueue-links/shared.ts | 305 | function createPatternObjectMatcher(urlPatternObject: UrlPatternObject) { | CODE |
| LOW | …/src/internals/utils/puppeteer-request-interception.ts | 161 | export async function addInterceptRequestHandler(page: Page, handler: InterceptHandler): Promise<void> { | CODE |
| LOW | …/src/internals/utils/puppeteer-request-interception.ts | 204 | export async function removeInterceptRequestHandler(page: Page, handler: InterceptHandler): Promise<void> { | CODE |
| LOW | …/src/internals/utils/puppeteer-request-interception.ts | 235 | async function disableRequestInterception(page: Page): Promise<void> { | CODE |
| LOW | …-crawler/src/internals/enqueue-links/click-elements.ts | 214 | export async function enqueueLinksByClickingElements( | CODE |
| LOW | …-crawler/src/internals/enqueue-links/click-elements.ts | 305 | export async function clickElementsAndInterceptNavigationRequests( | CODE |
| LOW | …-crawler/src/internals/enqueue-links/click-elements.ts | 339 | function createInterceptRequestHandler(page: Page, requests: Set<string>): (req: PuppeteerRequest) => Promise<void> { | CODE |
| LOW | …-crawler/src/internals/enqueue-links/click-elements.ts | 366 | function isTopFrameNavigationRequest(page: Page, req: PuppeteerRequest): boolean { | CODE |
| LOW | …-crawler/src/internals/enqueue-links/click-elements.ts | 373 | function createTargetCreatedHandler(page: Page, requests: Set<string>): (target: Target) => Promise<void> { | CODE |
| LOW | …-crawler/src/internals/enqueue-links/click-elements.ts | 404 | function createFrameNavigatedHandler(page: Page, requests: Set<string>): (frame: Frame) => void { | CODE |
| LOW | …-crawler/src/internals/enqueue-links/click-elements.ts | 500 | function updateElementCssToEnableMouseClick(el: Element, zIndex: number): void { | CODE |
| LOW | …-crawler/src/internals/enqueue-links/click-elements.ts | 574 | async function restoreHistoryNavigationAndSaveCapturedUrls(page: Page, requests: Set<string>): Promise<void> { | CODE |
| LOW | …t-crawler/src/internals/adaptive-playwright-crawler.ts | 1067 | export function createAdaptivePlaywrightRouter(routesOrSchemas?: any): any { | CODE |
| LOW | …playwright-crawler/src/internals/playwright-crawler.ts | 354 | export function handleCloudflareChallengeHook(options?: HandleCloudflareChallengeOptions): PlaywrightHook { | CODE |
| 9 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | website/blog/2026/02-06/index.md | 41 | apiKey: 'your-api-key', // Your OpenAI API key (or use OPENAI_API_KEY env var) | CODE |
| HIGH | packages/stagehand-crawler/README.md | 19 | apiKey: 'your-api-key', // LLM API key for LOCAL env | CODE |
| HIGH | …s/stagehand-crawler/src/internals/stagehand-crawler.ts | 67 | * apiKey: 'your-api-key', | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …e/blog/2025/03-20-scrape-bluesky-using-python/index.md | 344 | except Exception: | CODE |
| LOW | …e/blog/2025/03-20-scrape-bluesky-using-python/index.md | 582 | except Exception as e: | CODE |
| LOW | website/blog/2024/12-02-scrape-google-search/index.md | 243 | except Exception as e: | CODE |
| LOW | …og/2024/12-13-scrape-google-maps-using-python/index.md | 304 | except Exception as e: | CODE |
| LOW | …og/2024/12-13-scrape-google-maps-using-python/index.md | 356 | except Exception as e: | CODE |
| LOW | …og/2024/12-13-scrape-google-maps-using-python/index.md | 402 | except Exception as e: | CODE |
| MEDIUM | …og/2024/12-13-scrape-google-maps-using-python/index.md | 403 | print(f"Error in scraping: {str(e)}") | CODE |
| LOW | …og/2024/12-13-scrape-google-maps-using-python/index.md | 428 | except Exception as e: | CODE |
| MEDIUM | …og/2024/12-13-scrape-google-maps-using-python/index.md | 429 | print(f"Error running scraper: {str(e)}") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/utils/open-graph-parser.test.ts | 28 | <meta property="article:author" content="Jane Doe"/> | CODE |
| LOW | test/utils/open-graph-parser.test.ts | 96 | author: 'Jane Doe', | CODE |
| LOW⚡ | test/shared/data/lipsum.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce aliquet, nibh sit amet volutpat rhoncus, nisl eros sagitt | CODE |
| LOW⚡ | test/shared/data/lipsum.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce aliquet, nibh sit amet volutpat rhoncus, nisl eros sagitt | CODE |
| LOW⚡ | test/shared/data/lipsum.txt | 7 | Cras sit amet sem sit amet mi pulvinar varius non sed dolor. Nulla eu libero ultricies, aliquam mi eget, elementum velit | CODE |
| LOW⚡ | test/shared/data/lipsum.txt | 9 | Sed elit arcu, aliquam et tempor vel, ultrices sit amet turpis. Nullam et lorem magna. Nulla at risus nec dui aliquet or | CODE |
| LOW⚡ | test/shared/data/lipsum.txt | 9 | Sed elit arcu, aliquam et tempor vel, ultrices sit amet turpis. Nullam et lorem magna. Nulla at risus nec dui aliquet or | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | website/blog/2025/09-15/index.md | 330 | # In this example, "https://news.ycombinator.com/login" will be skipped | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pnpm-workspace.yaml | 21 | "@puppeteer/browsers": "^3.0.4" | COMMENT |
| LOW | test/core/request-list.test.ts | 701 | [['x', [], []], 'Invalid input: expected object'], | COMMENT |
| LOW | test/core/request-list.test.ts | 721 | // } | COMMENT |
| LOW | test/core/storages/key-value-store.test.ts | 401 | const record = await store.getRecord('buf'); | COMMENT |
| LOW | packages/http-crawler/src/internals/http-crawler.ts | 361 | export class HttpCrawler< | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | website/src/pages/home_page_example.py | 11 | # Define the default request handler, which will be called for every request. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/http-crawler/src/internals/file-download.ts | 58 | * ## Example usage | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/src/internals/utils/puppeteer-request-interception.ts | 67 | async function handleRequest(request: PuppeteerRequest, interceptRequestHandlers?: InterceptHandler[]): Promise<void> { | CODE |