{"id":17874246,"url":"https://github.com/jomy10/snakeswift","last_synced_at":"2025-03-21T22:31:50.014Z","repository":{"id":43114988,"uuid":"469787367","full_name":"Jomy10/SnakeSwift","owner":"Jomy10","description":"Snake game written in Swift. Runs on any browser using WebAssembly and on macOS with SwiftUI.","archived":false,"fork":false,"pushed_at":"2022-03-17T21:53:51.000Z","size":14716,"stargazers_count":12,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T11:52:04.082Z","etag":null,"topics":["mac","macos","snake-game","swift","swiftui","swiftwasm","tokamak","wasi","wasm","webassembly"],"latest_commit_sha":null,"homepage":"https://snake.jonaseveraert.be","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/Jomy10.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":"2022-03-14T15:13:32.000Z","updated_at":"2024-12-03T06:50:51.000Z","dependencies_parsed_at":"2022-09-07T19:50:14.514Z","dependency_job_id":null,"html_url":"https://github.com/Jomy10/SnakeSwift","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2FSnakeSwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2FSnakeSwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2FSnakeSwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jomy10%2FSnakeSwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jomy10","download_url":"https://codeload.github.com/Jomy10/SnakeSwift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880307,"owners_count":20525506,"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":["mac","macos","snake-game","swift","swiftui","swiftwasm","tokamak","wasi","wasm","webassembly"],"created_at":"2024-10-28T11:08:10.309Z","updated_at":"2025-03-21T22:31:48.683Z","avatar_url":"https://github.com/Jomy10.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snake Game\n\nSnake game built using Swift, playable on any browser using WebAssembly and on macOS.\n\n## Browser\nUI built using [Tokamak](https://github.com/TokamakUI/Tokamak), which is a SwiftUI compatible framework for WebAssembly. Interaction with the DOM is done through [JavaScriptKit](https://github.com/swiftwasm/JavaScriptKit). Built and bundles using [Carton](https://github.com/swiftwasm/carton).\n\nSource code for the browser UI in [WebApp](WebApp).\n\n## macOS\nSince Tokamak is a SwiftUI compatible framework, a Mac app can be easily created without too much adjustments.\n\nSource code for the mac version in [SnakeMacApp](SnakeWebApp).\n\n## Core library\nThe core library contains all the game logic. This imports TokamakShim, which uses SwiftUI for compatible platforms, TokamakDOM for web and TokamakGTK for Linux. Using conditional compilation (`#if`), platform-specific functions are handled (e.g. using Foundation for macOS and JavaScriptKit for the web).\n\n## Contributing\nIf you find any bugs or have any improvement suggestions, please open an issue first. If you get green light, you can open a pull request.\n\nIf you want to work on any open issues, just comment on the issue with your intentions. If you end up not working not working on it anymore, please comment again.\n\n## License\nLicensed under MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomy10%2Fsnakeswift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjomy10%2Fsnakeswift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjomy10%2Fsnakeswift/lists"}