A native, asynchronous MongoDB driver for Swift built on Swift NIO, designed for server-side Swift applications.
MongoKitten is a native MongoDB driver for Swift, built on Swift NIO for asynchronous, non-blocking operations. It enables Swift developers to interact with MongoDB databases efficiently, supporting full CRUD, aggregation, transactions, and real-time change streams. It solves the need for a high-performance, pure-Swift MongoDB driver tailored for server-side applications.
Swift developers building server-side applications with frameworks like Vapor or Hummingbird, who need a robust, asynchronous MongoDB driver. It's also suitable for iOS/macOS developers requiring MongoDB support in embedded environments.
Developers choose MongoKitten for its pure Swift implementation, seamless async/await support, and tight integration with the Swift ecosystem. Its battle-tested core, comprehensive feature set, and optional ORM layer (Meow) provide a superior alternative to other MongoDB drivers for Swift.
Native MongoDB driver for Swift, written in Swift
Written entirely in Swift, it offers a type-safe and idiomatic API that integrates seamlessly with the Swift ecosystem, as emphasized in the README's focus on being a 'pure swift' driver.
Built on Swift NIO for non-blocking I/O, it ensures optimal performance in asynchronous environments like Vapor and Hummingbird, with full support for Swift's concurrency model.
Supports all major MongoDB features including CRUD, aggregation pipelines, transactions, GridFS, and change streams, making it a production-ready driver for diverse use cases.
Includes BSONEncoder and BSONDecoder for easy conversion between Swift types and BSON documents, simplifying data serialization without extra dependencies.
Requires manual setup and configuration for integration with server-side frameworks like Vapor and Hummingbird, which can be complex and error-prone, as shown in the README's code snippets.
Tightly coupled with Swift and its concurrency model, limiting usability in polyglot environments or projects that might migrate away from Swift.
Features like change streams and transactions require understanding of MongoDB replica sets and sharded clusters, adding complexity beyond basic usage, as noted in the troubleshooting section.
An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, POSIX, and OHOS.
Realm is a mobile database: a replacement for Core Data & SQLite
WCDB is a cross-platform database framework developed by WeChat.
A type-safe, Swift-language layer over SQLite3.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.