{"id":29460163,"url":"https://github.com/jeffla/quakewatch","last_synced_at":"2025-07-14T02:03:23.620Z","repository":{"id":302748184,"uuid":"1013472281","full_name":"jeffla/QuakeWatch","owner":"jeffla","description":"QuakeWatch - Real-time earthquake monitoring iOS app built with SwiftUI and The Composable Architecture (TCA). Features offline caching, interactive maps,    advanced filtering, and customizable settings. Developed with assistance from Claude Code.","archived":false,"fork":false,"pushed_at":"2025-07-04T02:21:58.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-04T03:27:06.063Z","etag":null,"topics":["claude-code","earthquake-monitoring","ios","mapkit","offline-caching","real-time","swift","swiftui","tca","usgs-api"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeffla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-04T00:58:03.000Z","updated_at":"2025-07-04T02:47:20.000Z","dependencies_parsed_at":"2025-07-04T03:29:20.448Z","dependency_job_id":"611d7455-453a-46d4-af17-0868a7085051","html_url":"https://github.com/jeffla/QuakeWatch","commit_stats":null,"previous_names":["jeffla/quakewatch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeffla/QuakeWatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffla%2FQuakeWatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffla%2FQuakeWatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffla%2FQuakeWatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffla%2FQuakeWatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeffla","download_url":"https://codeload.github.com/jeffla/QuakeWatch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffla%2FQuakeWatch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265233500,"owners_count":23731800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-code","earthquake-monitoring","ios","mapkit","offline-caching","real-time","swift","swiftui","tca","usgs-api"],"created_at":"2025-07-14T02:01:30.961Z","updated_at":"2025-07-14T02:03:23.608Z","avatar_url":"https://github.com/jeffla.png","language":"Swift","readme":"# QuakeWatch\n\nA SwiftUI iOS app for monitoring earthquake data from the USGS API, built with The Composable Architecture (TCA).\n\n## Features\n\n### 🌍 Real-time Earthquake Monitoring\n- Fetches live earthquake data from the USGS GeoJSON API\n- Displays earthquakes with magnitude, location, and time information\n- Auto-refresh capabilities with configurable intervals\n\n### 📱 Multiple View Modes\n- **List View**: Scrollable list of earthquakes with detailed information\n- **Map View**: Interactive map showing earthquake locations with color-coded pins\n- **Detail View**: Comprehensive earthquake details with direct USGS links\n\n### 🔍 Advanced Filtering\n- Filter by magnitude range (0.0 - 10.0)\n- Filter by time period (past hour, day, week, month, or all time)\n- Filter by location with text search\n- Clear visual indicators for active filters\n\n### ⚙️ Customizable Settings\n- Configurable auto-refresh intervals (1 min to 1 hour)\n- Notification threshold settings\n- Display preferences (magnitude labels, metric units)\n- Toggle minor earthquakes visibility\n\n### 📶 Offline Support\n- Local data caching for offline viewing\n- Smart cache validation (5-minute fresh data window)\n- Automatic fallback to cached data when network is unavailable\n- Clear offline indicators in the UI\n\n## Architecture\n\nQuakeWatch is built using **The Composable Architecture (TCA)**, providing:\n- Predictable state management\n- Testable business logic\n- Modular feature composition\n- Comprehensive dependency injection\n\n### Key Components\n\n- **Models**: `Earthquake` data model with USGS GeoJSON parsing\n- **Clients**: `EarthquakeClient` for API communication, `CacheManager` for local storage\n- **Features**: TCA-based features with State/Action/Reducer patterns\n- **Views**: SwiftUI views with proper state observation\n\n## Technical Requirements\n\n- **iOS**: 18.5+\n- **Xcode**: 15.0+\n- **Swift**: 5.0+\n- **Dependencies**: \n  - SwiftUI\n  - The Composable Architecture\n  - MapKit\n  - Swift Testing (for tests)\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/QuakeWatch.git\n   cd QuakeWatch\n   ```\n\n2. Open the project in Xcode:\n   ```bash\n   open QuakeWatch/QuakeWatch.xcodeproj\n   ```\n\n3. Build and run the project using Xcode or the command line:\n   ```bash\n   xcodebuild -project QuakeWatch/QuakeWatch.xcodeproj -scheme QuakeWatch -destination 'platform=iOS Simulator,name=iPhone 16' build\n   ```\n\n## Development\n\n### Building\n- **Xcode**: Use Cmd+B to build\n- **Command Line**: `xcodebuild -project QuakeWatch/QuakeWatch.xcodeproj -scheme QuakeWatch -destination 'platform=iOS Simulator,name=iPhone 16' build`\n\n### Running Tests\n- **Xcode**: Use Cmd+U to run all tests\n- **Command Line**: `xcodebuild test -project QuakeWatch/QuakeWatch.xcodeproj -scheme QuakeWatch -destination 'platform=iOS Simulator,name=iPhone 16'`\n\n### Code Quality\n- The project uses Xcode's built-in analyzer (Product → Analyze)\n- Swift Testing framework for modern, expressive tests\n- Comprehensive test coverage for all features including offline scenarios\n\n## API Reference\n\nQuakeWatch uses the [USGS Earthquake Hazards Program API](https://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php):\n- **Endpoint**: `https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson`\n- **Format**: GeoJSON with earthquake features\n- **Update Frequency**: Real-time (typically updated every 5 minutes)\n\n## Project Structure\n\n```\nQuakeWatch/\n├── QuakeWatch/\n│   ├── QuakeWatchApp.swift          # App entry point\n│   ├── ContentView.swift            # Root view with tab navigation\n│   ├── Models/\n│   │   └── Earthquake.swift         # Core data models\n│   ├── Clients/\n│   │   ├── EarthquakeClient.swift   # API client\n│   │   └── CacheManager.swift       # Local caching\n│   ├── Features/\n│   │   ├── EarthquakeListFeature.swift      # List feature logic\n│   │   ├── EarthquakeDetailFeature.swift    # Detail feature logic\n│   │   ├── EarthquakeMapFeature.swift       # Map feature logic\n│   │   ├── SettingsFeature.swift           # Settings feature logic\n│   │   └── RootFeature.swift               # Root navigation logic\n│   └── Views/\n│       ├── EarthquakeListView.swift        # List view UI\n│       ├── EarthquakeDetailView.swift      # Detail view UI\n│       ├── EarthquakeMapView.swift         # Map view UI\n│       └── SettingsView.swift              # Settings view UI\n├── QuakeWatchTests/\n│   └── QuakeWatchTests.swift        # Comprehensive test suite\n└── README.md                        # This file\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- [USGS Earthquake Hazards Program](https://earthquake.usgs.gov/) for providing real-time earthquake data\n- [The Composable Architecture](https://github.com/pointfreeco/swift-composable-architecture) for the architectural framework\n- Apple's SwiftUI and MapKit frameworks for the user interface\n\n## Screenshots\n\n![Simulator Screenshot - iPhone 16 Pro - 2025-07-03 at 19 42 42](https://github.com/user-attachments/assets/be8fc9b8-3758-4e3f-b85c-94ebe894cac2)\n\n![Simulator Screenshot - iPhone 16 Pro - 2025-07-03 at 19 43 02](https://github.com/user-attachments/assets/8881de96-40f7-408b-8ea6-a3f49ab00e22)\n\n![Simulator Screenshot - iPhone 16 Pro - 2025-07-03 at 18 17 50](https://github.com/user-attachments/assets/d5d7f12a-6337-4425-95fc-360c7b8198fb)\n\n---\n**Note**: This app is for educational and informational purposes. For official earthquake information and alerts, please refer to your local geological survey or emergency management agency.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffla%2Fquakewatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffla%2Fquakewatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffla%2Fquakewatch/lists"}