{"id":13626266,"url":"https://github.com/datkt/uv","last_synced_at":"2026-04-13T23:32:23.597Z","repository":{"id":143746834,"uuid":"155003399","full_name":"datkt/uv","owner":"datkt","description":"libuv bindings for Kotlin","archived":false,"fork":false,"pushed_at":"2019-04-04T02:35:49.000Z","size":38,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T05:37:37.391Z","etag":null,"topics":["kotlin","kotlin-library","libuv","libuv-api","libuv-bindings","native","node","npm","uv"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/datkt.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}},"created_at":"2018-10-27T19:52:58.000Z","updated_at":"2021-12-29T09:26:12.000Z","dependencies_parsed_at":"2024-01-14T07:14:01.125Z","dependency_job_id":"8888e8f2-1fa4-40fa-80d9-bda6f8817559","html_url":"https://github.com/datkt/uv","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/datkt/uv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datkt%2Fuv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datkt%2Fuv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datkt%2Fuv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datkt%2Fuv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datkt","download_url":"https://codeload.github.com/datkt/uv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datkt%2Fuv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31775771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"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":["kotlin","kotlin-library","libuv","libuv-api","libuv-bindings","native","node","npm","uv"],"created_at":"2024-08-01T21:02:14.288Z","updated_at":"2026-04-13T23:32:23.578Z","avatar_url":"https://github.com/datkt.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"datkt.uv\n========\n\nlibuv bindings for Kotlin/Native.\n\n## Installation\n\nThe `uv` package an be installed with various package managers.\n\n### From NPM\n\n```sh\n$ npm install @datkt/uv\n```\n\n**Note:** *This will install **uv** into `node_modules/@datkt/uv`*\n\n### Install From Source\n\n```sh\n$ git clone git@github.com:datkt/uv.git\n$ cd uv\n$ make build # or make klib\n$ make install\n```\n\n## Prerequisites\n\n* [Kotlin/Native](https://github.com/JetBrains/kotlin-native) and the\n  `konanc` command line program.\n* [make](https://www.gnu.org/software/make/)\n\n## Usage\n\n```sh\n## Compile a program in 'main.kt' and link uv.klib found in node_modules\n$ konanc -l \"$(find node_modules -name uv.klib)\" main.kt\n```\n\nwhere `main.kt` might be\n\n```kotlin\nimport datkt.uv.* // entire libuv API\nimport kotlinx.cinterop.* // exposes types needed for interop\n\nfun main(args: Array\u003cString\u003e) {\n  if (0 != uv_init()) {\n    throw Error(\"Failed to initialize libuv\")\n  }\n}\n````\n\n## Example\n\n```kotlin\nimport kotlinx.cinterop.*\nimport datkt.uv.uv_init\nimport datkt.uv.randombytes_buf\nimport datkt.uv.randombytes_random\nimport datkt.uv.randombytes_uniform\n\nfun main(args: Array\u003cString\u003e) {\n  val rc = uv_init()\n\n  if (0 != rc) {\n    throw Error(\"uv_init() != 0\")\n  }\n}\n```\n\n## libuv API\n\nThis package binds libuvs entire API and provides an\n[interop](https://github.com/JetBrains/kotlin-native/blob/master/INTEROP.md)\nAPI for Kotlin and can be imported from the `uv` package.\n\n## Building\n\nThe `uv` package can be built from source into various targets.\n\n### Kotlin Library\n\n`uv.klib`, a Kotlin library that can be linked with `konanc` can be\nbuilt from source.\n\n```sh\n$ make klib\n```\n\nwhich will produce `build/lib/uv.klib`. The library can be installed\nwith `klib` by running `make install`\n\n### Static Library\n\n`libuv.a`, a static library that can be linked with `konanc` can be\nbuilt from source.\n\n```sh\n$ make static\n```\n\nwhich will produce `build/lib/libuv.a` and C header files in\n`build/include`. The library can be installed into your system by\nrunning `make install`. The path prefix can be set by defining the\n`PREFIX` environment or `make` variable. It defaults to\n`PREFIX=/usr/local`\n\n## See Also\n\n* https://libuv.gitbook.io/doc\n* https://github.com/jedisct1/libuv\n* https://github.com/uv-friends/uv-native\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatkt%2Fuv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatkt%2Fuv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatkt%2Fuv/lists"}