{"id":39687381,"url":"https://github.com/dimensional-fun/nats.kt","last_synced_at":"2026-01-18T10:02:20.250Z","repository":{"id":183304606,"uuid":"669184682","full_name":"dimensional-fun/nats.kt","owner":"dimensional-fun","description":"🛰️ kotlin multi-platform NATS client","archived":false,"fork":false,"pushed_at":"2024-04-23T08:28:19.000Z","size":398,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T16:51:58.148Z","etag":null,"topics":["jetstream","kotlin","ktor","microservices","nats","nats-io"],"latest_commit_sha":null,"homepage":"https://dimensional-fun.github.io/knats","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/dimensional-fun.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}},"created_at":"2023-07-21T14:49:44.000Z","updated_at":"2024-10-19T06:06:12.000Z","dependencies_parsed_at":"2024-04-22T05:50:26.754Z","dependency_job_id":null,"html_url":"https://github.com/dimensional-fun/nats.kt","commit_stats":null,"previous_names":["dimensional-fun/nats.kt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dimensional-fun/nats.kt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimensional-fun%2Fnats.kt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimensional-fun%2Fnats.kt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimensional-fun%2Fnats.kt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimensional-fun%2Fnats.kt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimensional-fun","download_url":"https://codeload.github.com/dimensional-fun/nats.kt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimensional-fun%2Fnats.kt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":["jetstream","kotlin","ktor","microservices","nats","nats-io"],"created_at":"2026-01-18T10:02:19.617Z","updated_at":"2026-01-18T10:02:20.239Z","avatar_url":"https://github.com/dimensional-fun.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NATS - Kotlin Client\n\nAn idiomatic \u0026 multi-platform [Kotlin](http://java.com) client for the [NATS messaging system](https://nats.io).\n\n\u003e [!WARNING]\n\u003e nats.kt is currently in active development!\n\n- [Discord Server](https://discord.gg/8R4d8RydT4)\n\n## Installation\n\nRequires **Kotlin 1.9** and **Java 19** if you're using the JVM artifact.\n\n- **Latest Version:** None\n\n### 🐘 Gradle\n\n```kotlin\nrepositories {\n    maven(\"https://maven.dimensional.fun/releases\") // or snapshots\n}\n\ndependencies {\n    implementation(\"fun.dimensional:knats-core:{VERSION}\")\n    implementation(\"fun.dimensional:knats-jetstream:{VERSION}\")\n    implementation(\"fun.dimensional:knats-micro:{VERSION}\")\n}\n```\n\n## Example\n\n### Creating a Client\n\n```kt\n// create and connect a new NATS client.\nval client = Client(\"nats://127.0.0.1:4222\") {\n    // use the TCP transport, you could also use the WebSocket transport.\n    transport = TcpTransport\n}\n```\n\n### Subscriptions\n\n```kt\n// create a subscription listening on all subjects.\nval all = client.subscribe(\"\u003e\")\n\nall.on\u003cSubscriptionUnsubscribedEvent\u003e {\n    println(\"Subscription was ${if (auto) \"auto-\" else \"\"}unsubscribed.\")\n}\n\nall.on\u003cSubscriptionDeliveryEvent\u003e {\n    println(\"Received message $id on \\\"${delivery.subject}\\\"!\")\n}\n```\n\n_more coming soon_\n\n---\n\nUnless specified otherwise, all files are licensed under the [Apache Version 2.0](/LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimensional-fun%2Fnats.kt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimensional-fun%2Fnats.kt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimensional-fun%2Fnats.kt/lists"}