{"id":17690552,"url":"https://github.com/slashmo/swift-fruitstore-example","last_synced_at":"2025-10-04T18:44:09.228Z","repository":{"id":113574808,"uuid":"359473108","full_name":"slashmo/swift-fruitstore-example","owner":"slashmo","description":"Server-Side Swift example application","archived":false,"fork":false,"pushed_at":"2021-04-19T18:15:43.000Z","size":18,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T14:56:52.645Z","etag":null,"topics":["async-await","logging","metrics","microservices","server-side-swift","swift-nio","tracing"],"latest_commit_sha":null,"homepage":"","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/slashmo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-19T13:39:26.000Z","updated_at":"2023-03-08T15:46:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"69d03b1f-4f7f-4519-bf2a-ef9a58232ff5","html_url":"https://github.com/slashmo/swift-fruitstore-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/slashmo/swift-fruitstore-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashmo%2Fswift-fruitstore-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashmo%2Fswift-fruitstore-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashmo%2Fswift-fruitstore-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashmo%2Fswift-fruitstore-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slashmo","download_url":"https://codeload.github.com/slashmo/swift-fruitstore-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashmo%2Fswift-fruitstore-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278358488,"owners_count":25973946,"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-04T02:00:05.491Z","response_time":63,"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":["async-await","logging","metrics","microservices","server-side-swift","swift-nio","tracing"],"created_at":"2024-10-24T11:51:10.710Z","updated_at":"2025-10-04T18:44:09.186Z","avatar_url":"https://github.com/slashmo.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server-Side Swift Example: FruitStore\n\nThis repo contains an example that showcases various aspects of the Server-Side Swift ecosystem.\nIt's a microservices-oriented set of APIs, instrumented using [Logging](https://github.com/apple/swift-log),\n[Metrics](https://github.com/apple/swift-metrics),\nand [Distributed Tracing](https://github.com/apple/swift-distributed-tracing).\n\n## Running locally\n\nEach service is contained in its own Swift package, located under `/services/\u003cservice-name\u003e`.\n\n### Docker 🐳\n\nTraces are exported to an OpenTelemetry Collector running in a Docker container, and visualized via Jaeger.\nBoth of these containers may be started through [`docker-compose.yaml`](docker-compose.yaml):\n\n```bash\ndocker-compose up -d\n```\n\n### ⚠️ Latest Swift Toolchain\n\nThis example makes use of yet to be release Swift features such as async/await and task locals.\nTherefore you'll need to have the latest development snapshot of Swift installed on a Mac.\n\nYou also need to specify the `DYLD_LIBRARY_PATH` to be able to run the executables:\n\n```bash\nexport DYLD_LIBRARY_PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/lib/swift/macosx\n```\n\nTo run the `Storage` service, build and execute `storagectl`:\n\n```bash\ncd services/storage\nswift build \u0026\u0026 ./.build/debug/storagectl serve --log-level trace\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashmo%2Fswift-fruitstore-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslashmo%2Fswift-fruitstore-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashmo%2Fswift-fruitstore-example/lists"}