{"id":50911414,"url":"https://github.com/inemtsev/kurier","last_synced_at":"2026-06-16T10:31:07.946Z","repository":{"id":364748639,"uuid":"1267092488","full_name":"inemtsev/kurier","owner":"inemtsev","description":"One API for chat platforms. Kotlin-native, coroutine-first.","archived":false,"fork":false,"pushed_at":"2026-06-14T09:28:41.000Z","size":90,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-14T11:17:39.637Z","etag":null,"topics":["ai-agents","bot-framework","chatbot","coroutines","discord","kotlin","slack","telegram"],"latest_commit_sha":null,"homepage":null,"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/inemtsev.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-12T08:01:20.000Z","updated_at":"2026-06-14T09:28:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/inemtsev/kurier","commit_stats":null,"previous_names":["inemtsev/kurier"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/inemtsev/kurier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inemtsev%2Fkurier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inemtsev%2Fkurier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inemtsev%2Fkurier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inemtsev%2Fkurier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inemtsev","download_url":"https://codeload.github.com/inemtsev/kurier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inemtsev%2Fkurier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34402648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"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":["ai-agents","bot-framework","chatbot","coroutines","discord","kotlin","slack","telegram"],"created_at":"2026-06-16T10:31:05.074Z","updated_at":"2026-06-16T10:31:07.933Z","avatar_url":"https://github.com/inemtsev.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kurier\n\n\u003e One API for chat platforms. Kotlin-native, coroutine-first.\n\n**kurier** (German/Polish for *courier*) is a unified channel adapter layer for Kotlin — the JDBC for chat platforms. \nWrite your bot or agent once against one typed, `Flow`-based API; per-platform adapters handle the rest: message normalization, rich-text dialects, media, threading, reconnection, and rate limits.\n\n```kotlin\nval gateway = chatGateway {\n    install(TelegramAdapter(token = System.getenv(\"TG_TOKEN\")))\n    install(DiscordAdapter(token = System.getenv(\"DISCORD_TOKEN\")))\n}\n\ngateway.start()\ngateway.messages.collect { msg -\u003e\n    if (msg.isDirectedAtBot) {\n        msg.reply(agent.run(msg.text))   // or reply(tokenFlow) for streaming LLM output\n    }\n}\n```\n\n## Status\n\n🚧 **Pre-alpha.** API design phase — nothing published yet. The in-memory `FakeAdapter` and gateway runtime work end-to-end (try `./gradlew :samples:echo-bot:run`); platform adapters are in progress.\n\n## Why\n\n- **Streaming-first** — `reply(tokens: Flow\u003cString\u003e)` progressively edits the sent message as LLM tokens arrive, with per-platform edit throttling. The feature every AI agent hand-rolls today, badly.\n- **Capabilities over lowest-common-denominator** — `channel.supports(BUTTONS)` checks and graceful no-ops instead of a crippled common API.\n- **Typed escape hatches** — agnostic by default, never trapped: adapter modules expose the raw platform objects when you need them.\n- **Testable bots** — the `testing` artifact ships a `FakeAdapter`, so your bot logic is unit-testable without tokens or network.\n- **Adapters wrap, never reimplement** — Kord, Slack SDK, and friends do the protocol work; kurier does normalization.\n\n## Modules\n\n| Module | Purpose |\n|---|---|\n| `core` | Pure-Kotlin abstractions: `ChatGateway`, `Channel`, `IncomingMessage`, `RichText`, adapter SPI |\n| `runtime` | Gateway implementation: adapter supervision, flow merging |\n| `adapter-telegram` | Telegram Bot API (Ktor client, long polling) |\n| `adapter-discord` | Discord via [Kord](https://github.com/kordlib/kord) |\n| `testing` | `FakeAdapter` for unit-testing bots |\n| `samples/echo-bot` | Runnable end-to-end demo, no tokens required |\n\n## Roadmap\n\n- **M1** — Telegram adapter, echo bot on a real platform ✔️\n- **M2** — Discord adapter, streaming-edit replies\n- **M3** — Slack adapter (Socket Mode), rich-text rendering matrix, golden tests\n- **M4** — 0.1.0 on Maven Central\n\n## License\n\n[Apache 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finemtsev%2Fkurier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finemtsev%2Fkurier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finemtsev%2Fkurier/lists"}