{"id":44468464,"url":"https://github.com/yapstudios/metabind-sample-retail-apple","last_synced_at":"2026-02-12T20:38:18.353Z","repository":{"id":333808607,"uuid":"1119054260","full_name":"yapstudios/metabind-sample-retail-apple","owner":"yapstudios","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-30T17:16:48.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-31T10:19:42.152Z","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/yapstudios.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-18T17:08:42.000Z","updated_at":"2026-01-30T17:16:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/yapstudios/metabind-sample-retail-apple","commit_stats":null,"previous_names":["yapstudios/metabind-sample-retail-apple"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yapstudios/metabind-sample-retail-apple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yapstudios%2Fmetabind-sample-retail-apple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yapstudios%2Fmetabind-sample-retail-apple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yapstudios%2Fmetabind-sample-retail-apple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yapstudios%2Fmetabind-sample-retail-apple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yapstudios","download_url":"https://codeload.github.com/yapstudios/metabind-sample-retail-apple/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yapstudios%2Fmetabind-sample-retail-apple/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29380607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T20:34:40.886Z","status":"ssl_error","status_checked_at":"2026-02-12T20:23:00.490Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2026-02-12T20:38:17.567Z","updated_at":"2026-02-12T20:38:18.349Z","avatar_url":"https://github.com/yapstudios.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Metabind Sample Retail\n\nA minimal SwiftUI sample app demonstrating how to integrate the Metabind SDK into an iOS application.\n\n## Overview\n\nThis project provides a starting point for building iOS apps with server-driven UI powered by Metabind. It shows the essential steps for initializing the Metabind client, displaying content, and handling navigation between pages.\n\n## Requirements\n\n- Xcode 15.0 or later\n- iOS 17.0 or later\n- A Metabind account with valid API credentials\n\n## Getting Started\n\n1. Clone or download this repository.\n2. Open `MetabindSampleRetail.xcodeproj` in Xcode.\n3. In `MetabindSampleRetailApp.swift`, replace the placeholder values with your credentials from the [Metabind dashboard](https://metabind.ai):\n   - `apiKey`\n   - `organizationId`\n   - `projectId`\n   - `contentId` (for your root content page)\n4. Build and run the app on a simulator or device.\n\n## Project Structure\n\n```\nMetabindSampleRetail/\n├── MetabindSampleRetailApp.swift   # App entry point and main content view\n└── Assets.xcassets/                # App icons and colors\n```\n\n## Key Concepts\n\n### Client Initialization\n\nThe `MetabindClient` is initialized with your API credentials and injected into the SwiftUI environment:\n\n```swift\n@State var client = MetabindClient(\n    url: URL(string: \"https://api.metabind.ai/graphql\")!,\n    ws: URL(string: \"wss://ws-api.metabind.ai\")!,\n    apiKey: \"your-api-key\",\n    organizationId: \"your-org-id\",\n    projectId: \"your-project-id\"\n)\n```\n\n### Displaying Content\n\nUse `MetabindView` to render content by its ID:\n\n```swift\nMetabindView(contentId: \"your-content-id\")\n```\n\n### Handling Navigation\n\nListen for `metabind.content` actions to navigate between content pages:\n\n```swift\n.onMetabindAction { action in\n    if action.name == \"metabind.content\",\n       let contentId = action.props[\"contentId\"] as? String {\n        path.append(Destination.content(id: contentId))\n    }\n}\n```\n\n## Resources\n\n- [Metabind Documentation](https://docs.metabind.ai)\n- [Metabind Dashboard](https://metabind.ai)\n\n## License\n\nThis sample code is provided for demonstration purposes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyapstudios%2Fmetabind-sample-retail-apple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyapstudios%2Fmetabind-sample-retail-apple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyapstudios%2Fmetabind-sample-retail-apple/lists"}