Swift-Server alternatives and similar libraries
Based on the "Webserver" category.
Alternatively, view Swift-Server alternatives based on common mentions on social networks and blogs.
-
Perfect
Server-side Swift. The Perfect core toolset and framework for Swift Developers. (For mobile back-end development, website and API development, and more…) -
swifter
Tiny http server engine written in Swift programming language. -
Swifton
A Ruby on Rails inspired Web Framework for Swift that runs on Linux and OS X -
Zewo
Lightweight library for web server applications in Swift on macOS and Linux powered by coroutines. -
Taylor
A lightweight library for writing HTTP web servers with Swift -
Blackfish
A minimal, fast and unopinionated web framework for Swift -
Express
Swift Express is a simple, yet unopinionated web application server written in Swift -
Embassy
Super lightweight async HTTP server library in pure Swift runs in iOS / MacOS / Linux -
XcodeServerSDK
Access Xcode Server API with native Swift objects. -
Restofire
Restofire is a protocol oriented networking client for Alamofire -
Edge
A Swift Multiplatform Single-threaded Non-blocking Web and Networking Framework -
NetworkObjects
Swift backend / server framework (Pure Swift, Supports Linux) -
RxNetworks
🧚 Responsive plugin network architecture for RxSwift + Moya + HandyJSON + Plugins. -
Ambassador
Super lightweight web framework in Swift based on SWSGI -
SwiftyHTTP
A simple GCD based HTTP client and server, written in 'pure' Swift -
Dynamo
High Performance (nearly)100% Swift Web server supporting dynamic content. -
Corvus
Corvus has been archived in favor of https://github.com/Apodini/Apodini .
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Swift-Server or a related project?
README
Swift Server
Introduction
This is very rough and basic HTTP server written in Swift without using Foundation
.
This is partially based on the Swifter repo, however, the point is to eliminate the need for Apple's Foundation
library to prepare for using Swift on Linux.
This is built using Swift Script Include to enable using multiple files for Swift scripts and runs without Xcode purely on the terminal.
Installation Notes
This is built using Swift 2, and requires your command-line swift
to be using Swift 2 as well. You can check your Swift version by running swift --version
in your terminal. If you are running Swift 1.2 instead of 2.0, first, make sure that you have the Xcode 7 beta installed. Next, run the following command:
sudo xcode-select -switch /Applications/Xcode-beta.app/Contents/Developer
Running
To run the project, simply type make run
in the project directory.
Visit http://127.0.0.1:3000
in your web browser to see a friendly "Hello, World!" message. The HTTP request will be printed in your terminal.
Example Code
The functionality is currently very basic. The code below shows what the server can currently do.
include "lib/server.swift"
let app = Server(port: port)
app.run() {
request, response -> () in
print(request.raw)
response.sendRaw("HTTP/1.1 200 OK\n\nHello, World!\n")
}