[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7376":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":15,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":44,"readmeContent":45,"aiSummary":46,"trendingCount":16,"starSnapshotCount":16,"syncStatus":47,"lastSyncTime":48,"discoverSource":49},7376,"PeopleInSpace","joreilly\u002FPeopleInSpace","joreilly","Kotlin Multiplatform sample with SwiftUI, Jetpack Compose, Compose for Wear, Compose for Desktop, and Compose for Web clients along with Ktor backend.","",null,"Kotlin",3346,299,36,5,0,19,3,29.43,"Apache License 2.0",false,"main",true,[25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"android","compose-desktop","compose-ios","compose-multiplatform","compose-web","ios","jetpack-compose","kmp","kmp-sample","koin","kotlin","kotlin-coroutines","kotlin-multiplatform","kotlin-native","ktor","mcp","swift","swiftui","wasm","2026-06-12 02:01:38","# PeopleInSpace\n\n![kotlin-version](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fkotlin-2.3.0-blue?logo=kotlin)\n\n\n**Kotlin Multiplatform** project with SwiftUI, Jetpack Compose, Compose for Wear OS, Compose for Desktop and Compose for Web clients along with Ktor backend. Currently running on\n* Android (Jetpack Compose)\n* Android App Widget (Compose based Glance API - contributed by https:\u002F\u002Fgithub.com\u002Fyschimke)\n* Wear OS (Compose for Wear OS - primarily developed by https:\u002F\u002Fgithub.com\u002Fyschimke)  \n* iOS (SwiftUI)\n* Swift Executable Package\n* Desktop (Compose for Desktop)\n* Web (Compose for Web - Wasm based)\n* JVM (small Ktor back end service + `Main.kt` in `common` module)\n* MCP server (using same shared KMP code)\n\nIt makes use of [The Space Devs API](https:\u002F\u002Fthespacedevs.com\u002Fllapi) to show information for the people currently in\nspace and also [Open Notify PeopleInSpace API](http:\u002F\u002Fopen-notify.org\u002FOpen-Notify-API\u002FPeople-In-Space\u002F) to show the position of the International Space Station.  \n\nThe project is included as sample in the official [Kotlin Multiplatform Mobile docs](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Fmobile\u002Fsamples.html#peopleinspace) and also the [Google Dev Library](https:\u002F\u002Fdevlibrary.withgoogle.com\u002Fproducts\u002Fandroid)\n\nRelated posts:\n* [Minimal Kotlin Multiplatform project using Compose and SwiftUI](https:\u002F\u002Fjohnoreilly.dev\u002Fposts\u002Fminimal-kotlin-platform-compose-swiftui\u002F)\n* [Adding some Storage (to) Space](https:\u002F\u002Fjohnoreilly.dev\u002Fposts\u002Fadding-sqldelight-to-peopleinspace\u002F)\n* [Kotlin Multiplatform running on macOS](https:\u002F\u002Fjohnoreilly.dev\u002Fposts\u002Fkotlinmultiplatform-macos\u002F)\n* [PeopleInSpace hits the web with Kotlin\u002FJS and React](https:\u002F\u002Fjohnoreilly.dev\u002Fposts\u002Fpeopleinspace-kotlinjs\u002F)\n* [Using Koin in a Kotlin Multiplatform Project](https:\u002F\u002Fjohnoreilly.dev\u002Fposts\u002Fkotlinmultiplatform-koin\u002F)\n* [Jetpack Compose for the Desktop!](https:\u002F\u002Fjohnoreilly.dev\u002Fposts\u002Fjetpack-compose-desktop-copy\u002F)\n* [Comparing use of LiveData and StateFlow in a Jetpack Compose project](https:\u002F\u002Fjohnoreilly.dev\u002Fposts\u002Fjetpack-compose-stateflow-livedata\u002F)\n* [Wrapping Kotlin Flow with Swift Combine Publisher in a Kotlin Multiplatform project](https:\u002F\u002Fjohnoreilly.dev\u002Fposts\u002Fkotlinmultiplatform-swift-combine_publisher-flow\u002F)\n* [Using Swift Packages in a Kotlin Multiplatform project](https:\u002F\u002Fjohnoreilly.dev\u002Fposts\u002Fkotlinmultiplatform-swift-package\u002F)\n* [Using Swift's new async\u002Fawait when invoking Kotlin Multiplatform code](https:\u002F\u002Fjohnoreilly.dev\u002Fposts\u002Fswift_async_await_kotlin_coroutines\u002F)\n* [Exploring new AWS SDK for Kotlin](https:\u002F\u002Fjohnoreilly.dev\u002Fposts\u002Faws-sdk-kotlin\u002F)\n* [Creating a Swift command line app that consumes Kotlin Multiplatform code](https:\u002F\u002Fjohnoreilly.dev\u002Fposts\u002Fswift-command-line-kotlin-multiplatform\u002F)\n* [Exploring New Worlds of UI sharing possibilities in PeopleInSpace using Compose Multiplatform](https:\u002F\u002Fjohnoreilly.dev\u002Fposts\u002Fexploring-compose_multiplatform_sharing_ios\u002F)\n\n\nNote that this repository very much errs on the side of minimalism to help more clearly illustrate key moving parts of a Kotlin\nMultiplatform project and also to hopefully help someone just starting to explore KMP to get up and running for first time (and is of course\nprimarily focused on use of Jetpack Compose and SwiftUI).  If you're at the stage of moving\nbeyond this then I'd definitely recommend checking out [KaMPKit](https:\u002F\u002Fgithub.com\u002Ftouchlab\u002FKaMPKit) from Touchlab.\nI also have the following samples that demonstrate the use of a variety of Kotlin Multiplatform libraries (and also use Jetpack Compose and SwiftUI).\n\n*  GalwayBus (https:\u002F\u002Fgithub.com\u002Fjoreilly\u002FGalwayBus)\n*  Confetti (https:\u002F\u002Fgithub.com\u002Fjoreilly\u002FConfetti)\n*  BikeShare (https:\u002F\u002Fgithub.com\u002Fjoreilly\u002FBikeShare)\n*  FantasyPremierLeague (https:\u002F\u002Fgithub.com\u002Fjoreilly\u002FFantasyPremierLeague)\n*  ClimateTrace (https:\u002F\u002Fgithub.com\u002Fjoreilly\u002FClimateTraceKMP)\n*  GeminiKMP (https:\u002F\u002Fgithub.com\u002Fjoreilly\u002FGeminiKMP)\n*  MortyComposeKMM (https:\u002F\u002Fgithub.com\u002Fjoreilly\u002FMortyComposeKMM)\n*  StarWars (https:\u002F\u002Fgithub.com\u002Fjoreilly\u002FStarWars)\n*  WordMasterKMP (https:\u002F\u002Fgithub.com\u002Fjoreilly\u002FWordMasterKMP)\n*  Chip-8 (https:\u002F\u002Fgithub.com\u002Fjoreilly\u002Fchip-8)\n\n\n### Building\n\nOpen `PeopleInSpaceSwiftUI' for  iOS projects.  \n\nTo run backend you can either run `.\u002Fgradlew :backend:run` or run `Server.kt` directly from Android Studio. After doing that you should then for example be able to open `http:\u002F\u002Flocalhost:9090\u002Fastros_local.json` in a browser.\n\n\n\n### Compose for Web client (Wasm)\n\nSimilarly for Kotlin\u002FWasm based version\n`.\u002Fgradlew :compose-web:wasmBrowserDevelopmentRun\n`\n\n### Compose for Desktop client\n\nThis client is available in `compose-desktop` module and can be run using `.\u002Fgradlew :compose-desktop:run`.  \n\n\n### Backend code\n\nHave tested this out in Google App Engine deployment.  Using shadowJar plugin to create an \"uber\" jar and then deploying it as shown below.  Should be possible to deploy this jar to other services as well.\n\n```\n.\u002Fgradlew :backend:shadowJar\ngcloud app deploy backend\u002Fbuild\u002Flibs\u002Fbackend-all.jar --appyaml=backend\u002Fsrc\u002FjvmMain\u002Fappengine\u002Fapp.yaml\n```\n\n\n### Screenshots \n\n**iOS (SwiftUI + CMP)**\n\u003Cbr\u002F>\n\u003Cimg width=\"738\" height=\"502\" alt=\"Screenshot 2025-08-10 at 22 15 21\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F2befb5b7-7308-409b-b83e-cc510fe72e41\" \u002F>\n\n\n\n\n**Android (Jetpack Compose + CMP)**\n\u003Cbr\u002F>\n\n\u003Cimg width=\"719\" height=\"496\" alt=\"Screenshot 2025-08-10 at 22 15 29\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F4d97e95c-be6e-4913-a1a1-369bd7af5d7f\" \u002F>\n\n\n\n**Wear OS (Wear Compose)**\n\u003Cbr\u002F>\n\u003Cimg width=\"250\" alt=\"Wear Compose Screenshot 1\" src=\"https:\u002F\u002Fuser-images.githubusercontent.com\u002F6302\u002F137623548-ac51ca72-572e-4009-8b34-315defdf93a5.png\">\n\u003Cimg width=\"250\" alt=\"Wear Compose Screenshot 2\" src=\"https:\u002F\u002Fuser-images.githubusercontent.com\u002F6302\u002F137640396-851489bb-e41d-47ef-badb-e2d22454eee4.png\">\n\u003Cimg width=\"250\" alt=\"Wear Compose Screenshot 3\" src=\"https:\u002F\u002Fuser-images.githubusercontent.com\u002F6302\u002F139468900-16ad4e95-41dc-427f-977c-b893b1751c78.png\">\n\n\n**Compose for Desktop**\n\u003Cbr\u002F>\n\u003Cimg width=\"1134\" height=\"881\" alt=\"Screenshot 2025-08-10 at 22 51 15\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fa1daab34-78b4-46b0-adbd-7841881843ed\" \u002F>\n\n\n\n**Compose for Web (Wasm based)**\n\u003Cbr\u002F>\n\u003Cimg width=\"1352\" height=\"1010\" alt=\"Screenshot 2025-08-10 at 22 58 45\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F9fcf9fe8-7705-4268-aa2f-ec279ed2f2d9\" \u002F>\n\n\n\n**MCP**\n\nThe `mcp-server` module uses the [Kotlin MCP SDK](https:\u002F\u002Fgithub.com\u002Fmodelcontextprotocol\u002Fkotlin-sdk) to expose an MCP tools endpoint (returning list of people in space) that\ncan for example be plugged in to Claude Desktop as shown below.  That module uses same KMP shared code (that uses for example Ktor, SQLDelight and Koin)\n\n![Gry_C3FXkAAxVvN](https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F74c210b9-9a0a-4de8-8845-81380f11e4a5)\n\n\nTo integrate the MCP server with Claude Desktop you need to firstly run gradle `shadowJar` task and then select \"Edit Config\" under Developer Settings and add something \nlike the following (update with your path)\n\n```\n{\n  \"mcpServers\": {\n    \"kotlin-peopleinspace\": {\n      \"command\": \"java\",\n      \"args\": [\n        \"-jar\",\n        \"\u002FUsers\u002Fjohn.oreilly\u002Fgithub\u002FPeopleInSpace\u002Fmcp-server\u002Fbuild\u002Flibs\u002FserverAll.jar\",\n        \"--stdio\"\n      ]\n    }\n  }\n}\n```\n\n\n### Languages, libraries and tools used\n\n* [Kotlin](https:\u002F\u002Fkotlinlang.org\u002F)\n* [Kotlin Coroutines](https:\u002F\u002Fkotlinlang.org\u002Fdocs\u002Freference\u002Fcoroutines-overview.html)\n* [Kotlinx Serialization](https:\u002F\u002Fgithub.com\u002FKotlin\u002Fkotlinx.serialization)\n* [Ktor client library](https:\u002F\u002Fgithub.com\u002Fktorio\u002Fktor)\n* [Android Architecture Components](https:\u002F\u002Fdeveloper.android.com\u002Ftopic\u002Flibraries\u002Farchitecture\u002Findex.html)\n* [Koin](https:\u002F\u002Fgithub.com\u002FInsertKoinIO\u002Fkoin)\n* [SQLDelight](https:\u002F\u002Fgithub.com\u002Fcashapp\u002Fsqldelight)\n* [Jetpack Compose](https:\u002F\u002Fdeveloper.android.com\u002Fjetpack\u002Fcompose)\n* [SwiftUI](https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Fswiftui)\n* [SKIE](https:\u002F\u002Fskie.touchlab.co\u002Fintro)\n* [Coil](https:\u002F\u002Fcoil-kt.github.io\u002Fcoil\u002F)\n","PeopleInSpace 是一个展示当前在太空中的人员信息及国际空间站位置的 Kotlin 多平台项目。该项目使用了 Jetpack Compose、Compose for Wear OS、Compose for Desktop 和 Compose for Web 作为客户端界面，同时利用 Ktor 构建后端服务。它支持 Android、iOS、桌面应用以及网页等多种平台，并且通过共享代码库实现了跨平台的一致性。PeopleInSpace 适合用于学习和探索 Kotlin 多平台开发、Jetpack Compose 和 SwiftUI 的集成实践，以及对多终端应用开发感兴趣的开发者。此外，项目还展示了如何与外部 API（如 The Space Devs API 和 Open Notify PeopleInSpace API）进行交互以获取实时数据。",2,"2026-06-11 03:11:59","top_language"]