The Cloudflare Network Diagnostic Tool is a high-precision, privacy-first diagnostic engine designed to give users real insight into their network performance.
Built for:
- π§ Network engineers
- β‘ Power users
- π¨βπ» Developers
- π Security analysts
- π₯ Everyday users who want clarity
β
All processing happens on-device
β
No tracking
β
No analytics
β
No external servers
β
No data collection
- DNS Latency Benchmarking β Measure DNS response times across resolvers
- DoH (DNS-over-HTTPS) Performance Testing β Encrypted DNS performance analysis
- Cloudflare Trace Analysis β View your PoP location and connection details
- WARP Detection & Mode Identification β Detect if WARP is active and its mode
- Resolver Benchmarking β Compare performance: Cloudflare, Google, Quad9, NextDNS
- Network Health Scoring β Weighted scoring system for overall network quality
- Developer Console Mode β Advanced diagnostics for technical users
- Multiple Export Formats β JSON, JSONL, Minified, Pretty-printed output
- Local Log Storage β All logs stored locally with encryption-style encoding
- Automatic Log Cleanup β Manage storage with automated cleanup
- Cross-Platform Output β Compatible across iOS and macOS
- Error-Resilient Fallback Logic β Graceful degradation on network issues
The tool is built on a modular diagnostic engine with clear separation of concerns:
| Layer | Purpose | Implementation |
|---|---|---|
| Network Layer | Core connectivity tests | URLSession-based requests |
| Trace Layer | Cloudflare metadata parsing | PoP + WARP detection |
| Benchmark Layer | Multi-resolver performance | Timed DNS/DoH tests |
| Health Layer | Network quality assessment | Weighted scoring algorithm |
| Export Layer | Multiple output formats | JSON encoder with format options |
| Logging Layer | Secure local storage | Base64-encoded encrypted-style logs |
Export your diagnostic results in multiple formats:
- JSON β Standard JSON format
- JSONL β JSON Lines (one object per line)
- Minified JSON β Compact, no whitespace
- Pretty JSON β Human-readable with formatting
- MasterDict β Structured dictionary output
- Developer Console β Formatted terminal output
This tool is designed with absolute privacy as a core principle:
β No data collection
- No analytics tracking
- No remote logging servers
- No external data transmission
- No unique identifiers
β Complete control
- All logs stored locally on your device
- Export only what you choose
- Delete logs anytime
- No cloud sync
β Transparent
- Open-source design
- Auditable code paths
- No hidden network requests
- Minimum: iOS 15.0 or later
- Recommended: iOS 16.0+ for best performance
- Device: iPhone or iPad
- Minimum: macOS 12.0 Monterey or later
- Recommended: macOS 13.0+ (Ventura or later)
- Architecture: Apple Silicon or Intel
- Xcode 14.0 or later
- Swift 5.7+
- CocoaPods (for dependencies)
- Download the
.shortcutfile from the repository - Open Apple Shortcuts app
- Tap "+" β "Add Shortcut"
- Select "Import" and choose the
.shortcutfile - Run immediately or add to your home screen
No coding required. Works on iOS 15+
git clone https://github.com/hyrated117-svg/Cloudflare-Network-Diagnostic-Tool-v1.0.git
cd Cloudflare-Network-Diagnostic-Tool-v1.0pod installopen *.xcworkspaceOr directly open Cloudflare Network Diagnostic Tool.xcodeproj in Xcode.
- Select your target device (iPhone simulator or connected device)
- Press Cmd + R to build and run
- The app will launch automatically
- Open the Shortcuts app
- Find "Cloudflare Network Diagnostic"
- Tap to run
- View results in the output panel
- Tap Export to save or share results
- Launch the app from your home screen or Xcode
- Tap "Run Diagnostics"
- Wait for tests to complete (typically 10-30 seconds)
- Review results in the dashboard
- Export results via the "Export" button
ββββββββββββββββββββββββββββββββββββββββββ
CLOUDFLARE NETWORK DIAGNOSTIC REPORT
ββββββββββββββββββββββββββββββββββββββββββ
π TRACE INFORMATION
IP Address: 203.0.113.42
Country: United States
Cloudflare PoP: LAX
Timezone: America/Los_Angeles
π DNS BENCHMARKS
Cloudflare: 12ms
Google: 18ms
Quad9: 15ms
NextDNS: 22ms
π‘οΈ WARP Status: Connected (WARP+)
π HEALTH SCORE: 8.5/10 β
ββββββββββββββββββββββββββββββββββββββββββ
{
"timestamp": "2025-06-13T14:32:00Z",
"trace": {
"ip": "203.0.113.42",
"country": "United States",
"cloudflare_pop": "LAX",
"warp_enabled": true,
"warp_mode": "WARP+"
},
"benchmarks": {
"cloudflare_dns": 12,
"google_dns": 18,
"quad9_dns": 15,
"nextdns": 22
},
"health_score": 8.5
}- Choose format: JSON, JSONL, Minified, or Pretty
- Automatic filename with timestamp
- Share via AirDrop, email, or cloud storage
- Logs stored in app's local Documents directory
- Automatic cleanup after 30 days (configurable)
- Manual deletion available anytime
- Enable verbose logging
- Custom resolver list
- Extended trace analysis
- Performance metrics
- Solution: Check your internet connection
- Ensure WiFi or cellular is enabled
- Try again in a few seconds
- Solution: Normal on slow networks
- Try reducing the number of resolvers tested
- Check if your ISP blocks DNS queries
- Solution: Reinstall the app
- Delete app from device, then re-download
- Ensure you're on iOS 15+ or macOS 12+
- Solution: Check available storage
- Try a different export format
- Restart the app
For additional support, check the Issues page.
We welcome contributions! Here's how:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow Swift style conventions
- Add comments for complex logic
- Test thoroughly before submitting
- Keep PRs focused on a single feature
- Update documentation as needed
β DNS benchmarking β DoH performance testing β Cloudflare Trace integration β WARP detection β Network health scoring β Multi-format export
- Packet loss detection
- Latency variance analysis
- Historical trend tracking
- Scheduled automated tests
- Custom resolver support
- Web dashboard
- Real-time monitoring
- Network anomaly alerts
- Comparative reports
- API integration
This project is licensed under the MIT License β see the LICENSE file for details.
You are free to use, modify, and distribute this software, provided you include the original license and copyright notice.
- Issues & Bugs: GitHub Issues
- Discussions: GitHub Discussions
- Email: Include your issue details when reporting
- Built with Swift and SwiftUI
- Powered by Cloudflare DNS and Trace APIs
- Inspired by network diagnostic best practices
Cloudflare Network Diagnostic Tool β Transparent. Private. Powerful.
Made with β€οΈ by the community | v1.0 (Pre-release) | Last updated: June 2025