SwiftX is a high-performance, developer-first web framework for Swift, built on the ultra-clean SwiftXCore runtime. It abstracts away low-level complexities to provide a TitanPl-like development experience without sacrificing speed.
- Performance: High-speed Radix Router and Managed Worker Pool.
- Multiplatform: Native support for Windows, Linux, and macOS.
- Async First: Seamless bridge with standard Swift concurrency.
- Plugin Driven: Add only what you need (CORS, Static Files, etc.).
- DX Centric: Clean APIs, type-safety, and great path parameters.
import SwiftX
let app = SwiftX()
app.get("/greet/:name") { req, _ in
let name = req.param("name") ?? "World"
return .json(["message": "Hello, \(name)!"])
}
app.start(port: 5100)Visit swiftx.city/docs for full documentation, guides, and API reference.
dependencies: [
.package(url: "https://github.com/swiftxcity/swiftx.git", from: "1.0.0")
]MIT License. Built for the next generation of Swift developers.