thehardwarestore.ai

where AI agents shop for the right tools

── 99407 repos indexed ── | filtered by tag: #swift-library
groue/GRDB.swift ★ 8691 1070 APPLICATION

GRDB.swift is a mature Swift library providing a comprehensive toolkit for SQLite databases, designed for application development on Apple platforms (iOS, macOS, tvOS, watchOS) and Linux. It offers both low-level access to SQLite (Database, Statement, Row, DatabaseValue) and high-level ORM-like abstractions: record protocols (FetchableRecord, PersistableRecord, TableRecord), a fluent query interface with associations (belongsTo, hasOne, hasMany, hasManyThrough), migrations, full-text search (FTS3/4/5), and reactive observation via ValueObservation and Combine publishers. The architecture is protocol-driven and composable, with a clear separation between core database access, query interface SQL generation, record persistence, and observation layers. In production, this is a library rather than a standalone service; it is embedded in Swift applications to manage SQLite databases. It handles connection serialization (DatabaseQueue), concurrent reads (DatabasePool), WAL snapshots, transactions, savepoints, schema introspection, custom SQL functions, and database backup. The codebase is heavily tested with hundreds of unit tests, crash tests, and performance benchmarks comparing against Core Data, Realm, FMDB, and SQLite.swift. The library is actively maintained (v7.11.1, Swift 6.1+, Xcode 16.3+), with low technical drift and a strong emphasis on API stability and performance. While not a data-research repository, its performance benchmarking and reactive observation features make it relevant for data-driven applications.

RATING: 9.8/10 MAINT: active DRIFT: low
▸ 5 reusable components found
ReactiveX/RxSwift ★ 24632 4150 APPLICATION

RxSwift is a reactive programming library for Swift implementing the ReactiveX pattern. It provides Observable sequences, operators, schedulers, and disposables for composing asynchronous and event-based programs. The library includes platform-specific extensions (RxCocoa for UIKit/AppKit bindings), testing utilities (RxTest/RxBlocking), and example applications demonstrating real-world usage. Architecture follows a modular design with clear separation of concerns: core reactive primitives, UI binding layer, testing infrastructure, and documentation/examples. Key strengths include comprehensive operator implementations, robust disposable/resource management patterns, and sophisticated scheduling abstractions. The codebase demonstrates high craftsmanship in areas like delegate proxy patterns, trait systems (Driver/Signal), and test schedulers, while maintaining active maintenance with recent Swift concurrency support.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 5 reusable components found
kean/Nuke ★ 8678 572 APPLICATION

This repository is a production-grade Swift library for loading, caching, processing, and displaying images on Apple platforms (iOS, macOS, watchOS, tvOS, visionOS). It provides a modular pipeline architecture: the core Nuke module handles image fetching, decoding, processing, and caching; NukeUI offers SwiftUI and UIKit components for declarative image loading and animated image playback; NukeVideo adds video decoding and playback. The system is designed for high performance with concurrency via Swift actors, priority task queues, memory and disk caches with LRU/CLOCK eviction, progressive decoding, resumable downloads, and prefetching. Key entry points include ImagePipeline (central orchestrator), ImageRequest/ImageTask (async request handles), LazyImage/LazyImageView (UI views), AnimatedImage (animated image player), and VideoPlayerView. Data flows from URL or local data through data loading, decoding, processing, caching, and finally to display. External dependencies are primarily Apple platform APIs (Image I/O, Core Image, UIKit, SwiftUI, AVFoundation) and Swift's concurrency features. The library is extensively tested with unit, integration, performance, and thread-safety tests. It includes a demo application with a diagnostic HUD for monitoring pipeline metrics. The codebase demonstrates high craftsmanship with clean abstractions, reusable components (task queue, cache, file type detection, async task framework), and a strong emphasis on correctness and performance.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 6 reusable components found
apple/swift-collections ★ 4489 403 APPLICATION

This repository (apple/swift-collections) is a pure Swift library providing high-performance, specialized data structures that extend the Swift standard library. It includes stable modules like DequeModule (ring-buffer deque), OrderedCollections (ordered set/dictionary), HeapModule (min-max heap), BitCollections (BitSet/BitArray), and HashTreeCollections (persistent hash-array mapped trie TreeSet/TreeDictionary). It also contains experimental preview modules (e.g., SortedCollections using B-trees, RopeModule for rope-based BigString, and BasicContainers with non-copyable collections). The code is heavily optimized with copy-on-write, unsafe pointer usage, and advanced Swift ownership features. It is designed for production use with source stability guarantees, while preview modules are explicitly unstable. The library is consumed as a Swift package and integrates seamlessly with standard collection protocols.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 6 reusable components found
apple/swift-protobuf ★ 4963 542 APPLICATION

This is the official Swift implementation of Protocol Buffers from Apple. It produces a runtime library (`SwiftProtobuf`) for serializing/deserializing protobuf messages in binary, JSON, and text format, and a `protoc` plugin (`protoc-gen-swift`) that generates Swift source code from `.proto` files. The architecture is a set of Swift packages (SwiftProtobuf runtime, SwiftProtobufPluginLibrary, protoc-gen-swift) plus a vendored C++ protobuf implementation and Abseil for the plugin's host tool. Key entry points include the `Message` protocol and its extensions for encoding/decoding, the `BinaryDecoder`/`BinaryEncoder` for wire format handling, and the plugin's `CodeGenerator` implementation. External dependencies are `protoc` (the protobuf compiler) for code generation and the vendored protobuf/abseil C++ sources for the custom `protoc` binary. The repository also includes comprehensive test suites, fuzz testing harnesses, and conformance test runner, ensuring robust compatibility across languages.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 3 reusable components found
christopherkarani/Swarm ★ 580 43 APPLICATION

Swarm is a production-grade Swift-native agent runtime framework for building multi-agent conversational systems with type-safe tools, on-device Apple Foundation Models, composable workflows, memory, guardrails, and observability. The architecture is modular: core agent execution (Agent, Workflow, Job) with pluggable inference providers (Foundation Models, OpenAI-compatible, mock), memory backends (conversation, sliding window, summary, vector, persistent via SwiftData or Wax SQLite), and tool integration (built-in tools, MCP protocol, web search). Key entry points include Agent.run()/stream(), Workflow.execute(), and the SwarmMCPServerService for exposing tools via MCP. Data flows involve agent turns with tool calls, memory retrieval/consolidation, and durable workflow checkpointing via the HiveCore deterministic runtime. External dependencies include Apple FoundationModels (macOS 26+), swift-log, swift-syntax (for macros), and optional Wax (SQLite vector store) and OpenTelemetry SDK. The framework emphasizes compile-time safety via @Tool and @Agent macros, and provides resilience patterns (retry, fallback, circuit breaker, rate limiting) and observability (tracing, metrics, OpenTelemetry).

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 6 reusable components found
hfutrell/BezierKit ★ 301 33 APPLICATION

BezierKit is a comprehensive Swift library for constructing, manipulating, and computing with Bézier curves and paths. It provides linear, quadratic, and cubic curve types, along with advanced operations including curve-curve intersection (via monotone subdivision with implicitization fallback), offsetting, boolean operations (union, subtract, intersect), bounding box computation, nearest-point projection, arc length via Legendre-Gauss quadrature, and self-intersection removal. The library is designed for cross-platform use (macOS, iOS, Linux, WebAssembly) and includes a macOS demo application for interactive testing. The codebase demonstrates strong software engineering practices: protocol-oriented design, extensive unit tests (including adversarial edge cases), performance optimizations (concrete type overloads, stack allocation, manual memory management in hot paths), and a clean separation of concerns. While pre-release (semver < 1.0) with some known numerical edge cases documented as expected failures, the library is production-ready for vector graphics, CAD, and computational geometry applications.

RATING: 8.7/10 MAINT: active DRIFT: low
▸ 5 reusable components found
onevcat/Rainbow ★ 1942 112 APPLICATION

Rainbow is a zero-runtime-dependency Swift library that applies ANSI escape sequences to strings for colored terminal output. It supports the named 16-color palette plus light variants, 8-bit 256-color mode (38;5;N), 24-bit true color (38;2;R;G;B), hex colors approximated to the nearest 256-color cube, HSL colors converted to RGB, and styles (bold, dim, italic, underline, blink, swap, strikethrough). Output is gated by OutputTarget detection that checks isatty() on POSIX/Windows plus NO_COLOR/FORCE_COLOR environment variables, so redirected output degrades to plain text automatically.

RATING: 8.6/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
EFPrefix/EFQRCode ★ 4756 505 APPLICATION

EFQRCode is a pure-Swift, cross-platform Apple framework for generating stylized and highly customizable QR codes, and for recognizing QR codes from images. The core production code exposes two primary entry points: `EFQRCode.Generator` and `EFQRCode.Recognizer`. The generator accepts text/data input, encodes it using the external `QRCodeSwift` package, maps the resulting matrix through a strategy-based style hierarchy (`EFQRCodeStyleBasic`, `EFQRCodeStyleBubble`, `EFQRCodeStyleLine`, `EFQRCodeStyle25D`, `EFQRCodeStyleImage`, etc.), and produces SVG representations which are then rasterized by `SwiftDraw` into static images, PDFs, GIFs, APNGs, or AVFoundation-backed video files. The recognizer uses CoreImage-based detection with grayscale fallback and result caching. The library is heavily documented, supports iOS, macOS, tvOS, watchOS, and visionOS, and is distributed through SPM, CocoaPods, and Carthage. The `Examples/` directory contains demo apps for each platform that act as integration-style usage references, but these are example clients rather than the core deliverable. This is definitively an application/library repository; there are no data pipelines, notebooks, or research artifacts.

RATING: 8.3/10 MAINT: maintained DRIFT: medium
▸ 3 reusable components found
johnpatrickmorgan/TCACoordinators ★ 500 52 APPLICATION

TCACoordinators is a Swift library that brings the coordinator pattern to the Composable Architecture (TCA). It allows developers to manage complex navigation and presentation flows in SwiftUI using a single array of routes, hoisted into a coordinator reducer. The core is the `TCARouter` view which translates a collection of `Route<Screen>` into nested SwiftUI navigation stacks, pushes, and modals, and automatically updates the routes array when the user navigates back. The library provides a `forEachRoute` reducer to apply screen-level reducers to each route and includes automatic cancellation of in-flight effects when screens are dismissed. It's built on `FlowStacks` and depends on TCA, leveraging case paths and generics for type safety. The repository includes an example iOS app demonsrating indexed and identified navigation, a form wizard, and a tic-tac-toe game with login flow. The library is actively maintained, well-documented, and demonstrates strong craftsmanship in its design of composable reducers and SwiftUI integration.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 3 reusable components found
matteocrippa/awesome-swift ★ 26317 3150 APPLICATION

This repository is a curated list (awesome list) of Swift libraries, tools, and resources. It is not a software application or data pipeline. The primary artifact is a `contents.json` file that defines categories and projects, which is transformed into a `README.md` via a Ruby script (`convert.rb`) during CI. The repository includes contribution guidelines, a JSON schema, and GitHub Actions workflows for validation and deployment. It serves as a reference for Swift developers seeking high-quality open-source projects. There are no executable software components to reuse; the value lies in the curated list itself.

RATING: 8.0/10 MAINT: active DRIFT: low
tilltue/TLPhotoPicker ★ 1897 385 APPLICATION

TLPhotoPicker is an iOS library providing a customizable photo and video picker UI similar to Facebook's picker. It wraps the Photos framework (PHAsset, PHAssetCollection) and offers a configurable grid view with support for smart albums, live photos, video playback, iCloud download, and camera capture. The architecture follows a service-oriented pattern with separate classes for photo library access, selection logic, camera handling, and video playback, all coordinated by a central view controller. The library includes a builder pattern for configuration, async/await support for image loading, and comprehensive delegate callbacks. It is distributed via CocoaPods and Swift Package Manager, targeting iOS 13.0+. The codebase is well-structured but shows some technical drift, notably continued use of the deprecated UIImagePickerController for camera capture instead of the modern PHPickerViewController.

RATING: 7.7/10 MAINT: maintained DRIFT: medium
▸ 4 reusable components found
LinXunFeng/SwiftyFitsize ★ 294 47 APPLICATION

SwiftyFitsize is an iOS SDK that provides screen size adaptation for UI elements. It allows developers to define UI dimensions based on a reference design size and automatically scales those dimensions to fit different screen sizes, with special handling for iPhone vs iPad differences and safe area considerations (notch, home indicator). The library offers both operator-based syntax (~ value) and function-based syntax for flexibility, plus Interface Builder support through UIKit extensions. It includes a property wrapper for reusable adapted values and maintains full Objective-C compatibility through a bridging header.

RATING: 7.5/10 MAINT: active DRIFT: low
▸ 1 reusable components found
vsouza/awesome-ios ★ 53455 7009 APPLICATION

This repository is a curated list of iOS resources, including libraries, tools, books, and tutorials, organized by category. It is not a software application or data pipeline but a reference index for iOS developers. The repository contains minimal code—primarily a Python script for PR quality checks and CI workflows—and no executable application logic. It serves as a community-maintained directory rather than a functional codebase. The value lies in its comprehensive listing and community governance processes, not in reusable software components.

RATING: 5.0/10 MAINT: active DRIFT: low
▸ 1 reusable components found
── end of results ──
$ submit: