{"id":13771734,"url":"https://github.com/outadoc/mastodonk","last_synced_at":"2026-03-09T17:36:55.541Z","repository":{"id":46328765,"uuid":"361237514","full_name":"outadoc/mastodonk","owner":"outadoc","description":"Kotlin/Multiplatform library for Mastodon","archived":false,"fork":false,"pushed_at":"2023-07-11T18:46:57.000Z","size":3076,"stargazers_count":32,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2026-03-02T01:48:37.591Z","etag":null,"topics":["hacktoberfest","kotlin","kotlin-library","kotlin-multiplatform","mastodon","mastodon-api"],"latest_commit_sha":null,"homepage":"https://outadoc.github.io/mastodonk","language":"Kotlin","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/outadoc.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}},"created_at":"2021-04-24T18:28:56.000Z","updated_at":"2026-02-21T17:00:10.000Z","dependencies_parsed_at":"2023-09-22T03:16:37.527Z","dependency_job_id":null,"html_url":"https://github.com/outadoc/mastodonk","commit_stats":{"total_commits":158,"total_committers":3,"mean_commits":"52.666666666666664","dds":0.120253164556962,"last_synced_commit":"742fb2535a0ea2b59d8a6bd95e88e9d0aaefa21e"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/outadoc/mastodonk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outadoc%2Fmastodonk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outadoc%2Fmastodonk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outadoc%2Fmastodonk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outadoc%2Fmastodonk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outadoc","download_url":"https://codeload.github.com/outadoc/mastodonk/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outadoc%2Fmastodonk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30069220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T01:03:42.280Z","status":"online","status_checked_at":"2026-03-04T02:00:07.464Z","response_time":59,"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":["hacktoberfest","kotlin","kotlin-library","kotlin-multiplatform","mastodon","mastodon-api"],"created_at":"2024-08-03T17:00:54.867Z","updated_at":"2026-03-09T17:36:55.526Z","avatar_url":"https://github.com/outadoc.png","language":"Kotlin","funding_links":[],"categories":["Libraries"],"sub_categories":["Kotlin"],"readme":"# mastodonk — A Kotlin/Multiplatform Mastodon API client\n\n[![JVM Build](https://github.com/outadoc/mastodonk/actions/workflows/jvm-build.yml/badge.svg)](https://github.com/outadoc/mastodonk/actions/workflows/jvm-build.yml)\n[![JS Build](https://github.com/outadoc/mastodonk/actions/workflows/js-build.yml/badge.svg)](https://github.com/outadoc/mastodonk/actions/workflows/js-build.yml)\n[![Native Build](https://github.com/outadoc/mastodonk/actions/workflows/native-build.yml/badge.svg)](https://github.com/outadoc/mastodonk/actions/workflows/native-build.yml)\n[![GitHub license](https://img.shields.io/github/license/outadoc/mastodonk)](https://github.com/outadoc/mastodonk/blob/develop/LICENSE)\n![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/outadoc/mastodonk?include_prereleases)\n\n## Documentation\n\n[API Reference](https://outadoc.github.io/mastodonk/)\n\n## Setup\n\n```kt\nrepositories {\n    maven { url = uri(\"https://nexus.outadoc.fr/repository/public\") }\n}\n\nkotlin {\n    sourceSets {\n        val commonMain by getting {\n            dependencies {\n                // Core library\n                implementation(\"fr.outadoc.mastodonk:mastodonk-core:+\")\n\n                // Paging library, use with androidx.paging v3 on JVM\n                implementation(\"fr.outadoc.mastodonk:mastodonk-paging:+\")\n            }\n        }\n    }\n}\n```\n\n## Usage\n\nMastodonk provides a Kotlin-first API based on coroutines and Flows.\n\n```kt\nfun main() = runBlocking {\n\n    val client = MastodonClient {\n        domain = \"mastodon.social\"\n        authTokenProvider = AuthTokenProvider {\n            // Provide an authentication token\n            AuthToken(accessToken = \"your-access-token-here\")\n        }\n    }\n\n    GlobalScope.launch {\n\n        // Get some information about the configured instance\n        val instance = client.instance.getInstanceInfo()\n        println(\"connected to instance ${instance.title} at ${instance.uri}!\")\n\n        // Get a list of public toots\n        val toots = client.timelines.getPublicTimeline()\n\n        // Get some #cats in your life\n        val catToots = client.timelines.getHashtagTimeline(\"cats\")\n\n        // Easy pagination\n        val moreCatToots = client.timelines.getHashtagTimeline(\n            \"cats\",\n            pageInfo = catToots.nextPage\n        )\n\n        // Subscribe to streaming APIs and get a Flow\n        client.streaming.getPublicStream().collect { event -\u003e\n            when (event) {\n                is UpdateEvent -\u003e println(\"new status from ${event.payload.account.displayName}!\")\n                else -\u003e Unit\n            }\n        }\n\n    }.join()\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutadoc%2Fmastodonk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutadoc%2Fmastodonk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutadoc%2Fmastodonk/lists"}