{"id":33589332,"url":"https://github.com/adobe/swan","last_synced_at":"2026-04-13T02:14:36.138Z","repository":{"id":311562333,"uuid":"1042836135","full_name":"adobe/swan","owner":"adobe","description":"A cross-platform Swift API for WebGPU","archived":false,"fork":false,"pushed_at":"2026-04-02T03:30:48.000Z","size":14361,"stargazers_count":27,"open_issues_count":8,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-03T06:46:13.985Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adobe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"COPYRIGHT","agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-08-22T16:51:41.000Z","updated_at":"2026-04-02T03:28:40.000Z","dependencies_parsed_at":"2025-08-25T09:23:50.130Z","dependency_job_id":"ae71371f-2d69-4781-bdac-b63d2eda2e1a","html_url":"https://github.com/adobe/swan","commit_stats":null,"previous_names":["adobe/swan"],"tags_count":176,"template":false,"template_full_name":null,"purl":"pkg:github/adobe/swan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fswan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fswan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fswan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fswan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adobe","download_url":"https://codeload.github.com/adobe/swan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adobe%2Fswan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31736791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T22:19:12.206Z","status":"online","status_checked_at":"2026-04-13T02:00:06.623Z","response_time":93,"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":"2025-11-29T14:04:26.488Z","updated_at":"2026-04-13T02:14:36.113Z","avatar_url":"https://github.com/adobe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swan\n\n---\n\n## ⚠️ WARNINGS\n\n\u003e [!WARNING]\n\u003e **This project is not ready for use.** It is currently under development and intended only for feedback and experimentation.\n\n\u003e [!IMPORTANT]\n\u003e **Swift Requirement:** You must use a recent mainline build of Swift. This project may not work with released versions of Swift.\n\n---\n\n## Swift WebGPU Bindings for Dawn and Web\n\nA set of Swift APIs for using WebGPU across multiple platforms.\n\n## Goals\n\nThe goal is to be able to write GPU code, using Swift, that works everywhere, including\n(eventually) the web.\n\nThe initial implementation is a Swift binding to Google's Dawn library.\n\n## Non-Goals\n\nSwan is not intended to be a full rendering engine. It does not provide any rendering\nprimitives beyond what is in WebGPU spec. For example, we do not specify a 4x4 matrix\nimplementation, although we may use one in our examples.\n\n### Quick Start\n\nThe following snippet shows how to add Swan to your Swift package:\n\n```swift\n// swift-tools-version: 6.1\nimport PackageDescription\n\nlet package = Package(\n    name: \"YourApp\",\n    dependencies: [\n        .package(url: \"https://github.com/adobe/swan\", from: \"0.0.1\")\n    ],\n    targets: [\n        .target(\n            name: \"YourApp\",\n            dependencies: [\n                .product(name: \"Logging\", package: \"swan\")\n            ]\n        )\n    ]\n)\n```\n\n### Usage\n\nYou can run the demos by:\n\n```sh\nswift run GameOfLife\nswift run BitonicSort\n```\n\n### Updating Dawn\n\nMore docs to come...\n\n```sh\nswift package plugin --allow-writing-to-package-directory generate-dawn-bindings-swift\nswift package plugin --allow-writing-to-package-directory generate-dawn-apinotes\n```\n\n### Alternatives\n\n- [swift-webgpu](https://github.com/henrybetts/swift-webgpu) is another binding\n  for WebGPU that takes a different approach.\n\n  |                               | swift-webgpu                                         | swift-wgpu (this project)                                                                           |\n  | ----------------------------- | ---------------------------------------------------- | --------------------------------------------------------------------------------------------------- |\n  | Dawn binding generation       | Swift code generated from dawn.json acts as wrappers | C headers from Dawn are used directly in conjunction with an apinotes file generated from dawn.json |\n  | JavaScript binding generation | N/A                                                  | In progress                                                                                         |\n\n### Contributing\n\nContributions are welcomed! Read the [Contributing Guide](./.github/CONTRIBUTING.md) for more information.\n\n### Licensing\n\nThis project is licensed under the BSD 3-Clause License. See [LICENSE](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadobe%2Fswan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadobe%2Fswan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadobe%2Fswan/lists"}