# httpswift/swifter

Tiny http server engine written in Swift programming language.

Repository: https://github.com/httpswift/swifter
Canonical: https://ross.abutalabs.com/products/swifter
Language: Swift
License: BSD-3-Clause
License Family: permissive
Topics: server, swift, http, web
Last push: 2024-03-17T20:32:47+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4471, "days_push": 899, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4019, forks 554 (observed 2026-08-28T04:08:32.507356+00:00)

## What it is
Swifter is a tiny HTTP server engine written in Swift, supporting HTTP 1.1 and WebSockets. It offers a simple closure-based routing API, static file sharing, redirects, and an experimental HTML DSL, distributed via CocoaPods, Carthage, and Swift Package Manager.

## Use cases
- embed a lightweight http server in a swift app
- serve static files from a directory in swift
- build a small rest api in swift
- add websocket echo or messaging endpoints
- spin up a local test server for ios or macos development
- handle simple redirects and html responses in swift

## When to choose
- you need a minimal, dependency-light http server in Swift
- you want to embed a server inside an iOS, macOS, tvOS, or Linux Swift app
- you prefer a simple closure-based routing API over a full framework
- you need quick WebSocket support without heavy setup

## When to avoid
- you need a full-featured production web framework with middleware, auth, and ORM
- you require high-performance async IO at scale
- you need long-term active maintenance and frequent updates
- your project is not in the Swift ecosystem

## Facets
- artifact type: library
- maturity: maintenance
- function: http-server, websocket, routing, templating
- domain: web-development, backend, apis
- platform: -
- tags: tiny-http-server, swift-server, embedded-server, websocket-support, file-sharing, macos, linux, swift, ios

## Member repositories
- httpswift/swifter (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:32.507356+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:56.935235+00:00, confidence not recorded.
  - readme: https://github.com/httpswift/swifter (fetched 2026-08-28T04:08:32.507356+00:00, sha 8c473d2fa0ff)
- Data as of 2026-08-30T08:39:29.467469+00:00.
