The maintainer has not written a description at the source.
Repo noppefoxwolf/Vulp, read from GitHub 23 h ago. noppefoxwolf has not joined Take My Repo.
noppefoxwolf/Vulp is a public repo on GitHub by noppefoxwolf. It declares the MIT license on GitHub. It is written mainly in Swift, has 8 stars and last changed on 2026-11-21. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-23.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Vulp is an image and video thumbnail loading library built with Swift Concurrency. It handles downloading, decoding, resizing, and caching, with integrations for SwiftUI, UIKit, and AppKit.
The shared pipeline uses CGImage as MediaImage; platform image wrappers are created only where a UI framework needs them.
Data through a common MediaAsset interfaceAdd this repository in Xcode with File > Add Package Dependencies…, then select the products your target needs:
Vulp: the loading pipelineVulp_SwiftUI: SwiftUI viewsVulp_UIKit: the UIKit AsyncImageViewVulp_AppKit: AppKit viewsVulpUI: re-exports the UI products aboveSee the Nuke and Kingfisher migration guide for API replacements and compatibility differences. English · 日本語
Example.swiftpm is a fresh Swift Playgrounds app for trying the library end to end. Its image and video samples are bundled locally, so demos do not depend on the sample hosts being online. It includes:
Resources/ATTRIBUTION.mdOpen Example.swiftpm in Xcode, or build it from that directory:
xcodebuild -scheme Example \
-destination 'generic/platform=iOS' \
-derivedDataPath /tmp/VulpExampleDerivedData \
CODE_SIGNING_ALLOWED=NO \
build
Import VulpUI and use its UIKit AsyncImageView. Call loadImage(url:) to load a URL at the view's size; animated sources play incrementally.
import VulpUI
import UIKit
let url = URL(string: "https://example.com/photo.jpg")!
let imageView = AsyncImageView(frame: CGRect(x: 0, y: 0, width: 200, height: 200))
imageView.loadImage(url: url)
UIKit completion is delivered through a caller-retained delegate. SwiftUI's wrapper
uses its Coordinator as the delegate and forwards results to onCompletion.
@MainActor
final class ImageObserver: AsyncImageViewDelegate {
func asyncImageViewDidStartLoading(_ imageView: AsyncImageView) {
imageView.backgroundColor = .secondarySystemBackground
}
func asyncImageView(_ imageView: AsyncImageView, didComplete result: Result<CGImage, any Error>) {
imageView.backgroundColor = .clear
// Handle the displayed image or loading error.
}
}
let observer = ImageObserver() // Keep this alive while receiving results.
imageView.delegate = observer
imageView.loadImage(url: url)
Delegate notifications cover view-managed loads, including the first frame of an
animated image. asyncImageViewDidStartLoading(_:) fires before loading begins;
reused in-flight or displayed images do not produce another start event. SwiftUI's
wrapper forwards starts through onStart. Cancellation is silent; explicit async throws loads return their
result through the caller's task.
With the default bounds-based sizing, you can call loadImage(url:) before Auto Layout runs. Loading starts once the view is in a window and has nonzero bounds. Later changes to the bounds or display scale update the request, and the view reloads if the cache key changes. The view owns and cancels its loading task when a new image is requested or its image is replaced. For full control over request size, caching, and the loader, use the request-builder overload. MediaImageLoader.default is preconfigured with URLSession, ImageIO, AVFoundation, resizing, and an in-memory cache.
ImagePlaceholder combines a stable ID with a Sendable asynchronous generator
returning CGImage?. Configure it independently of image loading:
let placeholder = ImagePlaceholder(id: blurHash) {
try await renderBlurHash(blurHash)
}
imageView.setPlaceholder(placeholder)
imageView.loadImage(url: url)
The generator runs away from the UI actor. UIKit keeps rendered or generating content
when the asset ID is unchanged. Change the ID when the generated content changes, or
call imageView.setPlaceholder(nil) to clear the setting. Vulp does not include a
BlurHash decoder; supply your own renderer returning CGImage.
The asset persists across sources and can be configured before or during loading,
including before awaiting the async asset-loading overload. A real image always takes
precedence: configuring an asset while a real image is displayed stores it for the
next source. Assigning image directly clears the placeholder setting.
Setting the same image request again reuses in-flight or loaded content. Resizing keeps the displayed real image visible while the new size loads. Leaving the window cancels unfinished placeholder generation; reattachment can start it again. Generators should cooperate with cancellation to stop expensive work promptly. Placeholder errors are ignored, and a rendered placeholder remains visible if the image request fails.
The async asset-loading overload is owned by its calling task. Temporary detachment
and reattachment do not invalidate its result. Cancel the calling task to cancel the
load; replacing the source or assigning image prevents its result from being displayed.
The SwiftUI wrapper forwards the same asset to UIKit and does not compare IDs itself:
Vulp_SwiftUI_Vulp_UIKit.AsyncImage(url: url, placeholder: placeholder)
import VulpUI
import SwiftUI
struct RemotePhoto: View {
var body: some View {
VulpUI.AsyncImageTimelineView(url: URL(string: "https://example.com/photo.jpg")!)
}
}
VulpUI.AsyncImageTimelineView(url:) sizes the request from its displayed bounds and environment display scale. To customize the image or placeholder, pass content and placeholder closures; the content closure receives a SwiftUI Image, so apply .resizable(), .scaledToFit(), or other image modifiers there. It accepts an optional failure callback and plays animated sources incrementally. For custom loaders or request options, use one of the request-based initializers.
For UIKit-backed presentation in SwiftUI, import Vulp_SwiftUI_Vulp_UIKit and use AsyncImage(url:contentMode:sizingMode:). Its public API uses SwiftUI ContentMode (.fit by default, or .fill) and AsyncImage.SizingMode (.viewBounds or .explicitPixels). It conforms directly to UIViewRepresentable; configuration uses SwiftUI-facing types.
The processor downsamples CGImage values to the request's bucketed pixel size while preserving their aspect ratio. Choose presentation behavior in the UI: set AsyncImageView.contentMode in UIKit, or use .scaledToFit() / .scaledToFill() in SwiftUI. Since presentation mode is not part of the request or cache key, the same bucketed image can be reused for either mode. UIKit and AppKit image wrappers are created only at their presentation boundaries.
The default memory cache keeps at most 200 entries and 100 MiB of decoded bitmap data, measured as bytesPerRow * height per entry. It evicts the least recently used entries to satisfy both limits and skips images larger than the byte limit. Set totalCostLimit in bytes to customize the limit; zero disables storage. This bounds cached bitmap bytes, not total process memory.
Share a loader across screens and cells instead of creating one for each view. The memory cache stores decoded images, while the disk cache stores encoded source data. If an image is requested at another size, the loader can decode it again from the cached source data without downloading it again. Clear both caches held by the standard loader with await MediaImageLoader.default.clearCache().
import Vulp
typealias AppImageLoader = DefaultMediaImageLoader<
DefaultAssetDataDownloader,
ResizeImageProcessor,
LRUImageCache
>
let imageLoader = AppImageLoader(
downloader: DefaultAssetDataDownloader(),
decoders: [ImageIOImageDecoder()],
processor: ResizeImageProcessor(),
cache: LRUImageCache(countLimit: 300, totalCostLimit: 100 * 1024 * 1024),
dataCache: DiskAssetDataCache(
maxSizeBytes: 200 * 1024 * 1024,
maxAge: 14 * 24 * 60 * 60
)
)
For a collection or list, request the pixel dimensions needed for display, not the point dimensions. For example, a 150 pt square on a 3x display needs 450 × 450 pixels. MediaImageRequest rounds requested dimensions into aspect-ratio-preserving size buckets, allowing nearby requests to share cached results.
let request = try MediaImageRequest(
asset: RemoteMediaAsset(url: photoURL),
targetSize: CGSize(width: 450, height: 450)
)
let image = try await imageLoader.load(request)
The standard ImageIOImageDecoder downsamples during decoding using the requested size as an upper bound. ResizeImageProcessor applies the request's bucketed size while preserving the source aspect ratio; fit and fill are presentation choices owned by the UI. Matching request sizes to the display avoids decoding unnecessarily large images for a scrolling list. The display layer may scale the processed image to the view's bounds.
With DefaultMediaImageLoader, use the same asset identity for UICollectionViewDataSourcePrefetching and cell display. Prefetch downloads and stores only the encoded source in the disk cache; decoding and resizing happen when the cell requests the image. Cancel prefetch tasks when the collection view reports that an item is no longer needed.
import Vulp
import VulpUI
import UIKit
final class PhotoCell: UICollectionViewCell {
let photoView = AsyncImageView()
override init(frame: CGRect) {
super.init(frame: frame)
photoView.contentMode = .scaleAspectFill
photoView.clipsToBounds = true
photoView.frame = contentView.bounds
photoView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
contentView.addSubview(photoView)
}
required init?(coder: NSCoder) {
super.init(coder: coder)
photoView.contentMode = .scaleAspectFill
photoView.clipsToBounds = true
photoView.frame = contentView.bounds
photoView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
contentView.addSubview(photoView)
}
override func prepareForReuse() {
super.prepareForReuse()
photoView.image = nil
}
}
@MainActor
final class PhotoDataSource: NSObject,
UICollectionViewDataSource,
UICollectionViewDataSourcePrefetching
{
let urls: [URL]
let loader = MediaImageLoader.default
private let prefetcher = MediaAssetPrefetcher()
init(urls: [URL]) {
self.urls = urls
}
private func asset(at indexPath: IndexPath) -> RemoteMediaAsset {
RemoteMediaAsset(url: urls[indexPath.item])
}
private func request(at indexPath: IndexPath) throws -> MediaImageRequest {
try MediaImageRequest(
asset: asset(at: indexPath),
targetSize: CGSize(width: 450, height: 450)
)
}
func collectionView(
_ collectionView: UICollectionView,
numberOfItemsInSection section: Int
) -> Int {
urls.count
}
func collectionView(
_ collectionView: UICollectionView,
cellForItemAt indexPath: IndexPath
) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(
withReuseIdentifier: "PhotoCell",
for: indexPath
) as! PhotoCell
cell.photoView.image = nil
guard let request = try? request(at: indexPath) else { return cell }
let loader = self.loader
cell.photoView.loadImage(using: loader, request: { _, _ in request })
return cell
}
func collectionView(
_ collectionView: UICollectionView,
prefetchItemsAt indexPaths: [IndexPath]
) {
let urls = indexPaths.map { self.urls[$0.item] }
Task { await prefetcher.startPrefetching(with: urls) }
}
func collectionView(
_ collectionView: UICollectionView,
cancelPrefetchingForItemsAt indexPaths: [IndexPath]
) {
let urls = indexPaths.map { self.urls[$0.item] }
Task { await prefetcher.stopPrefetching(with: urls) }
}
}
The prefetch and cell requests should use the same asset.uniqueKey so the cell load can reuse the encoded source from disk. Their size, rendering mode, and decoding options may differ because the default loader's prefetch does not create a decoded-image cache entry. Cancel a cell's load task during reuse so an old result cannot be assigned to a reused cell.
MediaAssetPrefetcher manages prefetch tasks for URL batches. Start URLs as they enter the prefetch window and stop them when they leave; duplicate starts are ignored and completed tasks are removed automatically. stopPrefetching() cancels every task managed by that instance. MediaImageLoading.prefetch(_ asset:) remains available when callers need an individual cancellable Task<Void, Never>, and defaults to .background priority. DefaultMediaImageLoader downloads only the encoded source into its asset data cache; other loaders can implement asset prefetching as needed. Concurrent source downloads with the same uniqueKey
noppefoxwolf/Vulp is a public repo on GitHub by noppefoxwolf. Its maker has not written a description.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-21. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run Vulp. What is known comes from GitHub. It declares the MIT license on GitHub. Its last change was on 2026-11-21. It has 8 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.