Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. Swifton

Swifton

MITSwift

A Ruby on Rails inspired web framework for Swift that runs on Linux and macOS.

GitHubGitHub
2.0k stars68 forks0 contributors

What is Swifton?

Swifton is a Ruby on Rails inspired web framework built for the Swift programming language. It enables developers to create web applications using Swift on both Linux and macOS, offering a familiar MVC architecture and convention-over-configuration principles. The framework simplifies routing, controller management, and view rendering, making server-side Swift development more accessible and productive.

Target Audience

Swift developers looking to build web applications or APIs with a Rails-like framework, especially those interested in cross-platform development on Linux and macOS.

Value Proposition

Swifton provides a streamlined, Rails-inspired development experience in Swift, reducing boilerplate and accelerating web app creation. Its compatibility with S4 standards and support for multiple ORMs offer flexibility, while its focus on convention over configuration appeals to developers familiar with Rails or Django.

Overview

A Ruby on Rails inspired Web Framework for Swift that runs on Linux and OS X

Use Cases

Best For

  • Building RESTful web applications in Swift
  • Creating cross-platform web services for Linux and macOS
  • Developing MVC-based web apps with Stencil templates
  • Prototyping web applications quickly with in-memory models
  • Integrating Swift web apps with S4-compatible servers
  • Transitioning from Ruby on Rails to Swift for web development

Not Ideal For

  • Projects requiring active maintenance and long-term support
  • Teams needing up-to-date Swift language features (beyond Swift 2)
  • Applications demanding robust, production-ready ORM out of the box
  • Developers seeking a large ecosystem with extensive community resources

Pros & Cons

Pros

Rails-Inspired Productivity

Routing and controller design closely mimic Ruby on Rails, with concise syntax for RESTful resources and filters, reducing boilerplate for MVC web apps.

Flexible ORM Integration

ORM agnostic approach allows use of any data layer, with an included in-memory MemoryModel for quick prototyping, as shown in the models section.

Cross-Platform Compatibility

Runs on both Linux and macOS, enabling Swift web development outside Apple's ecosystem, supported by badges and deployment examples.

S4 Standard Compliance

Integrates with any S4-supporting server, providing flexibility in deployment and middleware usage, as mentioned in the server section.

Cons

Inactive Development

The README explicitly states development is paused due to Swift's static nature, meaning no updates, bug fixes, or new features are expected.

Outdated Swift Version

Built for Swift 2, which is obsolete; this limits access to modern Swift features and may cause compatibility issues with current tooling.

Limited Production Tooling

Relies on external ORMs for persistence, and the in-memory model is insufficient for real applications, requiring additional setup and dependencies.

Frequently Asked Questions

Quick Stats

Stars1,951
Forks68
Contributors0
Open Issues8
Last commit9 years ago
CreatedSince 2016

Tags

#rest-api#rails-inspired#mvc#server-side-swift#web-framework#linux#swift#macos#stencil-templates

Built With

S
Stencil
S
Swift

Included in

iOS51.7k
Auto-fetched 18 hours ago

Related Projects

VaporVapor

💧 A server-side Swift HTTP web framework.

Stars26,168
Forks1,517
Last commit1 day ago
PerfectPerfect

Server-side Swift. The Perfect core toolset and framework for Swift Developers. (For mobile back-end development, website and API development, and more…)

Stars13,746
Forks928
Last commit2 years ago
KituraKitura

A Swift web framework and HTTP server.

Stars7,581
Forks499
Last commit2 months ago
GCDWebServerGCDWebServer

The #1 HTTP server for iOS, macOS & tvOS (also includes web based uploader & WebDAV server)

Stars6,626
Forks1,327
Last commit3 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub