{"id":13995300,"url":"https://github.com/mattt/swift-registry","last_synced_at":"2025-07-22T21:32:31.415Z","repository":{"id":54372213,"uuid":"296143637","full_name":"mattt/swift-registry","owner":"mattt","description":"A reference implementation of the Swift Package Registry, written in Swift and using Git as a database / transparent log.","archived":true,"fork":false,"pushed_at":"2021-02-22T18:14:41.000Z","size":100,"stargazers_count":37,"open_issues_count":3,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-08-10T14:19:00.353Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-16T20:42:56.000Z","updated_at":"2024-06-21T17:50:09.000Z","dependencies_parsed_at":"2022-08-13T13:40:47.759Z","dependency_job_id":null,"html_url":"https://github.com/mattt/swift-registry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2Fswift-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2Fswift-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2Fswift-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2Fswift-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattt","download_url":"https://codeload.github.com/mattt/swift-registry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227177888,"owners_count":17743194,"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":[],"created_at":"2024-08-09T14:03:20.463Z","updated_at":"2024-11-29T17:31:25.118Z","avatar_url":"https://github.com/mattt.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# Swift Package Registry - Reference Implementation\n\nThis is a reference implementation for a package registry service,\nas described in [this proposal](https://github.com/apple/swift-evolution/pull/1179).\n\n## Requirements\n\n- macOS 10.14+\n- Swift 5.2+ (_install the latest version of Xcode_)\n- [Homebrew](https://brew.sh)\n- Docker* (_optional_)\n\n## Setup\n\nInstall the required system dependencies by running the following command:\n\n```terminal\n$ brew bundle\n```\n\n## Usage\n\nA command-line interface is provided in addition to the web server\nfor more convenient testing and debugging.\n\n### Server\n\nRun the following command to spin up a package registry locally.\n\n```terminal\n$ swift run registry serve --index path/to/index\n```\n\nA registry index (that is, a Git repository used as a database)\nwill be created at the specified path if one doesn't already exist there.\n\nYou can interact with the registry using `curl` or your REST client of choice.\n\n```terminal\n$ curl -H \"Accept: application/vnd.swift.registry.v1+json\" \\\n       \"http://localhost:8080/@Alamofire/Alamofire\"\n```\n\n### Command Line Interface\n\n```terminal\n$ swift run registry --help\nUSAGE: registry-command \u003csubcommand\u003e\n\nOPTIONS:\n  --version               Show the version.\n  -h, --help              Show help information.\n\nSUBCOMMANDS:\n  init                    Initializes a new registry at the specified path.\n  publish                 Creates a new release of a package.\n  serve                   Runs the registry web service locally.\n\n  See 'registry-command help \u003csubcommand\u003e' for detailed help.\n\n$ swift run registry init --index path/to/index\n$ swift run registry publish @Jounce/Surge 2.3.0 --index path/to/index\n$ swift run registry publish @Flight-School/Money 1.2.0 --index path/to/index\n$ swift run registry list --index path/to/index\n@flight-school/Money - 1.2.0\n@jounce/Surge - 2.3.0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2Fswift-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattt%2Fswift-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2Fswift-registry/lists"}