{"id":41324541,"url":"https://github.com/mooziii/piston-meta-kt","last_synced_at":"2026-01-23T06:00:48.354Z","repository":{"id":65509483,"uuid":"522702888","full_name":"mooziii/piston-meta-kt","owner":"mooziii","description":"Kotlin library to interact with mojangs launchermeta and \"piston-meta\" api","archived":false,"fork":false,"pushed_at":"2022-11-05T18:27:07.000Z","size":276,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-07-28T14:40:22.607Z","etag":null,"topics":["http","kotlin","ktor","launchermeta","microsoft-auth","minecraft","minecraft-login","mojang"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mooziii.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-08-08T20:48:56.000Z","updated_at":"2023-07-28T14:40:22.607Z","dependencies_parsed_at":"2023-01-26T17:02:36.920Z","dependency_job_id":null,"html_url":"https://github.com/mooziii/piston-meta-kt","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/mooziii/piston-meta-kt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooziii%2Fpiston-meta-kt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooziii%2Fpiston-meta-kt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooziii%2Fpiston-meta-kt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooziii%2Fpiston-meta-kt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mooziii","download_url":"https://codeload.github.com/mooziii/piston-meta-kt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooziii%2Fpiston-meta-kt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28681694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["http","kotlin","ktor","launchermeta","microsoft-auth","minecraft","minecraft-login","mojang"],"created_at":"2026-01-23T06:00:25.326Z","updated_at":"2026-01-23T06:00:48.338Z","avatar_url":"https://github.com/mooziii.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# piston-meta-kt\n\nKotlin library to interact with mojangs [launchermeta](https://launchermeta.mojang.com/mc/game/version_manifest_v2.json) and \"[piston-meta](https://piston-meta.mojang.com/v1/packages/68cded4616fba9fbefb3f895033c261126c5f89c/1.19.2.json)\" api as well as authenticating with Minecraft via Microsoft-Auth\n\n### Add the dependency\n\n**Gradle (Kotlin)**\n\n```kotlin\nimplementation(\"me.obsilabor:piston-meta-kt:1.0.8\")\n```\n\n**Gradle (Groovy)**\n\n```groovy\nimplementation 'me.obsilabor:piston-meta-kt:1.0.8'\n```\n\n**Maven**\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eme.obsilabor\u003c/groupId\u003e\n    \u003cartifactId\u003episton-meta-kt\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.8\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n```kotlin\nsuspend fun main() {\n    val versions = PistonMetaClient.getLauncherMeta().versions\n    for (version in versions) {\n        println(version \u003e MinecraftVersions.OLD_ALPHA_A1_0_17_02) // Compare versions!\n    }\n}\n```\n\n### Authenticate with minecraft accounts\n\n```kotlin\nval msauth = MicrosoftAuth(\"URL_PREFIX\", \"AZURE_CLIENT_ID\", \"AZURE_CLIENT_SECRET\", ssl = true) {\n    println(it.id) // specific auth id\n    println(it.token.user) // xbox user id\n    println(it.token.value) // minecraft access token\n    println(it.minecraftUUID) // minecraft uuid\n    println(it.minecraftName) // minecraft name \n}\nprintln(msauth.generateURI(\"specific_auth_id\"))\nmsauth.setup(PORT) // Blocks the thread until the ktor server stops for whatever reason\n```\n\nYou have to register an **Azure App** and add the following as **Web Redirect URI**: `https://\u003cyour-domain\u003e/msauth/done` (SSL is required if you aren't using localhost!)\nNote: `URL_PREFIX` is your domain without the `https://` (If you're using localhost you have to specify the port here.)\n\nFor a deeper understanding of whats happening you may take a look at [this documentation](https://mojang-api-docs.netlify.app/authentication/index.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooziii%2Fpiston-meta-kt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmooziii%2Fpiston-meta-kt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooziii%2Fpiston-meta-kt/lists"}