{"id":19799422,"url":"https://github.com/fledgexu/trunk","last_synced_at":"2026-04-19T02:03:09.350Z","repository":{"id":161623269,"uuid":"386870356","full_name":"FledgeXu/Trunk","owner":"FledgeXu","description":"A simple Swift Mastodon SDK.","archived":false,"fork":false,"pushed_at":"2021-07-31T11:52:20.000Z","size":224,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-28T16:59:51.443Z","etag":null,"topics":["mastodon","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/FledgeXu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-07-17T07:34:43.000Z","updated_at":"2024-05-31T02:19:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"eefaf715-88fa-45a4-8201-70059265e055","html_url":"https://github.com/FledgeXu/Trunk","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/FledgeXu/Trunk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FledgeXu%2FTrunk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FledgeXu%2FTrunk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FledgeXu%2FTrunk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FledgeXu%2FTrunk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FledgeXu","download_url":"https://codeload.github.com/FledgeXu/Trunk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FledgeXu%2FTrunk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279104594,"owners_count":26104545,"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-10-15T02:00:07.814Z","response_time":56,"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":["mastodon","swift"],"created_at":"2024-11-12T07:34:33.018Z","updated_at":"2025-10-15T19:11:31.847Z","avatar_url":"https://github.com/FledgeXu.png","language":"Swift","readme":"# Trunk\n\nA simple Swift Mastodon SDK.\n\n# Usage\n```swift\nimport Trunk\n\n// Initialized trunk instance.\nlet trunk = Trunk(instanceURL: \"https://mastodon.online/\", accessToken: \"\u003caccessToken\u003e\")\n\n// Fire API.\nvar cacellables = Set\u003cAnyCancellable\u003e()\nlet publisher = try? trunk.run(request: TimelinesEndpoint.publicTimeline())\npublisher?\n    .sink(receiveCompletion: { error in  print(error)}) { value in\n        value.forEach { status in\n            print(status)\n        }\n    }\n    .store(in: \u0026cacellables)\n```\n# Supported API List\n\n- [x] apps(Authorizing user needs the Webview.)\n- [x] oauth\n- [x] accounts(Doesn't support for registering yet.)\n- [x] bookmarks\n- [x] favourites\n- [x] mutes\n- [x] blocks\n- [x] domain_blocks\n- [x] filters\n- [x] reports\n- [x] follow_requests\n- [x] endorsements\n- [x] featured_tags\n- [x] preferences\n- [x] suggestions\n- [x] statuses\n- [x] media\n- [x] polls\n- [x] scheduled_statuses\n- [x] timelines\n- [x] conversations\n- [x] lists\n- [x] markers\n- [ ] streaming\n- [x] notifications\n- [ ] push\n- [x] search\n- [x] instance\n- [x] trends\n- [x] directory\n- [x] custom_emojis\n- [ ] admin\n- [x] announcements\n- [ ] proofs\n- [ ] oembed\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffledgexu%2Ftrunk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffledgexu%2Ftrunk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffledgexu%2Ftrunk/lists"}