Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. Fluent

Fluent

MITSwift4.13.0

Vapor ORM for building database models, queries, and relations with support for both SQL and NoSQL databases.

Visit WebsiteGitHubGitHub
1.4k stars176 forks0 contributors

What is Fluent?

Fluent is an Object-Relational Mapping (ORM) framework for Vapor applications that provides a unified interface for working with both SQL and NoSQL databases. It solves the problem of database abstraction by allowing developers to write database-agnostic code while maintaining type safety and integration with Vapor's ecosystem.

Target Audience

Swift developers building server-side applications with Vapor who need to interact with databases in a type-safe, database-agnostic way.

Value Proposition

Developers choose Fluent for its seamless integration with Vapor, support for multiple database backends, and type-safe query building that reduces errors and improves developer productivity compared to raw SQL or database-specific drivers.

Overview

Vapor ORM (queries, models, and relations) for NoSQL and SQL databases

Use Cases

Best For

  • Building Vapor applications that need to support multiple database backends
  • Creating type-safe database models and queries in Swift
  • Implementing database migrations in server-side Swift applications
  • Developing Vapor apps with complex model relationships
  • Integrating database operations with Vapor's authentication system
  • Writing database-agnostic code that can switch between SQL and NoSQL databases

Not Ideal For

  • Applications not built with the Vapor framework
  • Projects requiring low-level database access or specific SQL/NoSQL optimizations not exposed by Fluent's API
  • Real-time data processing with databases like Redis or Firebase that aren't supported
  • Microservices or lightweight apps that don't need Vapor's full-stack integration

Pros & Cons

Pros

Seamless Vapor Integration

Ties directly into Vapor's application lifecycle and authentication APIs, as the README highlights, making setup and management straightforward for Vapor apps.

Unified Database API

Provides a single interface for SQL (PostgreSQL, MySQL, SQLite) and NoSQL (MongoDB) databases, enabling database-agnostic code and easier backend switching.

Type-Safe Query Builder

Allows constructing complex database queries in Swift with compile-time type safety, reducing runtime errors and improving developer productivity.

Comprehensive Relationships

Supports defining and querying one-to-one, one-to-many, and many-to-many relationships between models, essential for handling complex data structures in applications.

Cons

Performance Overhead

The abstraction layer can introduce latency compared to raw database queries, especially for complex operations, which might impact high-performance applications.

Limited Database Support

Only supports a fixed set of databases (PostgreSQL, MySQL, SQLite, MongoDB), lacking support for other popular backends like Redis or Cassandra, limiting flexibility.

Vendor Lock-in to Vapor

Tightly coupled with Vapor's ecosystem, making it unusable with other Swift server frameworks and difficult to migrate away from if project requirements change.

Frequently Asked Questions

Quick Stats

Stars1,409
Forks176
Contributors0
Open Issues23
Last commit7 days ago
CreatedSince 2016

Tags

#vapor-service#query-builder#orm#database#swift-linux#database-models#nosql#migrations#database-abstraction#vapor#server-side-swift#vapor-framework#swift#sql

Built With

S
Swift

Links & Resources

Website

Included in

iOS51.7kSwift26.0k
Auto-fetched 15 hours ago

Related Projects

MMKVMMKV

An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, POSIX, and OHOS.

Stars18,680
Forks1,986
Last commit28 days ago
RealmRealm

Realm is a mobile database: a replacement for Core Data & SQLite

Stars16,608
Forks2,234
Last commit1 month ago
FMDBFMDB

A Cocoa / Objective-C wrapper around SQLite

Stars13,840
Forks2,734
Last commit4 months ago
WCDBWCDB

WCDB is a cross-platform database framework developed by WeChat.

Stars11,616
Forks1,505
Last commit3 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub