{"id":29410980,"url":"https://github.com/yohannescodes/clariokit","last_synced_at":"2025-07-14T13:02:15.744Z","repository":{"id":303591142,"uuid":"1015540399","full_name":"yohannescodes/ClarioKit","owner":"yohannescodes","description":"a Swift framework for intelligent document analysis/text operation powered by on-device and cloud-based AI models.","archived":false,"fork":false,"pushed_at":"2025-07-07T20:06:31.000Z","size":24,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-12T08:02:02.314Z","etag":null,"topics":["ai","apple","foundationmodels","gemini","swift","swiftpackagemanager","xcframework","xcode"],"latest_commit_sha":null,"homepage":"https://www.yohannescodes.com","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yohannescodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-07T16:50:49.000Z","updated_at":"2025-07-09T05:18:54.000Z","dependencies_parsed_at":"2025-07-11T07:23:33.717Z","dependency_job_id":"fb46d86a-22d6-42f3-80fd-56dc8ef978c9","html_url":"https://github.com/yohannescodes/ClarioKit","commit_stats":null,"previous_names":["yohannescodes/clariokit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yohannescodes/ClarioKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yohannescodes%2FClarioKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yohannescodes%2FClarioKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yohannescodes%2FClarioKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yohannescodes%2FClarioKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yohannescodes","download_url":"https://codeload.github.com/yohannescodes/ClarioKit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yohannescodes%2FClarioKit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264958623,"owners_count":23689035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","apple","foundationmodels","gemini","swift","swiftpackagemanager","xcframework","xcode"],"created_at":"2025-07-11T07:10:32.385Z","updated_at":"2025-07-13T12:02:09.140Z","avatar_url":"https://github.com/yohannescodes.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ClarioKit\n\nClarioKit 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+)\n\n## Features\n\n- ✨ Summarization with Google Gemini API\n- 🧠 Summarization with Apple Foundation Models (iOS 26+, coming September)\n- ✅ Easy to use, async/await-powered API\n\n## Installation\n\nAdd the package to your project using Swift Package Manager:\n\n```\nhttps://github.com/yohannescodes/ClarioKit.git\n```\n## Usage\n\nAfter 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.\n\n```\nimport ClarioKit\n```\nThe next step is to instantiate ClarioKit's engine by specifying the model of your choice.\n\n```\nlet clario = ClarioEngine(model: .gemini(apiKey: \"YOUR GEMINI API KEY\")\n\n```\nInitialize the ClarioDocument from the user's upload or document picker.\n\n```\n   let documentType = DocumentType.pdf(url)\n   do {\n            let doc = try ClarioDocument(from: documentType)\n            let summary = try await clario.summarize(document: doc)\n            print(summary)  \n    } catch {\n            print(\"Error\")\n    }\n```\n\n## What is next?\n\n- 📄 DocX support\n- ⚪️ Key points extraction\n- 🌍 Document Content Translation\n\n## License\n\nMIT\n\n---\n\nBuilt with care by [@yohannescodes](https://github.com/yohannescodes)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyohannescodes%2Fclariokit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyohannescodes%2Fclariokit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyohannescodes%2Fclariokit/lists"}