Welcome to Swiftlets

Build modern web applications with Swift and SwiftUI-like syntax

🎉 NEW

SwiftUI-Style API with @main

Write Swiftlets with zero boilerplate using our new declarative API

@main
struct HomePage: SwiftletMain {
    @Query("name") var userName: String?
    
    var title = "Welcome"
    var body: some HTMLElement {
        H1("Hello, \(userName ?? "World")!")
    }
}
Try Interactive DemoLearn More
🚀

Getting Started

Get up and running with Swiftlets in minutes

💡

Core Concepts

Understand how Swiftlets works under the hood

🧩

Components

Explore all available HTML components

Why Choose Swiftlets?

🎯

Focused on Developer Experience

Write web applications using familiar Swift syntax. If you know SwiftUI, you'll feel right at home.

âš¡

Lightning Fast

Built on SwiftNIO for exceptional performance. Each route runs as an independent process.

🔧

Simple Architecture

No complex build steps or bundlers. Just write Swift code and run.

🎨

Full HTML5 Support

Access to 60+ HTML elements with type-safe modifiers and attributes.

Ready to Build?

Start building your first Swiftlets application in minutes

Get Started →