How leeeeeeedw/cfdata-web works
CFData-Web is a Go Cloudflare IP scanning, filtering, and speed-testing tool with Web and CLI entry points. The Web workflow is driven by browser WebSocket actions through task management into official or custom-target scans, optional detailed tests and speed tests, then result display/export; CLI runs comparable modes and supports GitHub uploads. The README also documents IPv4 subnet compaction and cache reset. Edges reflect README relationships or shown call sites; several unexcerpted CLI and service internals are represented only at their documented subsystem paths.
Main entry points: tasks_official.go Official IP scan · cli.go CLI mode · tasks_nsb.go Custom target testing · server.go WebSocket commands
Components 24
Interfaces
- Web interface
combined_refactor/index.html - CLI mode
combined_refactor/cli.go - HTTP and WS server
combined_refactor/main.go - Web authentication
combined_refactor/auth.go - WebSocket commands
combined_refactor/server.go - WebSocket transport
combined_refactor/server.go
Task runtime
- Task control
combined_refactor/session.go - Bounded workers
combined_refactor/tasks_common.go - Session results
combined_refactor/types.go
Testing workflows
- Official IP scan
combined_refactor/tasks_official.go - Detailed testing
combined_refactor/tasks_official.go - Speed testing
combined_refactor/tasks_speed.go - Custom target testing
combined_refactor/tasks_nsb.go - IPv4 compaction
combined_refactor/tasks_compact.go
Data and integrations
- IP and location cache
combined_refactor/storage.go - CSV and TXT export
combined_refactor/cli.go - GitHub upload
combined_refactor/server.go - Cache reset
combined_refactor/storage.go - Custom DNS
combined_refactor/dns.go
Other components
- Browser user
- CLI user
- Cloudflare targets
- Speed-test endpoint
- GitHub repository
Connections 29
- Browser user → Web interface: uses
README.md - CLI user → CLI mode: runs
README.md - Web interface → HTTP and WS server: connects
README.md - HTTP and WS server → Web authentication: routes login
combined_refactor/main.go - HTTP and WS server → WebSocket commands: routes WS
combined_refactor/main.go - WebSocket commands → Task control: starts tasks
combined_refactor/server.go - Task control → Official IP scan: runs
- Task control → Custom target testing: runs
- Task control → IPv4 compaction: runs
README.md - Official IP scan → IP and location cache: loads IP list
combined_refactor/tasks_official.go - Official IP scan → Bounded workers: dispatches
combined_refactor/tasks_common.go - Official IP scan → Cloudflare targets: probes
combined_refactor/tasks_official.go - Official IP scan → Detailed testing: enables selection
README.md - Detailed testing → Speed testing: offers retest
README.md - Detailed testing → Session results: stores results
- Custom target testing → Cloudflare targets: tests targets
combined_refactor/tasks_nsb.go - Custom target testing → Speed testing: runs optional
combined_refactor/tasks_nsb.go - Custom target testing → CSV and TXT export: writes results
README.md - Speed testing → Speed-test endpoint: downloads from
combined_refactor/tasks_speed.go - IPv4 compaction → IP and location cache: replaces IPv4 list
combined_refactor/tasks_compact.go - CLI mode → Official IP scan: runs mode
README.md - CLI mode → Custom target testing: runs mode
README.md - CLI mode → CSV and TXT export: configures output
README.md - CLI mode → GitHub upload: can upload
README.md - WebSocket commands → GitHub upload: handles upload
combined_refactor/server.go - GitHub upload → GitHub repository: writes content
combined_refactor/server.go - WebSocket commands → Cache reset: handles reset
combined_refactor/storage.go - Cache reset → IP and location cache: deletes cache
combined_refactor/storage.go - IP and location cache → Custom DNS: uses resolver