{"id":14015683,"url":"https://github.com/sidepelican/WasmCallableKit","last_synced_at":"2025-07-25T10:31:42.376Z","repository":{"id":107964724,"uuid":"481922091","full_name":"sidepelican/WasmCallableKit","owner":"sidepelican","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-26T11:40:54.000Z","size":76,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T13:01:50.336Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sidepelican.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}},"created_at":"2022-04-15T10:27:19.000Z","updated_at":"2024-08-01T16:18:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"ebfc5d5b-a914-49e9-8a67-4feb23ab2545","html_url":"https://github.com/sidepelican/WasmCallableKit","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/sidepelican/WasmCallableKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidepelican%2FWasmCallableKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidepelican%2FWasmCallableKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidepelican%2FWasmCallableKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidepelican%2FWasmCallableKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidepelican","download_url":"https://codeload.github.com/sidepelican/WasmCallableKit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidepelican%2FWasmCallableKit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266990931,"owners_count":24017732,"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-07-25T02:00:09.625Z","response_time":70,"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":[],"created_at":"2024-08-11T03:01:21.760Z","updated_at":"2025-07-25T10:31:42.021Z","avatar_url":"https://github.com/sidepelican.png","language":"Swift","readme":"# WasmCallableKit\n\nUse Swift library in TypeScript through WebAssembly!\n\n## Example\n\nA Swift class \n\n```swift\npublic enum FenceOrientation: String, Codable {\n    case horizontal\n    case vertical\n}\n\npublic struct FencePoint: Codable {\n    public var x: Int\n    public var y: Int\n    public var orientation: FenceOrientation\n}\n\npublic struct Board: Codable {\n    ...\n    public var fences: [FencePoint]\n}\n\npublic class QuoridorGame {\n    private var state: ...\n    public init() {}\n\n    public func putFence(position: FencePoint) throws { ... }\n    public func currentBoard() -\u003e Board { ... }\n}\n```\n\nCan be used in TypeScript using WasmCallableKit.\n\n```ts\nconst game = new QuoridorGame();\ngame.putFence({\n    x: 1, y: 4, orientation: \"horizontal\"\n});\nconst board = game.currentBoard();\nboard.fences.map(...);\n```\n\n## Setup\n\nIt is recommended to undestand SwiftWasm book deeply.\nhttps://book.swiftwasm.org\n\n\n🚧 WIP 🚧\n\nYou can see [example](https://github.com/sidepelican/WasmCallableKit/tree/main/example) project to understand basic usage.\n","funding_links":[],"categories":["Swift"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidepelican%2FWasmCallableKit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsidepelican%2FWasmCallableKit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidepelican%2FWasmCallableKit/lists"}