{"id":25831257,"url":"https://github.com/animatedledstrip/client-kotlin-mpp","last_synced_at":"2025-06-20T20:41:10.665Z","repository":{"id":38300518,"uuid":"280762365","full_name":"AnimatedLEDStrip/client-kotlin-mpp","owner":"AnimatedLEDStrip","description":"Library for connecting to an AnimatedLEDStrip server from clients written in Kotlin/JVM or Kotlin/JS","archived":false,"fork":false,"pushed_at":"2024-05-24T17:59:21.000Z","size":311,"stargazers_count":3,"open_issues_count":10,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-03T10:37:53.954Z","etag":null,"topics":["als-client-library","als-library"],"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/AnimatedLEDStrip.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-07-19T00:18:51.000Z","updated_at":"2024-05-24T17:59:25.000Z","dependencies_parsed_at":"2025-02-28T20:35:08.240Z","dependency_job_id":"87aa4206-5b27-484e-9169-8c744405d6a7","html_url":"https://github.com/AnimatedLEDStrip/client-kotlin-mpp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/AnimatedLEDStrip/client-kotlin-mpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnimatedLEDStrip%2Fclient-kotlin-mpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnimatedLEDStrip%2Fclient-kotlin-mpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnimatedLEDStrip%2Fclient-kotlin-mpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnimatedLEDStrip%2Fclient-kotlin-mpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnimatedLEDStrip","download_url":"https://codeload.github.com/AnimatedLEDStrip/client-kotlin-mpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnimatedLEDStrip%2Fclient-kotlin-mpp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261014050,"owners_count":23097165,"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","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":["als-client-library","als-library"],"created_at":"2025-02-28T20:33:16.456Z","updated_at":"2025-06-20T20:41:05.650Z","avatar_url":"https://github.com/AnimatedLEDStrip.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://github.com/AnimatedLEDStrip/client-kotlin-mpp/actions/workflows/test.yml/badge.svg)](https://github.com/AnimatedLEDStrip/client-kotlin-mpp/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/AnimatedLEDStrip/client-kotlin-mpp/branch/master/graph/badge.svg)](https://codecov.io/gh/AnimatedLEDStrip/client-kotlin-mpp)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.animatedledstrip/animatedledstrip-client/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.animatedledstrip/animatedledstrip-client)\n\n# AnimatedLEDStrip Client Library for Kotlin/MPP\n\nThis library allows a Kotlin/JVM or Kotlin/JS client to communicate with an AnimatedLEDStrip server.\n\n## Creating an `ALSHttpClient`\nTo create a HTTP client, run `ALSHttpClient(clientEngine, ip)`.\n\n\u003e `clientEngine` is a [Ktor `HttpClientEngineFactory`](https://ktor.io/docs/http-client-engines.html)\n\n```kotlin\nval client = ALSHttpClient(CIO, ip = \"10.0.0.254\")\n```\n\nAn optional configuration for the Ktor engine can be passed as a third argument.\nAny configuration should include a JSON feature that uses the AnimatedLEDStrip serializer:\n\n```kotlin\nimport animatedledstrip.communication.serializer as alsSerializer\n\ninstall(JsonFeature) {\n    serializer = KotlinxSerializer(alsSerializer)\n}\n```\n\n## Communicating with the Server\n\nThis library follows the conventions laid out for [AnimatedLEDStrip client libraries](https://animatedledstrip.github.io/client-libraries).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanimatedledstrip%2Fclient-kotlin-mpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanimatedledstrip%2Fclient-kotlin-mpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanimatedledstrip%2Fclient-kotlin-mpp/lists"}