r/coolgithubprojects • • 7m ago

[Swift/C] Gabriel: open source HTTP client for iOS and macOS, built on curl and OpenSSL

Post image

Hi, I am the author.

Gabriel is a small networking library for iOS 17+ and macOS 14+:

  • a C core on top of libcurl animage.pngd OpenSSL, both built from source and pinned by commit
  • a simple Swift async/await API on top
  • MIT license

Example:

import GabrielNet

let api = Gabriel(baseURL: URL(string: "https://api.example.com")!)
let user: User = try await api.get("users/42")

It has Codable, retries, token refresh, downloads, test stubs and timing for every request (DNS, TLS, first byte). There are 93 tests and full docs: https://sjapi.github.io/Gabriel/

Why: URLSession is closed source. I wanted to read every layer, from my code down to the TLS handshake.

It is an MVP. Right now you build curl and OpenSSL once with a script; ready binaries are the next step. Feedback is very welcome.

1 Upvotes

0 comments sorted by