登录 注册

Nuke

去点 Star
其他
8,695
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Swift
语言
—
创建时间
最近更新

项目能做什么

适用于 Apple 平台的图片加载与缓存系统。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<br/>
<img src="https://user-images.githubusercontent.com/1567433/114792417-57c1d080-9d56-11eb-8035-dc07cfd7557f.png" height="170px">

# Image Loading System

<p align="left">
<img src="https://img.shields.io/badge/platforms-iOS%2C%20macOS%2C%20watchOS%2C%20tvOS%2C%20visionOS-lightgrey.svg">
<img src="https://img.shields.io/badge/Licence-MIT-green">
</p>

> *Serving Images Since 2015*

Load images from different sources and display them in your app using simple and flexible APIs. Take advantage of the powerful image processing capabilities and a robust caching system.

The framework is lean and has an automated test suite 2x the codebase size, ensuring excellent reliability. Nuke is optimized for [performance](https://kean-docs.github.io/nuke/documentation/nuke/performance-guide), and its advanced architecture enables virtually unlimited possibilities for customization.

> **Memory and Disk Cache** · **Image Processing & Decompression** · **Request Coalescing & Priority** · **Prefetching** · **Resumable Downloads** · **Progressive JPEG** · **HEIF, WebP, GIF** · **Animated Images** · **SwiftUI** · **Async/Await**

## Sponsors

<table>
  <tr>
    <td valign="center" align="center">
        <a href="https://proxyman.io">
          <img src="https://kean.blog/images/logos/proxyman.png" height="50px" alt="Proxyman Logo">
          <p>Proxyman</p>
        </a>
    </td>
  </tr>
</table>

## Usage

Load images using `ImagePipeline` from the lean core [**Nuke**](https://kean-docs.github.io/nuke/documentation/nuke) module:

```swift
func loadImage() async throws {
    let imageTask = ImagePipeline.shared.imageTask(with: url)
    for await progress in imageTask.progress {
        // Update progress
    }
    imageView.image = try await imageTask.image
}
```

Or use the built-in UI components from [**NukeUI**](https://kean-docs.github.io/nukeui/documentation/nukeui/):

```swift
struct ContentView: View {
    var body: some View {
        LazyImage(url: URL(string: "https://example.com/image.jpeg"))
    }
}
```

The [**Getting Started**](https://kean-docs.github.io/nuke/documentation/nuke/getting-started/) guide is the best place to start. The [**demo app**](Demo) in this repo covers the rest: open `Nuke.xcodeproj` and run the `NukeDemo` scheme.

<a href="https://kean-docs.github.io/nuke/documentation/nuke/getting-started">
<img width="747" alt="Nuke Docs and Demo" src="https://github.com/user-attachments/assets/c6bbac09-55f2-4824-a0ec-a3a467d9e9be" />
</a>

## Installation

Nuke supports [Swift Package Manager](https://www.swift.org/package-manager/).

The package ships with four modules that you can install depending on your needs:

|Module|Description|
|--|--|
|[**Nuke**](https://kean-docs.github.io/nuke/documentation/nuke)|The lean core framework with `ImagePipeline`, `ImageRequest`, and more|
|[**NukeUI**](https://kean-docs.github.io/nukeui/documentation/nukeui/)|The UI components: `LazyImage` (SwiftUI), `LazyImageView` and `ImageLoader` (UIKit, AppKit)
阅读完整原文

项目深度分析 AI 生成

Nuke 专属移动端图像加载与内存诊断桌面工具

产品构想基于 Nuke 诊断日志与运行时指标,开发一款独立 macOS App(类似 Proxyman/Pulse 模式),专门捕获和分析 App 内图片的命中率、内存峰值、大图超标及解码耗时。
核心功能实时监听 Nuke 诊断输出、图片内存占用热力图、超分辨率大图未缩放预警、缓存命中率统计报告导出。
目标用户重视 App 性能的独立开发者、企业级 iOS 性能优化工程师。
难度/周期中等 · 1-2 个月 · 成本:极低(主要是个人开发工时及 macOS 开发者账号费用)
收费模式独立软件买断制(License Key)或按年订阅制。
竞争风险开源社区可能自制轻量级替代品;需持续跟进 Nuke 核心诊断协议更新。
依据 已验证事实(README 中已提供 NUKE_DIAGNOSTICS_LOG 和运行时诊断属性支持)

AI 辅助的 iOS 图像流水线性能优化与迁移服务

产品构想利用项目中已经包含的 AI Skills(如 nuke-optimize, nuke-migrate),向中大型企业提供代码审计、旧图库(如 SDWebImage/Kingfisher)向 Nuke 的平滑迁移,以及异步并发优化咨询。
核心功能自动化迁移脚本定制、卡顿与内存泄漏深度审计、定制解码器扩展编写、高级技术支持 SLA。
目标用户面临性能瓶颈或正在进行 Swift 并发改造的中大型 App 研发团队。
难度/周期低至中等 · 按项目交付(通常 1-3 周/单) · 成本:人力咨询时间成本
收费模式企业技术咨询服务费(按项目或人天计费)。
竞争风险项目制交付难以标准化规模化复制,受开发者个人精力限制。
依据 已验证事实(README 明确展示其包含 nuke-optimize 和 nuke-migrate 等专有 Agent 工具)

端云一体化动态图像处理与 CDN 代理中间件

产品构想围绕 Nuke 定制云端轻量图片处理中间件,结合客户端 ImageRequest 自动将缩放、格式转换(HEIF/WebP)参数卸载到服务端,降低移动端算力与带宽消耗。
核心功能Nuke 客户端扩展组件(自动下发优化参数)、轻量服务端动态转码代理、流量与带宽节约报表。
目标用户图片消耗量大、CDN 成本敏感的移动 App 创业团队。
难度/周期高 · 3-4 个月 · 成本:云服务器成本、CDN 流量成本、持续运维成本
收费模式SaaS 订阅(基础功能按月,流量按需计费)。
竞争风险Cloudinary、Imgix 等成熟大厂竞争激烈,独立开发者较难获得价格优势与基础设施稳定性信任。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建时间待补全,最近推送 ,发布过 100 个 Release
社区活跃Star 8,695 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。