Swiftpack.co - Macro-swift/MacroExpress as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Macro-swift.
Macro-swift/MacroExpress 0.8.8
An unopinionated SwiftNIO based web framework, Express.js/Connect like.
⭐️ 37
🕓 33 weeks ago
.package(url: "https://github.com/Macro-swift/MacroExpress.git", from: "0.8.8")


A small, unopinionated "don't get into my way" / "I don't wanna wait" asynchronous web framework for Swift. With a strong focus on replicating the Node APIs in Swift. But in a typesafe, and fast way.

MacroExpress is a more capable variant of µExpress. The goal is still to keep a small core, but add some Noze.io modules and concepts.

MacroExpress adds the web framework components to Macro (kinda like Express.js adds to Node.js).

MacroLambda has the bits to directly deploy MacroExpress applications on AWS Lambda. MacroApp adds a SwiftUI-style declarative DSL to setup MacroExpress routes.

What does it look like?

The Macro Examples package contains a few examples which all can run straight from the source as swift-sh scripts.

#!/usr/bin/swift sh
import MacroExpress // @Macro-swift

let app = express()
app.use(serveStatic(__dirname() + "/public"))

app.get("/hello") { req, res, next in
  res.send("Hello World!")
app.get { req, res, next in


Environment Variables

  • macro.core.numthreads
  • macro.core.iothreads
  • macro.core.retain.debug
  • macro.concat.maxsize
  • macro.streams.debug.rc
  • macro.router.debug
  • macro.router.matcher.debug
  • macro.router.walker.debug



MacroExpress is brought to you by the Always Right Institute and ZeeZide. We like feedback, GitHub stars, cool contract work, presumably any form of praise you can think of.

There is a #microexpress channel on the Noze.io Slack. Feel free to join!


Stars: 37
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Asynchronously Not
33 weeks ago

Enforce use of Swift 5.5 enabled Macro. Changed Package.swift to 5.2 syntax (on a quest to be as WET as possible).

Removed support for Swift 5.0 and 5.1, because Apple:

We didn’t do it because it was required, instead that it felt appropriate

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics