{"id":33074054,"url":"https://github.com/SwiftBlocksUI/SwiftBlocksUI","last_synced_at":"2025-11-19T04:01:40.462Z","repository":{"id":63921050,"uuid":"279892565","full_name":"SwiftBlocksUI/SwiftBlocksUI","owner":"SwiftBlocksUI","description":"Develop interactive Slack messages and modals using a SwiftUI like declarative style","archived":false,"fork":false,"pushed_at":"2024-09-19T11:32:09.000Z","size":451,"stargazers_count":71,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-10-21T10:36:29.247Z","etag":null,"topics":["blockkit","slack","swiftserver","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SwiftBlocksUI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2020-07-15T14:35:45.000Z","updated_at":"2025-07-11T19:51:41.000Z","dependencies_parsed_at":"2024-01-03T04:56:18.683Z","dependency_job_id":"5791004f-d39c-4886-bc7a-3cc7d53030fe","html_url":"https://github.com/SwiftBlocksUI/SwiftBlocksUI","commit_stats":{"total_commits":143,"total_committers":2,"mean_commits":71.5,"dds":0.1048951048951049,"last_synced_commit":"ddf33ca7746816c5bea5c51157252ed8d2af3f2a"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/SwiftBlocksUI/SwiftBlocksUI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftBlocksUI%2FSwiftBlocksUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftBlocksUI%2FSwiftBlocksUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftBlocksUI%2FSwiftBlocksUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftBlocksUI%2FSwiftBlocksUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SwiftBlocksUI","download_url":"https://codeload.github.com/SwiftBlocksUI/SwiftBlocksUI/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftBlocksUI%2FSwiftBlocksUI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285181688,"owners_count":27128334,"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-11-19T02:00:05.673Z","response_time":65,"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":["blockkit","slack","swiftserver","swiftui"],"created_at":"2025-11-14T10:00:28.637Z","updated_at":"2025-11-19T04:01:40.457Z","avatar_url":"https://github.com/SwiftBlocksUI.png","language":"Swift","funding_links":[],"categories":[":hammer_and_wrench: \u0026nbsp; Libraries and SDKs"],"sub_categories":["Swift"],"readme":"\u003ch2\u003eSwiftBlocksUI\n  \u003cimg src=\"https://zeezide.com/img/blocksui/SwiftBlocksUIIcon256.png\"\n       align=\"right\" width=\"100\" height=\"100\" /\u003e\n\u003c/h2\u003e\n\nSwiftBlocksUI is a way to write interactive Slack messages and modal dialogs\n(also known as Slack \"applications\")\nusing a SwiftUI like declarative style.\n\nA blog article containing SwiftBlocksUI tutorials: \n[Instant “SwiftUI” Flavoured Slack Apps](https://www.alwaysrightinstitute.com/swiftblocksui/).\u003cbr\u003e\n[Documentation](Documentation/README.md), examples:\n[SlashCows](https://github.com/SwiftBlocksUI/SlashCows),\n[AvocadoToast](https://github.com/SwiftBlocksUI/AvocadoToast),\n[ClipIt!](https://github.com/SwiftBlocksUI/ClipIt).\n\nThis is what a full application looks like:\n```swift\n#!/usr/bin/swift sh\nimport SwiftBlocksUI // @SwiftBlocksUI\n\ndotenv.config()\n\nstruct ClipItView: Blocks {\n\n  @State(\\.messageText) var messageText\n  @State var importance = \"medium\"\n  \n  var body: some Blocks {\n    View(\"Save it to ClipIt!\") {\n      TextEditor(\"Message Text\", text: $messageText)\n      \n      Picker(\"Importance\", selection: $importance) {\n        \"High 💎💎✨\".tag(\"high\")\n        \"Medium 💎\"  .tag(\"medium\")\n        \"Low ⚪️\"     .tag(\"low\")\n      }\n      \n      Submit(\"CliptIt\") {\n        console.log(\"Clip:\", messageText, importance)\n      }\n    }\n  }\n}\n\nstruct ClipIt: App {\n\n  var body: some Endpoints {\n    Use(logger(\"dev\"), bodyParser.urlencoded(),\n        sslCheck(verifyToken(allowUnsetInDebug: true)))\n        \n    MessageAction(\"clipit\") {\n      ClipItView()\n    }\n  }\n}\n\ntry ClipIt.main()\n```\n\nLooks like this:\u003cbr\u003e\n\u003cimg src=\"https://www.alwaysrightinstitute.com/images/blocksui/clipit-electron-dialog-only.png\" width=\"50%\" style=\"border: 1;\" /\u003e\n\n\n## Documentation\n\nThere is a related blog entry going over SwiftBlocksUI:\n[Instant “SwiftUI” Flavoured Slack Apps](https://www.alwaysrightinstitute.com/swiftblocksui/).\n\nBlock documentation and a lot more can be found within this repository:\n[Documentation](Documentation/README.md).\n\nExamples:\n- [SlashCows](https://github.com/SwiftBlocksUI/SlashCows) - Slack slash command that produces ASCII Cows. Moo!\n- [AvocadoToast](https://github.com/SwiftBlocksUI/AvocadoToast) - An Avocado Toast ordering solution.\n- [ClipIt!](https://github.com/SwiftBlocksUI/ClipIt) - Working on Messages.\n\n\n## Environment Variables\n\n- `SLACK_ACCESS_TOKEN` (the token required to send requests to Slack)\n- `SLACK_VERIFICATION_TOKEN` (shared secret with Slack to verify requests)\n- `PORT` (the port the app is going to start on, defaults to 1337)\n- `LOG_SLACK_CLIENT_POSTS` (set to `1` to log the JSON sent to Slack using SlackClient)\n- `blocks.log.blocks` (`yes` to log the structure of outgoing API blocks)\n- `blocks.log.blocks.json` (`yes` to log the raw JSON of outgoing blocks)\n- `macro.core.numthreads`\n- `macro.core.iothreads`\n- `macro.core.retain.debug`\n- `macro.concat.maxsize`\n- `macro.streams.debug.rc`\n- `macro.router.debug`\n- `macro.router.matcher.debug`\n\n\n## Requirements\n\nOn Linux this currently requires a Swift 5.3 environment\n(swiftc crash, might be [SR-12543](https://bugs.swift.org/browse/SR-12543)).\n\nOn macOS it should work with Swift 5.2 (aka Xcode 11) and up,\nthough 5.3 has some additional conveniences.\n\n\n### Links\n\n- [Macro](https://github.com/Macro-swift/Macro/)\n\n### Who\n\n**SwiftBlocksUI** is brought to you by\n[ZeeZide](http://zeezide.de).\nWe like \n[feedback](https://twitter.com/ar_institute), \nGitHub stars, \ncool [contract work](http://zeezide.com/en/services/services.html),\npresumably any form of praise you can think of.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSwiftBlocksUI%2FSwiftBlocksUI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSwiftBlocksUI%2FSwiftBlocksUI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSwiftBlocksUI%2FSwiftBlocksUI/lists"}