{"id":47321222,"url":"https://github.com/Kotlin/sample-wasi-http-kotlin","last_synced_at":"2026-03-31T23:00:27.153Z","repository":{"id":345043055,"uuid":"1171654508","full_name":"Kotlin/sample-wasi-http-kotlin","owner":"Kotlin","description":"An example `wasi:http` server component written in Kotlin","archived":false,"fork":false,"pushed_at":"2026-03-27T09:21:33.000Z","size":281,"stargazers_count":23,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-27T20:38:01.687Z","etag":null,"topics":["component-model","demo","kotlin","kotlin-wasm","wasi","wasm","wasm-component","webassembly","webassembly-component"],"latest_commit_sha":null,"homepage":"https://kotl.in/wasm","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/Kotlin.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-03-03T13:17:45.000Z","updated_at":"2026-03-27T09:21:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Kotlin/sample-wasi-http-kotlin","commit_stats":null,"previous_names":["kotlin/sample-wasi-http-kotlin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kotlin/sample-wasi-http-kotlin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kotlin%2Fsample-wasi-http-kotlin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kotlin%2Fsample-wasi-http-kotlin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kotlin%2Fsample-wasi-http-kotlin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kotlin%2Fsample-wasi-http-kotlin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kotlin","download_url":"https://codeload.github.com/Kotlin/sample-wasi-http-kotlin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kotlin%2Fsample-wasi-http-kotlin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31258770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-31T18:32:52.363Z","status":"ssl_error","status_checked_at":"2026-03-31T18:32:51.507Z","response_time":111,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["component-model","demo","kotlin","kotlin-wasm","wasi","wasm","wasm-component","webassembly","webassembly-component"],"created_at":"2026-03-17T18:00:34.077Z","updated_at":"2026-03-31T23:00:27.140Z","avatar_url":"https://github.com/Kotlin.png","language":"Kotlin","funding_links":[],"categories":["Components"],"sub_categories":["Applications"],"readme":"# Sample: `wasi:http` in Kotlin\n\nThis example demonstrates an early prototype of component model support in Kotlin.\nIn particular, the structure of the bindings is subject to change and is certainly not final.\n\n## Building\n\n### Requirements\nThis project requires `make`, `git`, and sufficiently recent versions of a JDK, `cargo` and `wasm-tools`.\n\nTo run the final component, a sufficiently recent version of `wasmtime` is also required.\n\n\u003cdetails\u003e\n\u003csummary\u003eConfirmed working versions:\u003c/summary\u003e\n\n```shell\ncargo --version\n# cargo 1.93.1 (083ac5135 2025-12-15)\n\nwasm-tools --version\n# wasm-tools 1.244.0 (d4e317f22 2026-01-06)\n\nwasmtime --version\n# wasmtime 41.0.1 (c30fce86b 2026-01-26)\n\njavac --version\n# javac 21.0.10\n# but most likely, JDK 17 should be sufficient.\n```\n\n\u003c/details\u003e\n\n### Non-requirements\n\nA specific Kotlin compiler version is already selected in the Gradle config and does not need to be installed manually.\n\nNeither `wit-bindgen` nor `wit-deps`/`wkg` are required to be pre-installed, as wit dependencies are already fully resolved, and the required wit-bindgen fork is cloned and built manually.\n\n### `make` command layout\n\n#### Simplest \"do everything and run immediately\":\n```shell\nmake # or make setup-and-run\n```\n\n#### More granular:\n```shell\nmake setup\n```\nis always required in order to clone the aforementioned `wit-bindgen` fork and build it.\n\nThen\n```shell\nmake run\n```\ncompiles and runs, while\n```shell\nmake compile\n```\nonly compiles.\n\n#### Development and production targets\n\nSome targets have both `-dev` (aka development) and `-prod` (aka production) variants, for example `run-dev` / `run-prod` and `compile-dev` / `compile-prod`.\n\nWhen a shorter target name is available, such as `run` or `compile`, it defaults to the production variant.\n\nUse the development variant for a faster edit-build-run loop, as it doesn't do heavy optimizations and supports incremental compilation.\nUse the production variant for final builds, as it is optimized for smaller output size and better runtime performance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKotlin%2Fsample-wasi-http-kotlin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKotlin%2Fsample-wasi-http-kotlin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKotlin%2Fsample-wasi-http-kotlin/lists"}