Share your SwiftData models between iOS apps and Vapor servers. Write once, run everywhere with 100% API compatibility.
Define your models once and use them on iOS, macOS, and your Vapor server.
// Works on iOS, macOS, and Server
@Model
final class User {
var name: String
@Attribute(.unique)
var email: String
@Relationship(deleteRule: .cascade)
var posts: [Post] = []
init(name: String, email: String) {
self.name = name
self.email = email
}
}
Use the same @Model, #Predicate, FetchDescriptor, and ModelContext APIs you know from SwiftData.
PostgreSQL, MySQL, and SQLite backends. Choose the database that fits your needs.
First-class Vapor support with request-scoped contexts and automatic migrations. Swift 6 ready, Swift 5 compatible.
Full support for one-to-many and many-to-many relationships with automatic join tables.
Compile-time checked predicates and queries. Catch errors before they reach production.
$500 lifetime license. No subscriptions, no per-seat fees. Own it forever.
Join hundreds of developers building full-stack Swift applications.
Purchase License - $500