Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Katana

$ katana Official Med Risk
ProjectDiscovery · Browser & Web · MIT · macos / linux / windows

Katana (katana) is a fast, scope-aware web crawling framework from ProjectDiscovery supporting both standard HTTP parsing and headless Chrome crawling (-hl) with JavaScript endpoint extraction (-jc). Passing -jsonl -silent emits structured endpoint records for downstream analysis.

FCRS-1.0 Score
88 /100
Good
Medium Confidence
Zero-Friction Install
brew install katana
CLI vs MCP Decision CLI Preferred vs MCP

Crawls site link graphs and extracts JS endpoints orders of magnitude faster than step-by-step MCP browser navigation.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

First-class -jsonl, -silent, -nc, -f field filtering, and scope controls make headless pipeline integration clean.

  • Supports -jsonl, -f field filters, -silent, and -nc
Trust & Safety 19 / 25

Defaults to same-root-domain scope and -d 3 depth, with -rl rate limits, though -aff form filling can mutate remote state if enabled.

  • Built-in scope (-fs), depth (-d), and rate-limit (-rl) controls
Setup & Portability 14 / 15

Single static Go binary via Homebrew, go install, Docker, and GitHub Releases; headless -hl mode requires Chrome/Chromium.

  • Cross-platform binary via brew install katana and go install
Utility & Efficiency 14 / 15

Combines fast standard HTTP crawling with -jc JavaScript AST/regex parsing and optional headless browser rendering.

  • Supports standard + headless (-hl) crawling and JS parsing (-jc)
Maintenance & Lineage 9 / 10

Actively maintained by ProjectDiscovery (projectdiscovery/katana) under MIT license.

  • Official ProjectDiscovery project under MIT license
Docs & Verifiability 9 / 10

Comprehensive ProjectDiscovery documentation and structured -h flag help.

  • Official docs at docs.projectdiscovery.io/tools/katana

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

Accepts per-run -H headers/cookies and optional ~/.config/katana/config.yaml settings.

Side Effects
Read-Only Local Write
Cost & Quotas

Free, MIT open-source Go binary.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Katana Agent Rules
- Always bound crawl depth (`-d`), rate limit (`-rl`), and scope (`-fs rdn`) to prevent runaway crawling.
- Pass `-jsonl -silent -nc` for clean machine-readable stdout.
- Avoid `-aff` (automatic form filling) on live sites to prevent unintended state mutations.

Agent-Ready Command Recipes

Safe Read-Only Queries

Crawl a site with JS parsing and JSONL output
katana -u https://example.com -d 2 -jc -rl 15 -jsonl -silent

Crawls up to depth 2 (-d 2) with JS endpoint parsing (-jc) capped at 15 req/s and outputs JSONL.

Extract specific fields without headless overhead
katana -u https://example.com -d 1 -f qurl -silent

Quickly extracts URLs containing query parameters (-f qurl) at depth 1.

Strengths for Agents

  • + -jsonl -silent plus -f field filtering outputs clean, targeted endpoint feeds.
  • + Switches cleanly between fast HTTP mode and -hl headless Chrome rendering.

Caveats & Pitfalls

  • ! Headless mode (-hl) requires a local Chrome/Chromium installation.
  • ! Enabling -aff (automatic form filling) can trigger POST submissions on forms.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI