{"id":48680800,"url":"https://github.com/nphausg/android.embeddedserver","last_synced_at":"2026-04-26T20:00:42.084Z","repository":{"id":61836903,"uuid":"419804384","full_name":"nphausg/android.embeddedserver","owner":"nphausg","description":"🚀A minimal way to create HTTP server in android with Kotlin. Create asynchronous client and server applications. Anything from microservices to multiplatform HTTP client apps in a simple way. Open Source, free, and fun!","archived":false,"fork":false,"pushed_at":"2025-07-12T10:39:38.000Z","size":12373,"stargazers_count":55,"open_issues_count":2,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-12T12:29:49.172Z","etag":null,"topics":["android","http","http-server","kotlin","server"],"latest_commit_sha":null,"homepage":"https://medium.com/geekculture/android-embedded-server-with-ktor-26e7c576263d","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/nphausg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"nphausg"}},"created_at":"2021-10-21T16:48:16.000Z","updated_at":"2025-07-12T10:33:14.000Z","dependencies_parsed_at":"2024-04-13T05:23:31.384Z","dependency_job_id":"5e9bfe85-5694-4bb8-bc90-cc8e955e9ead","html_url":"https://github.com/nphausg/android.embeddedserver","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nphausg/android.embeddedserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nphausg%2Fandroid.embeddedserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nphausg%2Fandroid.embeddedserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nphausg%2Fandroid.embeddedserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nphausg%2Fandroid.embeddedserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nphausg","download_url":"https://codeload.github.com/nphausg/android.embeddedserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nphausg%2Fandroid.embeddedserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32310804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["android","http","http-server","kotlin","server"],"created_at":"2026-04-11T01:00:36.065Z","updated_at":"2026-04-26T20:00:42.078Z","avatar_url":"https://github.com/nphausg.png","language":"Kotlin","funding_links":["https://github.com/sponsors/nphausg"],"categories":["网络编程"],"sub_categories":["Spring Cloud框架"],"readme":"\u003ch1 align=\"center\"\u003e Android Embedded Server \u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/kotlin-v1.9.23-blue.svg\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/gradle-8.3.2-blueviolet.svg\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/API-21%2B-blue.svg?style=flat\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-Apache%202.0-success.svg\"\u003e\n    \u003cimg src=\"https://circleci.com/gh/twilio-labs/plugin-rtc.svg?style=svg\"\u003e\n    \u003ca href=\"https://github.com/nphau/android.embeddedserver/actions/workflows/app-build.yml\"\u003e\u003cimg alt=\"Build Status\" src=\"https://github.com/nphau/android.embeddedserver/actions/workflows/deploy.yml/badge.svg\"/\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/colored.png)\n\n## 👉 Overview\n\nA minimal way to create HTTP server in android with Kotlin. Create asynchronous client and server applications. Anything from microservices to multiplatform HTTP client apps in a simple way. Open Source, free, and fun!\n\n```kotlin\nembeddedServer(Netty, PORT, watchPaths = emptyList()) {\n            install(WebSockets)\n            install(CallLogging)\n            routing {\n                get(\"/\") {\n                    call.respondText(\n                        text = \"Hello!! You are here in ${Build.MODEL}\",\n                        contentType = ContentType.Text.Plain\n                    )\n                }\n            }\n        }\n```\n\n## 🚀 How to use\n\nCloning the repository into a local directory and checkout the desired branch:\n\n```\ngit clone git@github.com:nphausg/android.embeddedserver.git\ncd android.embeddedserver\ngit checkout master\n```\n\n## 🍲 Static resource\n\nConfig | Demo |\n--- | --- |\n\u003cimg src=\"docs/static_config.jpg\"\u003e | \u003cimg src=\"docs/static_demo.jpg\"\u003e |\n\n```kotlin\n    staticResources(\"/static\", \"\"){\n        default(\"index.html\")\n    }\n```\n\n## 🍲 Screenshots\n\n\u003ch4 align=\"center\"\u003e\n\nFruits | Detail |\n--- | --- |\n\u003cimg src=\"docs/fruits.jpg\"\u003e | \u003cimg src=\"docs/detail.jpg\"\u003e |\n\nDevice | Connect |\n--- | --- |\n\u003cimg src=\"docs/demo.gif\"\u003e | \u003cimg src=\"docs/edge_get.gif\"\u003e |\n\n## ✨ Contributing\n\nPlease feel free to contact me or make a pull request.\n\n\u003ca href=\"https://revolut.me/nphausg\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"nphausg\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" \u003e\u003c/a\u003e\n\n\u003ca href=\"https://github.com/hieuwu\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://avatars.githubusercontent.com/u/43868345?v=4\" width=\"96\" height=\"96\"\u003e\n\u003c/a\u003e\n\n## 👀 Author\n\n\u003cp\u003e\n    \u003ca href=\"https://nphausg.medium.com\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://avatars2.githubusercontent.com/u/13111806?s=400\u0026u=f09b6160dbbe2b7eeae0aeb0ab4efac0caad57d7\u0026v=4\" width=\"96\" height=\"96\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnphausg%2Fandroid.embeddedserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnphausg%2Fandroid.embeddedserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnphausg%2Fandroid.embeddedserver/lists"}