Swift on Server
I've been using Swift on the server daily for over four years now, and this year we've seen quite a lot of updates, not just for the server side, but for the whole ecosystem.
This year at WWDC24, Apple announced Swift 6, the new major version of the programming language, alongside the modern Swift-Testing framework. They are currently migrating the entire Swift project to a new organization on GitHub called SwiftLang. In addition, the Swift VSCode extension - originally by Adam Fowler - is now available under the new organization. It is nice to see Swift becoming a standalone project.
We have also worked hard on the swiftonserver.com website, and are very proud of our latest integration with the swiftinit.org project. This integration helps validate our examples and provides links to the documentation symbols.
- Tib

AsyncSequences are increasingly prevalent in Server-Side Swift and are becoming more prominent in macOS and iOS apps as well. Similar to other structured concurrency features, AsyncSequences facilitate structured programming, making it easier to reason about your code. To learn more, read Joannis' guide on swiftonserver.com.
Tibor has a brand new tutorial on swiftonserver.com about WebSockets and how to use them with the Hummingbird 2 framework in a straightforward, easy-to-follow manner. The first part provides a clear understanding of the WebSocket protocol. Following that, a hands-on example demonstrates effective use of this technology through the Hummingbird WebSocket library.
Swift is an excellent language for developing server applications, powering critical services across Apple's cloud products. This WWDC session explores essential tooling, delves into the Swift server package ecosystem, demonstrates how to interact with databases, and enhances application observability. Franz Busch's talk will help unlock the full potential of Swift for server-side projects.
Introducing the Swift Static Linux SDK: a powerful tool that lets developers build fully statically linked executables with no external dependencies. This ensures programs run seamlessly on any Linux distribution, relying solely on the Linux system call interface. With this new tool, you can create Linux binaries from your mac.

Sebastian hosted the second quarterly SSWG-organized online meetup on June 26th. The event began with Mikaela Caron discussing how to deploy your Vapor app to Fly.io for free using a Dockerfile. This was followed by Joannis and Adam, who explored the recently released version 2 of Hummingbird with a live-coding example. The session saw lively interactions in the chat, both before and after the talks. We look forward to seeing you at the next edition.
ServerSide.swift is a framework-independent conference dedicated to learning and sharing knowledge on various server-side Swift topics. Join us on September 26th and 27th at the Science Museum in London, UK, for two days of inspiring talks from some of the brightest minds in the field. The conference promises a packed schedule full of amazing presentations. Keep an eye on the lineup and get ready to be inspired!

Hummingbird is a lightweight, flexible web application framework designed to run on a SwiftNIO-based server implementation with minimal dependencies. Built on top of modern Structured Concurrency features, version 2 offers a great performance with an API that's ready for Swift 6. Hummingbird features a powerful new router, a new "Request Context" System in addition to all of the existing and familiar APIs such as Codable support and a Middleware system.
JWTKit offers robust APIs for signing and verifying JSON Web Tokens (JWTs) using SwiftCrypto. JWTKit enables secure and efficient token management with customizable signing and verification using custom headers. It's easy to use, has flexible parsing and serialization options, along with support for JSON Web Keys (JWK, JWKS). This makes JWTKit an essential tool for working with JWTs in Swift.
swiftly is a powerful CLI tool crafted in Swift, designed to install, manage, and switch between Swift toolchains effortlessly. Installation and setup are straightforward, ensuring you can get started quickly. The command interface strikes a perfect balance between flexibility and simplicity, making swiftly an essential tool for streamlined Swift development.
NodeSwift bridges the gap between Swift and Node.js, enabling seamless communication between these two powerful ecosystems. Leverage Swift and SwiftPM to access native macOS features from within Electron applications, or tap into the extensive library of NPM APIs from within your Swift code.
You are receiving this email newsletter because you registered with the swiftonserver.com newsletter.
(previously theswiftdev.com newsletter)