{"id":50787965,"url":"https://github.com/vkrychun/stem-examples-swift","last_synced_at":"2026-06-12T09:04:38.046Z","repository":{"id":356558893,"uuid":"1213796523","full_name":"vkrychun/stem-examples-swift","owner":"vkrychun","description":"Native iOS apps generated by AI from StemJSON, rendered by StemRuntimeSDK.","archived":false,"fork":false,"pushed_at":"2026-05-08T14:58:54.000Z","size":2611,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-08T17:28:05.224Z","etag":null,"topics":["ai","declarative-ui","demo","examples","firebase","ios","stemjson","swift","swiftui","uikit"],"latest_commit_sha":null,"homepage":"https://stemjson.com","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/vkrychun.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-17T19:16:21.000Z","updated_at":"2026-05-08T14:58:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vkrychun/stem-examples-swift","commit_stats":null,"previous_names":["vkrychun/stem-examples-swift"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vkrychun/stem-examples-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkrychun%2Fstem-examples-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkrychun%2Fstem-examples-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkrychun%2Fstem-examples-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkrychun%2Fstem-examples-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vkrychun","download_url":"https://codeload.github.com/vkrychun/stem-examples-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vkrychun%2Fstem-examples-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34236583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["ai","declarative-ui","demo","examples","firebase","ios","stemjson","swift","swiftui","uikit"],"created_at":"2026-06-12T09:04:37.547Z","updated_at":"2026-06-12T09:04:38.026Z","avatar_url":"https://github.com/vkrychun.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StemJSON Examples\n\n**Native iOS UI/UX, generated by AI.** A set of runnable iOS demos that show **StemJSON** in practice — the new JSON-based language AI writes, rendered as native SwiftUI by **StemRuntimeSDK**.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/media/hero.gif\" alt=\"Demo of StemJSON-generated iOS UI/UX\" width=\"320\" /\u003e\n\u003c/p\u003e\n\n## The idea\n\nEvery module in this repo was produced through AI-assisted authoring — human-designed prompts, human selection among candidate outputs, and human editorial curation of the final JSON. [StemJSON](https://github.com/vkrychun/StemJSON/blob/main/spec/v1.0.md) is a declarative JSON DSL designed to be *written by an LLM* and rendered as native SwiftUI by [StemRuntimeSDK](https://github.com/vkrychun/stem-runtime-swift). No web views, no React Native, no JavaScript bridge.\n\nPoint an AI at the [LLM spec](https://github.com/vkrychun/StemJSON/blob/main/spec/v1.0-ai.md) (or the [full spec](https://github.com/vkrychun/StemJSON/blob/main/spec/v1.0.md) for human context). Ask for the UI/UX you want. Drop the output into this workspace. Run it.\n\n## Demos at a glance\n\n| Project | What it is |\n|---|---|\n| [**StemQuickStart**](StemQuickStart/) | ~20 lines of Swift. Counter + text binding. Copy this to start. |\n| [**StemSwiftUI**](StemSwiftUI/) | Full showcase — every module type rendered modally. |\n| [**StemUIKit**](StemUIKit/) | Same modules, UIKit host. |\n| [**StemHome**](StemHome/) ⭐ | Native SwiftUI + StemJSON **mixed in the same app** with bidirectional state. |\n\n### ⭐ Start with StemHome\n\nThe demo that answers: **can AI-generated UI coexist with hand-written SwiftUI in the same app?** Yes — and this shows how.\n\nNative SwiftUI tabs alongside an LLM-generated StemJSON module, sharing state bidirectionally. Tap a native toggle → the JSON module receives it via `onCustom` and updates declaratively. Change JSON state → the native view reads it back through `runtime.subscribe` and re-renders. `runtime.trigger()` from Swift, `runtime.subscribe()` back — no bridge, no serialization per call, no polling.\n\nThe point: **you don't have to choose.** Let the AI generate the feature surface; keep the critical paths in the Swift code you wrote. Both live in the same screen, backed by the same state.\n\nFor a per-module breakdown — what each JSON demonstrates and any external setup — see [`StemJSON/MODULES.md`](StemJSON/MODULES.md).\n\n## Run it\n\n```bash\ngit clone https://github.com/vkrychun/stem-examples-swift.git\ncd stem-examples-swift\nopen StemExamples.xcworkspace\n```\n\nIn Xcode: pick a scheme, set your signing team (empty by default), run on a simulator or device. **iOS 18+**.\n\n\u003e Note: on physical devices, the freeware tier of StemRuntimeSDK displays a small \"Powered by StemJSON\" notice on rendered surfaces. This is removable under the paid SDK licence; see the [StemRuntimeSDK EULA](https://github.com/vkrychun/stem-runtime-swift/blob/main/LICENSE).\n\n## Firebase (optional, for Messenger)\n\n1. Create a Firebase project at [console.firebase.google.com](https://console.firebase.google.com), enable Firestore.\n2. Drop `GoogleService-Info.plist` into `StemSwiftUI/StemSwiftUI/` (already `.gitignore`d) — **or** paste project ID + API key into the Messenger settings sheet at runtime.\n\nOther demos have no external dependencies.\n\n## Learn more\n\n- [**StemJSON spec**](https://github.com/vkrychun/StemJSON/blob/main/spec/v1.0.md) — human-readable language specification.\n- [**StemJSON — LLM reference**](https://github.com/vkrychun/StemJSON/blob/main/spec/v1.0-ai.md) — condensed reference optimised for LLM prompts.\n- [**StemRuntimeSDK**](https://github.com/vkrychun/stem-runtime-swift) — the Swift runtime that renders it.\n\n## License\n\nThe example code in this repository — Swift sources and JSON modules — is released under the [MIT License](LICENSE). Copy, adapt, ship.\n\nThe two projects this repo links against are governed by their own licenses:\n\n- [**StemJSON specification**](https://github.com/vkrychun/StemJSON) — OWFa 1.0 with an additional attribution requirement.\n- [**StemRuntimeSDK**](https://github.com/vkrychun/stem-runtime-swift) — its own End-User License Agreement.\n\nIf you redistribute or adapt the JSON modules in a product that implements StemJSON, the spec's attribution requirement still applies (see the [StemJSON LICENSE](https://github.com/vkrychun/StemJSON/blob/main/LICENSE)).\n\n---\n\n*StemJSON specification created by Vasyl Krychun — https://stemjson.com*\n\n\"StemJSON\", \"StemRuntimeSDK\", \"StemRuntime\", and the StemJSON logo are trademarks of Vasyl Krychun. See the [StemJSON trademark policy](https://github.com/vkrychun/StemJSON/blob/main/TRADEMARK_POLICY.md) for permitted uses.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvkrychun%2Fstem-examples-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvkrychun%2Fstem-examples-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvkrychun%2Fstem-examples-swift/lists"}