Skip to content

Jev directory

TypeSafe AI Swift SDK

A dependency-free Swift 6 client for the TypeSafe AI System One API, ported from the official JavaScript and Python SDKs, with Choice, Score, and Noul questions, strict concurrency, and configurable retries.
Stars
5
Language
Swift
License
MIT
Reading time
3 min
Published by
Community
Author
alterhq
Last verified
Sep 2026

About this project

A dependency-free Swift 6 client for the TypeSafe AI API, ported from the official JavaScript and Python SDKs. The package supports macOS 13+, iOS/iPadOS 16+, tvOS 16+, and watchOS 9+. It uses strict Swift 6 concurrency, URLSession, Codable, and native task cancellation. Add the package to your Package.swift:

Quoted from the project's README. Read the full README.

Highlights

  • Supports macOS 13+, iOS/iPadOS 16+, tvOS 16+, and watchOS 9+ with strict Swift 6 concurrency and native task cancellation.
  • Recommended production setup points the typed client at your own authenticated backend, which holds the API key.
  • Direct API-key mode is for local development and is blocked by default on iOS/iPadOS, tvOS, and watchOS.
  • An async access-token provider is resolved again on every retry, so an expired session can refresh mid-request.
  • Tests inject an HTTPTransport fixture and run with swift test, without an API key.

Watch out

MIT-licensed. Direct API-key mode is intended only for quick local development; production Apple apps should proxy through a backend, and live integration testing is deferred until an API key is available.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

X: A computer assistant that listens

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai