https://github.com/yohannescodes/clariokit
a Swift framework for intelligent document analysis/text operation powered by on-device and cloud-based AI models.
https://github.com/yohannescodes/clariokit
ai apple foundationmodels gemini swift swiftpackagemanager xcframework xcode
Last synced: 8 months ago
JSON representation
a Swift framework for intelligent document analysis/text operation powered by on-device and cloud-based AI models.
- Host: GitHub
- URL: https://github.com/yohannescodes/clariokit
- Owner: yohannescodes
- License: mit
- Created: 2025-07-07T16:50:49.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-07-07T20:06:31.000Z (9 months ago)
- Last Synced: 2025-07-12T08:02:02.314Z (8 months ago)
- Topics: ai, apple, foundationmodels, gemini, swift, swiftpackagemanager, xcframework, xcode
- Language: Swift
- Homepage: https://www.yohannescodes.com
- Size: 23.4 KB
- Stars: 17
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ClarioKit
ClarioKit is a Swift package for iOS that enables intelligent document understanding through summarization, key point extraction, language translation, and structured parsing. It aims to support plain text, PDF, .docx, and other rich formats using both cloud-based LLMs (like Gemini and GPT) and on-device Foundation Models (iOS 26+)
## Features
- ✨ Summarization with Google Gemini API
- 🧠 Summarization with Apple Foundation Models (iOS 26+, coming September)
- ✅ Easy to use, async/await-powered API
## Installation
Add the package to your project using Swift Package Manager:
```
https://github.com/yohannescodes/ClarioKit.git
```
## Usage
After installing the Swift package from Swift Package Manager, you can use ClarioKit by importing it into the specific Swift file where you want document summarization to happen.
```
import ClarioKit
```
The next step is to instantiate ClarioKit's engine by specifying the model of your choice.
```
let clario = ClarioEngine(model: .gemini(apiKey: "YOUR GEMINI API KEY")
```
Initialize the ClarioDocument from the user's upload or document picker.
```
let documentType = DocumentType.pdf(url)
do {
let doc = try ClarioDocument(from: documentType)
let summary = try await clario.summarize(document: doc)
print(summary)
} catch {
print("Error")
}
```
## What is next?
- 📄 DocX support
- ⚪️ Key points extraction
- 🌍 Document Content Translation
## License
MIT
---
Built with care by [@yohannescodes](https://github.com/yohannescodes)