{"id":26183825,"url":"https://github.com/nathanborror/swift-mlx-kit","last_synced_at":"2026-04-18T20:32:49.867Z","repository":{"id":278943460,"uuid":"935873486","full_name":"nathanborror/swift-mlx-kit","owner":"nathanborror","description":"An easy way to use the Apple MLX framework in Swift.","archived":false,"fork":false,"pushed_at":"2025-04-17T22:36:39.000Z","size":2641,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-18T12:24:20.996Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nathanborror.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-02-20T06:47:00.000Z","updated_at":"2025-04-17T22:36:42.000Z","dependencies_parsed_at":"2025-02-22T18:23:52.524Z","dependency_job_id":"5a9993bd-afe1-4d74-9865-ebc0814bed6a","html_url":"https://github.com/nathanborror/swift-mlx-kit","commit_stats":null,"previous_names":["nathanborror/swift-mlx-kit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nathanborror/swift-mlx-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fswift-mlx-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fswift-mlx-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fswift-mlx-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fswift-mlx-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathanborror","download_url":"https://codeload.github.com/nathanborror/swift-mlx-kit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fswift-mlx-kit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31984133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"ssl_error","status_checked_at":"2026-04-18T20:23:29.375Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-03-11T22:49:22.891Z","updated_at":"2026-04-18T20:32:49.860Z","avatar_url":"https://github.com/nathanborror.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"Images/Animal.png\" width=\"256\"\u003e\n\n# Swift MLXKit\n\nAn unofficial Swift client library for interacting with [Apple's MLX framework](https://opensource.apple.com/projects/mlx).\n\n## Requirements\n\n- Swift 6+\n- iOS 17+\n- macOS 15+\n\n## Installation\n\nAdd the following to your `Package.swift` file:\n\n```swift\nPackage(\n    dependencies: [\n        .package(url: \"https://github.com/nathanborror/swift-mlx-kit\", branch: \"main\"),\n    ],\n    targets: [\n        .target(\n            name: \"YourApp\",\n            dependencies: [\n                .product(name: \"MLXKit\", package: \"swift-mlx-kit\"),\n            ]\n        ),\n    ]\n)\n```\n\n## Usage\n\n### Chat Completion\n\n```swift\nimport OpenAI\n\nlet client = Client()\n\nlet req = ChatRequest(\n    messages: [.init(role: .user, content: \"Hello, OpenAI!\")],\n    model: \"mlx-community/Llama-3.2-1B-Instruct-4bit\"\n)\n\ndo {\n    let response = try await client.chatCompletions(request)\n    print(response)\n} catch {\n    print(error)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanborror%2Fswift-mlx-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanborror%2Fswift-mlx-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanborror%2Fswift-mlx-kit/lists"}