{"id":32148977,"url":"https://github.com/kiliankoe/swiftlibrary","last_synced_at":"2025-10-21T09:28:45.081Z","repository":{"id":63914709,"uuid":"98121548","full_name":"kiliankoe/SwiftLibrary","owner":"kiliankoe","description":"🔍 Search for swift packages right from your command line","archived":true,"fork":false,"pushed_at":"2019-09-03T12:55:00.000Z","size":343,"stargazers_count":84,"open_issues_count":7,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-09-20T19:36:05.068Z","etag":null,"topics":["cli","swift","swift-package","swift-package-manager","swift-subcommand"],"latest_commit_sha":null,"homepage":"","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/kiliankoe.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}},"created_at":"2017-07-23T19:49:55.000Z","updated_at":"2024-08-28T03:22:30.000Z","dependencies_parsed_at":"2023-01-14T13:31:02.068Z","dependency_job_id":null,"html_url":"https://github.com/kiliankoe/SwiftLibrary","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/kiliankoe/SwiftLibrary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2FSwiftLibrary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2FSwiftLibrary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2FSwiftLibrary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2FSwiftLibrary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiliankoe","download_url":"https://codeload.github.com/kiliankoe/SwiftLibrary/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiliankoe%2FSwiftLibrary/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280235671,"owners_count":26295748,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","swift","swift-package","swift-package-manager","swift-subcommand"],"created_at":"2025-10-21T09:28:39.544Z","updated_at":"2025-10-21T09:28:45.071Z","avatar_url":"https://github.com/kiliankoe.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![header](https://user-images.githubusercontent.com/2625584/63201247-a94b2100-c084-11e9-960e-b3c479dd4afe.png)\n\nSwiftLibrary is intended to be the quickest way to search for packages in the Swift ecosystem. By design, Swift pulls dependencies from any git repo, most of which are hosted on GitHub, but distributed amongst many thousands of users. This is fantastic to work with, but what it gains in ease of use, this method definitely lacks in discoverability.\n\nFortunately, projects like [swiftpm.co](https://swiftpm.co) (big thanks to [Dave Verwer](https://daveverwer.com)!) exist, which is a relatively new and growing index of Swift packages. Using SwiftLibrary you can search that index directly from your CLI and quickly find the package you're looking for.\n\n\n## Installation\n\n```\n$ brew tap kiliankoe/formulae\n$ brew install swiftlibrary\n```\n\nSwiftLibrary conveniently installs as `swift-library` which enables you to just call it as if it were a subcommand on swift itself as `swift library ...`. See the usage examples below for more.\n\nYou can of course also install SwiftLibrary manually.\n\n```\n$ git clone https://github.com/kiliankoe/SwiftLibrary\n$ cd SwiftLibrary\n$ swift build -c release\n$ cp .build/release/swift-library /usr/local/bin/swift-library\n```\n\n\n\n## Usage\n\nSwiftLibrary exposes a handful of commands. Their use is probably best shown with a few examples.\n\n#### Searching for packages\n\n```\n$ swift library search yaml\n- behrang/YamlSwift\n  https://github.com/behrang/YamlSwift.git\n  Load YAML and JSON documents using Swift\n- jpsim/Yams\n  https://github.com/jpsim/Yams.git\n  A Sweet and Swifty YAML parser.\n...\n```\n\n#### Getting info on a package\n\n```\n$ swift library info yams\njpsim/Yams 2.0.0\nA Sweet and Swifty YAML parser.\n\n407 stargazers\n407 watchers\n\nLicensed under MIT.\nSupports Swift 5, 4.2, 4.\nLast released: 4 months ago.\nContains 1 library/libraries.\nContains 0 executable(s).\n```\n\nYou can also run `swift library home yams` to directly open the homepage to a specific package in your browser. You may know this feature from homebrew.\n\n#### Adding a package\n\n```\n$ swift library add yams\nYour clipboard has been updated, just add it to your package manifest.\n```\n\nFor the time being SwiftLibrary will not edit your manifest directly, but add everything you need to your clipboard so you can paste it directly into your package manifest.\n\nIt's also possible to add a specific version or other requirement. All you have to do is add `@requirement` to the end of the package. This syntax may feel familiar if you've used npm. The following all work.\n\n````shell\n$ swift library add yams@2.0.0\n$ swift library add yams@tag:2.0.0 # same as above\n$ swift library add yams@version:2.0.0 # same as above\n$ swift library add yams@branch:master\n$ swift library add yams@revision:c947a30\n$ swift library add yams@commit:c947a30 # same as above\n````\n\n\n\nFor convenience a shorthand syntax for the available commands is also available. You can use `s` instead of `search`, `i` instead of `info`, `h` instead of `home` and `a` or `+` instead of `add`.\n\n\n\n## Questions or Feedback\n\nDid you run into any issues or have questions? Please don't hesitate to [open an issue](https://github.com/kiliankoe/SwiftLibrary/issues/new) or find me [@kiliankoe](https://twitter.com/kiliankoe) on Twitter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiliankoe%2Fswiftlibrary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiliankoe%2Fswiftlibrary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiliankoe%2Fswiftlibrary/lists"}