import Hummingbird
let router = Router().get { req, context in
return "Hello, Swift!"
}
let app = Application(router: router)
try await app.runService()
Create Better Backends with Swift
Hummingbird takes advantage of Swift to make it easy and enjoyable to create robust backends.
Ergonomic Syntax
Hummingbird apps are easy to develop thanks to Swift's ergonomic syntax.
Structured Concurrency
Embracing Structured Concurrency makes Hummingbird apps easy to build.
Lightweight
With a tiny memory footprint, Hummingbird is perfect for deploying on cloud services.
Thread and Memory Safe
Swift checks your apps for errors, making your code reliable even before you run it.
Predictably Performant
Hummingbird makes your backends blazing fast, while ARC replaces garbage collection.
Cross-Platform
Swift runs on your platform. Linux, macOS, and iOS.
Every Package you need
Hummingbird comes with mature solutions for the common needs of all web applications.
import Hummingbird
import Meow // From MongoKitten
router.get("/videos/:id") { req, context in
let id = try context.parameters.require(
"id",
as: Reference<Video>.self
)
return try await id.resolve(in: db)
}
Join the Hummingbird Community
Join the Hummingbird community on Discord to get help, share your projects, and chat with other developers.