{"id":32149003,"url":"https://github.com/coughski/actionbuilder","last_synced_at":"2026-02-21T03:02:25.853Z","repository":{"id":63907244,"uuid":"486028625","full_name":"coughski/ActionBuilder","owner":"coughski","description":"Compose SpriteKit animations quickly in a declarative SwiftUI-style","archived":false,"fork":false,"pushed_at":"2022-05-05T00:59:21.000Z","size":10,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-15T02:36:03.365Z","etag":null,"topics":["animation","declarative","dsl","functionbuilder","gamedev","resultbuilder","skaction","spritekit","swift","swiftpackage"],"latest_commit_sha":null,"homepage":"","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/coughski.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-04-27T03:14:54.000Z","updated_at":"2025-10-14T17:54:28.000Z","dependencies_parsed_at":"2022-11-28T22:50:34.369Z","dependency_job_id":null,"html_url":"https://github.com/coughski/ActionBuilder","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/coughski/ActionBuilder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coughski%2FActionBuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coughski%2FActionBuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coughski%2FActionBuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coughski%2FActionBuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coughski","download_url":"https://codeload.github.com/coughski/ActionBuilder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coughski%2FActionBuilder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29672261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"online","status_checked_at":"2026-02-21T02:00:07.432Z","response_time":107,"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":["animation","declarative","dsl","functionbuilder","gamedev","resultbuilder","skaction","spritekit","swift","swiftpackage"],"created_at":"2025-10-21T09:30:19.134Z","updated_at":"2026-02-21T03:02:25.848Z","avatar_url":"https://github.com/coughski.png","language":"Swift","readme":"# ActionBuilder\n\n**Caveat developer**: As this package is pre-release, the API may change significantly without notice. It has not been tested, so use it at your own risk.\n\nActionBuilder allows you to write SpriteKit animations in a more succinct, declarative manner. It consists of various structs representing basic animations like `Scale` and `Rotate`.\n\nAn animation created with ActionBuilder:\n```swift\nlet emote =\nSequence {\n    Group {\n        FadeIn(duration: 0.7)\n        Scale(by: 1.5, duration: 0.7)\n        Move(to: (0, 30), duration: 0.7)\n    }\n    Wait(0.5)\n    FadeOut(duration: 1)\n    Remove()\n}\n```\nVersus the same animation using Apple's SpriteKit SKActions:\n```swift\nlet emoteAction: SKAction = {\n    let fadeIn = SKAction.fadeIn(withDuration: 0.7)\n    let grow = SKAction.scale(by: 1.5, duration: 0.7)\n    let moveUp = SKAction.moveTo(y: 30, duration: 0.7)\n    let appear = SKAction.group([fadeIn, grow, moveUp])\n    let wait = SKAction.wait(forDuration: 1)\n    let disappear = SKAction.fadeOut(withDuration: 1)\n    let remove = SKAction.removeFromParent()\n    let emoteAnimation = SKAction.sequence([appear, wait, disappear, remove])\n    return emoteAnimation\n}()\n```\n\n\n\nActionBuilder allows you to use conditional and looping statements within your animation declaration to make them more flexible and easier to write.\n\nCoordinate animations across multiple nodes with the `changeTarget(to:)` modifier.\n\nCustom operators included: `+` will concatenate actions into a sequence, `\u0026` will group them to run simultaneously, `-` will reverse reversible actions, and `*` allows you to repeat an action multiple times.\n\nYou can even include `SKAction`s if no equivalent is available in ActionBuilder.\n\n```swift\nlet node = SKNode()\nlet otherNode = SKNode()\n\nnode.run {\n    Group {\n        \n        Sequence {\n            for i in 0...9 {\n                Colorize(with: UIColor(red: Double(i/10), green: 0.7, blue: 0.7, alpha: 1))\n                Wait(0.2)\n            }\n        }\n        .changeTarget(to: otherNode)\n        \n        Sequence {\n            let moveUp = Move(by: (0, 10))\n            if Bool.random() {\n                moveUp * 2\n            } else {\n                -moveUp\n            }\n            \n            SKAction.resize(toHeight: 20, duration: 5)\n        }\n    }\n}\n```\n\nSee Apple's documentation: https://developer.apple.com/documentation/spritekit/skaction/action_initializers\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoughski%2Factionbuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoughski%2Factionbuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoughski%2Factionbuilder/lists"}