ChatGPT on your wrist, TV, and everything Apple makes
A SwiftUI demo app that stuffs LLM chat into every corner of Apple's ecosystem, from watch to TV.

What it does
This is a reference-grade SwiftUI app that wires ChatGPT and Google’s PaLM API into native interfaces for iOS, macOS, watchOS, and tvOS. It handles the full chat loop, renders markdown responses, and applies code syntax highlighting so answers don’t look like plain text vomit.
The interesting bit
The repo is really three projects in a trenchcoat: the app itself, a standalone ChatGPTSwift API client library, and GPTEncoder/GPTTokenizerUI for token counting with a GUI. That decomposition is the actual contribution — the app is essentially a living advertisement for the reusable pieces underneath.
Key highlights
- Supports both OpenAI ChatGPT API and Google PaLM/Generative AI SDK via SPM
- Markdown + code syntax highlighting in responses
- Four platform targets from a single SwiftUI codebase (in theory)
- Extractable API client library if you just want the networking layer
- Tokenizer utilities for counting GPT tokens before you burn cash on API calls
Caveats
- Requires bringing your own API keys; no key management or proxy layer mentioned
- README is thin on architecture details — unclear how much code is actually shared across watchOS and tvOS versus copy-paste
- Images hosted on Imageshack, which is a choice
Verdict
Grab this if you’re building a multi-platform SwiftUI app and want to see how someone else threaded LLM chat through Apple’s form-factor zoo. Skip it if you need a production-ready client; this is demo scaffolding with libraries attached.
Frequently asked
- What is alfianlosari/ChatGPTSwiftUI?
- A SwiftUI demo app that stuffs LLM chat into every corner of Apple's ecosystem, from watch to TV.
- Is ChatGPTSwiftUI open source?
- Yes — alfianlosari/ChatGPTSwiftUI is open source, released under the MIT license.
- What language is ChatGPTSwiftUI written in?
- alfianlosari/ChatGPTSwiftUI is primarily written in Swift.
- How popular is ChatGPTSwiftUI?
- alfianlosari/ChatGPTSwiftUI has 695 stars on GitHub.
- Where can I find ChatGPTSwiftUI?
- alfianlosari/ChatGPTSwiftUI is on GitHub at https://github.com/alfianlosari/ChatGPTSwiftUI.