{"id":19641377,"url":"https://github.com/anbalagand/photoviewer","last_synced_at":"2026-01-25T21:44:19.171Z","repository":{"id":197480436,"uuid":"698729266","full_name":"AnbalaganD/PhotoViewer","owner":"AnbalaganD","description":"Load image asynchronously and stored in InMemory cache. It will help you to reduce overall network traffic, image loading time and improve the app responsive time","archived":false,"fork":false,"pushed_at":"2025-04-05T09:07:19.000Z","size":182,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-28T12:45:48.346Z","etag":null,"topics":["asyncimage","cache","inmemory-cache","ios","swift","swiftui"],"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/AnbalaganD.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":"2023-09-30T19:29:22.000Z","updated_at":"2025-04-05T09:07:22.000Z","dependencies_parsed_at":"2024-11-09T22:25:29.826Z","dependency_job_id":null,"html_url":"https://github.com/AnbalaganD/PhotoViewer","commit_stats":null,"previous_names":["anbalagand/photoviewer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AnbalaganD/PhotoViewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnbalaganD%2FPhotoViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnbalaganD%2FPhotoViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnbalaganD%2FPhotoViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnbalaganD%2FPhotoViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnbalaganD","download_url":"https://codeload.github.com/AnbalaganD/PhotoViewer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnbalaganD%2FPhotoViewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28759426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T20:56:06.009Z","status":"ssl_error","status_checked_at":"2026-01-25T20:54:48.203Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["asyncimage","cache","inmemory-cache","ios","swift","swiftui"],"created_at":"2024-11-11T14:09:00.910Z","updated_at":"2026-01-25T21:44:19.165Z","avatar_url":"https://github.com/AnbalaganD.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PhotoViewer\n\nA SwiftUI-based iOS app that displays photos from [JSONPlaceholder API](https://jsonplaceholder.typicode.com) with smart caching and compression.\n\n## Features\n\n- 📱 Browse 5,000 photos in a smooth, scrollable list\n- 🔍 View photo details with editable titles\n- 💾 Intelligent LRU cache with Brotli compression\n- 🚀 Async/await networking with proper error handling\n- ⚡ Memory pressure monitoring and auto-cleanup\n- ✅ Unit tested cache implementation\n\n## Tech Stack\n\n- **UI**: SwiftUI with NavigationStack\n- **Architecture**: MVVM pattern\n- **Networking**: URLSession with async/await\n- **Caching**: Custom LRU cache with linked list\n- **Compression**: Brotli algorithm for optimal storage\n- **Concurrency**: Swift Concurrency (`@Sendable`, `@MainActor`)\n\n## Requirements\n\n- **Xcode**: 15.0+\n- **iOS**: 15.0+\n\n## Getting Started\n\n1. Clone the repository\n2. Open `PhotoViewer.xcodeproj` in Xcode\n3. Select a simulator or device\n4. Run the project (`Cmd + R`)\n\n## Architecture Highlights\n\n- **Protocol-driven design** for testability and flexibility\n- **Automatic memory management** with cache eviction on memory pressure\n- **Image compression** reduces memory footprint by ~60-80%\n- **Dependency injection** for easy testing and mocking\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanbalagand%2Fphotoviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanbalagand%2Fphotoviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanbalagand%2Fphotoviewer/lists"}