FindSoftware

Ambassador

Swift web framework for mocking HTTP API endpoints, built on the SWSGI interface and served by Embassy or another SWSGI server.

Ambassador is a web framework for Swift that maps URL paths to response handlers, so an app can answer HTTP requests with fixed or generated responses. It is based on SWSGI, the Swift web server gateway interface. The README’s example runs it on Embassy, the HTTP server that the package depends on, and says it can run with other SWSGI-compatible servers.

Handlers include a JSON response, a data response with a custom status and headers, and a decorator that delays another response by a set time or never returns it. Readers collect request bodies as data, JSON or URL-encoded parameters. The router can match paths with regular expressions and passes the captured groups to the handler.

Worth knowing

The README describes the framework as designed for UI automatic testing and API mocking, and its example mocks API endpoints.

Identity

Status
Active
Maintainer
Envoy3
First release
20165

Rendering and deploy

Install with
Swift Package Manager2

Releases

Current major version
46
Last release
2018-10-106

Adoption

GitHub stars
1901
Contributors
107
Sites using it (HTTP Archive)
1158

Why these figures do not compare

Sources

  1. 2026-10-24: links, Written in, License, GitHub stars
    api.github.com/repos/envoy/Ambassador
  2. 2026-10-24: links, Categories, Install with
    github.com/envoy/Ambassador/blob/master/README.md
  3. 2026-10-24: Maintainer, License
    github.com/envoy/Ambassador/blob/master/LICENSE
  4. 2026-10-24: Runtime
    github.com/envoy/Ambassador/blob/master/Package.swift
  5. 2026-10-24: First release
    api.github.com/repos/envoy/Ambassador/tags
  6. 2026-10-24: Current major version, Last release
    api.github.com/repos/envoy/Ambassador/releases
  7. 2026-10-24: Contributors
    api.github.com/repos/envoy/Ambassador/contributors
  8. 2026-10-25: Sites using it (HTTP Archive)
    cdn.httparchive.org/v1/technologies

Last reviewed · Updated · Listed since Edit on GitHubThis page as markdownas JSON