Swiftpack.co -  apparata/NetAppKit as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Framework for making simple Express-like net apps using Swift NIO.
.package(url: "https://github.com/apparata/NetAppKit.git", from: "0.3.0")


SwiftPM compatible MIT License language Swift 5.1 platform macOS platform Linux

Framework for making Express-like net apps using Swift NIO.


NetAppKit is released under the MIT license. See LICENSE file for more detailed information.

Table of Contents

Getting Started

Add NetAppKit to your Swift package by adding the following to your Package.swift file in the dependencies array:

.package(url: "https://github.com/apparata/NetAppKit.git", from: "<version>")

If you are using Xcode 11 or newer, you can add NetAppKit by entering the URL to the repository via the File menu:

File > Swift Packages > Add Package Dependency...

Note: NetAppKit requires Swift 5.1 or later.

Reference Documentation

There is generated reference documentation available.


import Foundation
import NetAppKit

let app = App()

app.handle(.GET, path: "/helloworld") { (request, response) in
    response.send("This is a test.")
    return .handled

app.handle(.GET, path: "/echo/:word") { (request, response) in
    response.send("Echoed word: \(request.parameter("word"))")
    return .handled

// Subapp that is installed on /date, so /today endpoint will be /date/today
let subapp = App()

subapp.handle(.GET, path: "/today") { (request, response) in
    response.send("Today's date is \(Date())")
    return .handled

app.installSubapp(subapp, path: "/date")

do {
    let server = AppServer(app: app)
    try server.listen(on: 4000)
} catch {


Stars: 1
Last commit: 3 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.


Release Notes

Bug fix for API-Key validation
1 year ago

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