The official MongoDB driver for Swift applications on macOS and Linux, providing async and sync APIs.
MongoSwift is the official MongoDB driver for Swift, enabling developers to interact with MongoDB databases from server-side Swift applications. It provides a native Swift interface for performing database operations, supporting both asynchronous and synchronous programming models. However, development has been paused, meaning no further updates, bug fixes, or maintenance are provided by the project.
Server-side Swift developers building applications on macOS or Linux that require MongoDB database interactions, particularly those using frameworks like Kitura, Vapor, or Perfect.
Developers choose MongoSwift for its idiomatic Swift API, full compatibility with MongoDB features, and support for modern Swift concurrency models like async/await. As the official driver, it offers reliability and seamless integration with MongoDB's ecosystem, though it is currently in a maintenance-only state.
The official MongoDB driver for Swift
Supports Swift's async/await concurrency model for asynchronous database operations, with clear examples in the README for connecting and querying using async/await.
Offers both synchronous and asynchronous APIs, including EventLoopFuture integration, catering to diverse use cases from scripting to event-driven apps, as demonstrated in the usage examples.
Includes a native BSON implementation for seamless document manipulation in Swift, shown in code snippets for creating, modifying, and filtering BSON documents.
Runs on both macOS and Linux, enabling server-side Swift development across operating systems, as stated in the key features and installation requirements.
No further development, bug fixes, enhancements, or maintenance are provided, making it risky for projects needing long-term viability or compatibility with evolving Swift/MongoDB ecosystems.
Requires manual installation of external system libraries on Linux, adding an extra setup step compared to macOS, as outlined in the installation instructions.
Built exclusively on SwiftNIO 2, which may limit compatibility with frameworks or projects using older or newer versions, as noted in the framework integration section.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.