Vapor
hummingbird
Our great sponsors
Vapor | hummingbird | |
---|---|---|
57 | 9 | |
23,765 | 734 | |
0.5% | 13.1% | |
8.3 | 9.3 | |
9 days ago | 6 days ago | |
Swift | Swift | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Vapor
-
Swiftly Chatting: Building Chatbots with Botter
Botter works in tandem with Vapor, which handles the server-side functions of your project. This powerful combination allows you to focus on what matters most - creating an engaging and effective chatbot.
-
Is it possible/straightforward to have a webserver baked in to an iOS app?
Otherwise there's https://github.com/vapor/vapor
- A Look at the Crystal Programming Language for Humans
-
Most effective approach for building a client/server application (MacOS)
The Swift/Vapor project is a relatively easy way to do it.
-
First contract, how much should I charge?
Opening this webpage (https://vapor.codes) cranks my CPU (5800x3d) to 100% instantly. Why?
-
Swift outside the Apple ecosystem
Vapor is the most popular non-Apple-ecosystem Swift project. There have been a few others, but none particularly popular.
-
Idea for small project? (without touching any UI)
Server-side apps (typically via Vapor)
-
Why I selected Elixir and Phoenix as my main stack
My first option other than PHP was using Swift and Vapor. I have made some projects with iOS and Objective-C, maybe I could also learn Swift and create both native iOS apps and backends with the same language.
-
Cheapest iOS <-> database architecture?
You could learn Vapor, I created a tutorial series for this, you write the backend API in Swift, rather than needing to learn another programming language
hummingbird
-
An aborted experiment with server Swift
Such a shame. Swift has many beautiful language features.
I give swift a try every once in a while.
Problems of my last attempt:
- The Swift REPL (lldb to be precise) depends on libpython-dev (v3.8). WSL (ubuntu 22.04) comes with 2.7 and 3.10, so the lldb dependency depends on an old python version. The fix was to copy the 3.10 binary to the directory where lldb expects it, and rename it to libpython3.8.so. It seems that it's backwards compatible so it worked on my machine.
- I tried to compile and statically link a hummingbird (web framework, more light weight than vapot, https://github.com/hummingbird-project/hummingbird) hello-world example. I had a liking error. Luckilly someone in the swift forums helped me. The problem was that my package.swift file had the "-static-stdlib" flag only as a swiftSettings. It needed to be also a linkerSetting.
In the end I was able to build my example. But at this point I already spent multiple days debugging problems that are unrelated to my applicationn or the Swift language.
It's a shame because I see its potential. Fixing the (linux/windows) tooling problems would probably only take "some" developers. Apple has near infinite money and could sponsor them if they wanted to., but they gain little by it. Besides them, not many are invested in it.
-
Swift outside the Apple ecosystem
Also look at: Hummingbird https://github.com/hummingbird-project/hummingbird Smoke https://github.com/amzn/smoke-framework Swift NIO https://github.com/apple/swift-nio
-
What is the backend of apps?
Hummingbird is probably the fastest/lightest backend. You can switch to it after mastering Vapor's Fluent ORM.
-
Alchemy - Elegant, batteries included web framework for Swift!
Another Devil's Advocate: Why would I choose it over Hummingbird? https://github.com/hummingbird-project/hummingbird
What are some alternatives?
Perfect - Server-side Swift. The Perfect core toolset and framework for Swift Developers. (For mobile back-end development, website and API development, and more…)
Alamofire - Elegant HTTP Networking in Swift
Kitura - A Swift web framework and HTTP server.
swifter - Tiny http server engine written in Swift programming language.
GCDWebServer - The #1 HTTP server for iOS, macOS & tvOS (also includes web based uploader & WebDAV server)
Zewo - Lightweight library for web server applications in Swift on macOS and Linux powered by coroutines.
Express - Swift Express is a simple, yet unopinionated web application server written in Swift
smoke-framework - A light-weight server-side service framework written in the Swift programming language.
Swifton - A Ruby on Rails inspired Web Framework for Swift that runs on Linux and OS X
CocoaHTTPServer - A small, lightweight, embeddable HTTP server for Mac OS X or iOS applications
SwiftGD - A simple Swift wrapper for libgd
Blackfish - A minimal, fast and unopinionated web framework for Swift