{"id":1498,"url":"https://github.com/jinSasaki/Vulcan","last_synced_at":"2025-08-02T04:31:39.496Z","repository":{"id":56926145,"uuid":"71473630","full_name":"jinSasaki/Vulcan","owner":"jinSasaki","description":"Multi image downloader with priority in Swift","archived":false,"fork":false,"pushed_at":"2017-09-25T06:01:12.000Z","size":3435,"stargazers_count":291,"open_issues_count":6,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-18T12:15:26.621Z","etag":null,"topics":["carthage","cocoapods","image","swift","swift-3","webp"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jinSasaki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-20T14:52:23.000Z","updated_at":"2024-12-09T13:37:01.000Z","dependencies_parsed_at":"2022-08-21T04:20:49.873Z","dependency_job_id":null,"html_url":"https://github.com/jinSasaki/Vulcan","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/jinSasaki/Vulcan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinSasaki%2FVulcan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinSasaki%2FVulcan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinSasaki%2FVulcan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinSasaki%2FVulcan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jinSasaki","download_url":"https://codeload.github.com/jinSasaki/Vulcan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinSasaki%2FVulcan/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268334612,"owners_count":24233793,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["carthage","cocoapods","image","swift","swift-3","webp"],"created_at":"2024-01-05T20:15:47.860Z","updated_at":"2025-08-02T04:31:38.906Z","avatar_url":"https://github.com/jinSasaki.png","language":"Swift","funding_links":[],"categories":["Media","Libs","UI","Images [🔝](#readme)"],"sub_categories":["Image","Images","Other free courses"],"readme":"Vulcan\n=====\n[![Build Status](https://travis-ci.org/jinSasaki/Vulcan.svg?branch=master)](https://travis-ci.org/jinSasaki/Vulcan)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Version](https://img.shields.io/cocoapods/v/Vulcan.svg?style=flat)](http://cocoadocs.org/docsets/Vulcan)\n[![Platform](https://img.shields.io/cocoapods/p/Vulcan.svg?style=flat)](http://cocoadocs.org/docsets/Vulcan)\n\n\nMulti image downloader with priority in Swift\n\n## Features\n- Very light\n- Multi image download with priority\n- Caching images\n- Pure Swift\n- Composable image\n- Support WebP\n\nSingle download | Multi download with priority\n--- | ---\n![demo_01](https://github.com/jinSasaki/Vulcan/raw/master/assets/demo_01.gif) | ![demo_02](https://github.com/jinSasaki/Vulcan/raw/master/assets/demo_02.gif)\n\n## Installation\n\n### CocoaPods\nSetup CocoaPods:\n\n```\n$ gem install cocoapods\n```\n\n\u003e CocoaPods 1.1.0+ is required to build Vulcan\n\n`Podfile`\n```\nplatform :ios, '8.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\npod 'Vulcan'\nend\n\n```\n\nThen, run the following command:\n\n```\n$ pod install\n```\n\n\n### Carthage\nSetup carthage:\n\n```\n$ brew update\n$ brew install carthage\n```\n\n`Cartfile`\n```\ngithub \"jinSasaki/Vulcan\"\n```\n\n\n## Usage\n\n### Image downloading and show\n\n```swift\nimport Vulcan\n\n// Single downloading\nimageView.vl.setImage(url: URL(string: \"/path/to/image\")!)\n\n// Multi downloading\n// This image will be overridden by the image of higher priority URL.\nimageView.vl.setImage(urls: [\n    .url(URL(string: \"/path/to/image\")!, priority: 100),\n    .url(URL(string: \"/path/to/image\")!, priority: 1000)\n    ])\n```\n\n### WebP image\nIf you installed via CocoaPods, add `pod 'Vulcan/WebP'`.\nIf you installed via Carthage, add `SwiftWebP.framework` to project.\n\n```swift\nimport Vulcan\nimport SwiftWebP // Only installed via Carthage\n\nextension WebPDecoder: ImageDecoder {\n    public func decode(data: Data, response: HTTPURLResponse, options: ImageDecodeOptions?) throws -\u003e Image {\n        let contentTypes = response.allHeaderFields.filter({ ($0.key as? String ?? \"\").lowercased() == \"content-type\" })\n        guard\n            let contentType = contentTypes.first,\n            let value = contentType.value as? String,\n            value == \"image/webp\",\n            let image = WebPDecoder.decode(data) else {\n                return try DefaultImageDecoder().decode(data: data, response: response, options: options)\n        }\n        return image\n    }\n}\n\n// Set decoder to shared ImageDownloader\nVulcan.defaultImageDownloader.decoder = WebPDecoder()\n\n// Request image with URL\nimageView.vl.setImage(url: URL(string: \"/path/to/image\")!)\n```\n\n## Requirements\n- iOS 9.0+\n- Xcode 8.1+\n- Swift 3.0.1+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FjinSasaki%2FVulcan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FjinSasaki%2FVulcan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FjinSasaki%2FVulcan/lists"}