{"id":16378028,"url":"https://github.com/devsrsouza/kt-mc-packet","last_synced_at":"2025-10-10T14:03:50.768Z","repository":{"id":103718603,"uuid":"252297518","full_name":"DevSrSouza/kt-mc-packet","owner":"DevSrSouza","description":"A Minecraft Protocol library for Kotlin Multiplatform","archived":false,"fork":false,"pushed_at":"2021-04-03T13:16:17.000Z","size":228,"stargazers_count":30,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T16:12:21.319Z","etag":null,"topics":["kotlin","kotlin-multiplatform","kotlinx-serialization","minecraft","minecraft-api"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/DevSrSouza.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-01T22:09:28.000Z","updated_at":"2023-07-26T05:15:31.000Z","dependencies_parsed_at":"2024-06-19T11:26:34.238Z","dependency_job_id":null,"html_url":"https://github.com/DevSrSouza/kt-mc-packet","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DevSrSouza/kt-mc-packet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevSrSouza%2Fkt-mc-packet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevSrSouza%2Fkt-mc-packet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevSrSouza%2Fkt-mc-packet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevSrSouza%2Fkt-mc-packet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevSrSouza","download_url":"https://codeload.github.com/DevSrSouza/kt-mc-packet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevSrSouza%2Fkt-mc-packet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004126,"owners_count":26083681,"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-10T02:00:06.843Z","response_time":62,"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":["kotlin","kotlin-multiplatform","kotlinx-serialization","minecraft","minecraft-api"],"created_at":"2024-10-11T03:44:28.485Z","updated_at":"2025-10-10T14:03:50.730Z","avatar_url":"https://github.com/DevSrSouza.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kt-mc-packet\n\nA Minecraft Java Edition Protocol library for Kotlin multiplatform that uses Kotlinx.serialization \nto Encode and Decode Minecraft packets as kotlin data classes.\n\n## Usage\n\nSerialize:\n```kotlin\nval minecraftVersion = 578 // 1.15.2\n\nval byteArray: ByteArray = MinecraftProtocol.dump(\n    Handshake.serializer(),\n    Handshake(\n        minecraftVersion,\n        \"minecraftserver.com\",\n        25565,\n        HandshakePacket.HandshakeNextState.STATUS\n    )\n)\n```\n\nDeserialize:\n```kotlin\nval handshake: Handshake = MinecraftProtocol.load(\n    Handshake.serializer(),\n    byteArrayWithPacketData\n)\n```\n\n## Images\n\nfrom `src/jvmTest/kotlin/ServerStatusTest.kt`\n![](images/server_status_test_image.png)\n\nfrom `src/jvmTest/kotlin/ServerLoginTest.kt`\n![](images/server_login_test_image.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsrsouza%2Fkt-mc-packet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevsrsouza%2Fkt-mc-packet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevsrsouza%2Fkt-mc-packet/lists"}