{"id":40374643,"url":"https://github.com/tmpim/hatsune","last_synced_at":"2026-01-20T11:34:17.603Z","repository":{"id":93149937,"uuid":"586201507","full_name":"tmpim/hatsune","owner":"tmpim","description":"computercraft i/o library for people who like vocaloid","archived":false,"fork":false,"pushed_at":"2023-10-03T03:29:19.000Z","size":36,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-21T18:50:28.568Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"MoonScript","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/tmpim.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}},"created_at":"2023-01-07T09:52:58.000Z","updated_at":"2024-06-01T21:24:20.000Z","dependencies_parsed_at":"2023-10-03T15:12:48.368Z","dependency_job_id":null,"html_url":"https://github.com/tmpim/hatsune","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tmpim/hatsune","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpim%2Fhatsune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpim%2Fhatsune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpim%2Fhatsune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpim%2Fhatsune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmpim","download_url":"https://codeload.github.com/tmpim/hatsune/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpim%2Fhatsune/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28602477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T10:46:13.255Z","status":"ssl_error","status_checked_at":"2026-01-20T10:42:51.865Z","response_time":117,"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":[],"created_at":"2026-01-20T11:34:17.448Z","updated_at":"2026-01-20T11:34:17.588Z","avatar_url":"https://github.com/tmpim.png","language":"MoonScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hatsune\n\ncomputercraft i/o library for people who like vocaloid\n\n(also it's cute like miku)\n\n## what's in the box?\n  - `hatsune` - cute event loop and coroutine scheduler\n  - `miku` - future/promise implementation\n  - `async` - create a miku from a yielding/awaiting function, instead of using miku callbacks\n  - `await` - await a miku, also available as `miku:await`\n  - `awaitSafe` - await a miku, catching errors and returning `boolean, result`, also available as `miku:awaitSafe`\n\nhatsune also provides a few optional modules:\n  - `rin` - async http\n  - `rana` - generator functions\n\n## examples\n\n### [moonscript](./examples/moonscript)\n\nthe preferable language for hatsune is moonscript, since it allows for much more concise code. here are some examples:\n\n  - [hatsune](./examples/moonscript/hatsune.moon)\n  - [miku](./examples/moonscript/miku.moon)\n  - [rin](./examples/moonscript/rin.moon)\n  - [rana](./examples/moonscript/rana.moon)\n\n### [lua](./examples/lua)\n\nas a lua library, hatsune is a bit more verbose (but still easy to use!). here are some examples:\n\n  - [hatsune](./examples/lua/hatsune.lua)\n  - [miku](./examples/lua/miku.lua)\n  - [rin](./examples/lua/rin.lua)\n\n## installation\n\nfrom computercraft, run the following command:\n\n```\nwget https://github.com/tmpim/hatsune/raw/main/hatsune.lua\n\n# additionally, if you want a few optional modules (for example rin):\nwget https://github.com/tmpim/hatsune/raw/main/modules/rin.lua\n```\n\n## building\n\nyou can build hatsune from source using [moonscript](https://moonscript.org/) externally, or using [moonscript-cc](https://github.com/emmachase/moonscript-cc) in computercraft.\n\n```\n# if you're in computercraft (thanks to emma)\nwget https://github.com/emmachase/moonscript-cc/raw/main/build/moonc.lua\n\nmoonc .\n```\n\n## todo\n  - websocket library\n  - krist library\n  - more examples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmpim%2Fhatsune","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmpim%2Fhatsune","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmpim%2Fhatsune/lists"}