{"id":16092254,"url":"https://github.com/ryoppippi/bun-cmigemo","last_synced_at":"2025-09-07T12:34:10.193Z","repository":{"id":257815338,"uuid":"862904276","full_name":"ryoppippi/bun-cmigemo","owner":"ryoppippi","description":"Run cmigemo with Bun cc.","archived":false,"fork":false,"pushed_at":"2025-09-06T08:27:07.000Z","size":440,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-06T10:17:30.432Z","etag":null,"topics":["bun","bun-ffi","cmigemo","migemo"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ryoppippi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yaml","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},"funding":{"github":"ryoppippi"}},"created_at":"2024-09-25T11:40:43.000Z","updated_at":"2025-09-06T08:26:54.000Z","dependencies_parsed_at":"2024-10-25T11:52:42.393Z","dependency_job_id":"551ab781-0f1b-40de-a646-7def0e312c3b","html_url":"https://github.com/ryoppippi/bun-cmigemo","commit_stats":null,"previous_names":["ryoppippi/bun-cmigemo"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ryoppippi/bun-cmigemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoppippi%2Fbun-cmigemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoppippi%2Fbun-cmigemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoppippi%2Fbun-cmigemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoppippi%2Fbun-cmigemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryoppippi","download_url":"https://codeload.github.com/ryoppippi/bun-cmigemo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoppippi%2Fbun-cmigemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273997137,"owners_count":25204475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bun","bun-ffi","cmigemo","migemo"],"created_at":"2024-10-09T16:06:18.214Z","updated_at":"2025-09-07T12:34:10.138Z","avatar_url":"https://github.com/ryoppippi.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ryoppippi"],"categories":[],"sub_categories":[],"readme":"# bun-cmigemo\n\n[![npm version](https://img.shields.io/npm/v/bun-cmigemo?color=yellow)](https://npmjs.com/package/bun-cmigemo)\n[![npm downloads](https://img.shields.io/npm/dm/bun-cmigemo?color=yellow)](https://npmjs.com/package/bun-cmigemo)\n\nRun [`cmigemo`](https://github.com/koron/cmigemo) with [`Bun cc`](https://bun.sh/docs/api/cc).\n\nhttps://github.com/user-attachments/assets/98da72af-7831-453a-ba97-fed938707d00\n\n## What is this?\n\nThis package allows you to run [`cmigemo`](https://github.com/koron/cmigemo) with [`Bun cc`](https://bun.sh/docs/api/cc).\n\nBun has an experimental compiler called [`Bun cc`](https://bun.sh/docs/api/cc), which enables you to run C code in Bun with low overhead. `cmigemo` is written in C, and if you want to use it in Bun, you need to compile it. However, by wrapping C code with `Bun cc`, you can run it in Bun without the need for explicit compilation! Amazing, right?\n\nSo, this package is essentially a wrapper around `cmigemo`, but you don't need to compile it!\n\nThere are also other implementations of `migemo`, such as [`jsmigemo`](https://github.com/oguna/jsmigemo) and [`rustmigemo`](https://github.com/oguna/rustmigemo), which are written in JavaScript and Rust, respectively, allowing you to run them in Node or even in the browser!\n\nSo... WTH does this package exist? Well, it's just for fun! 😄\n\n## Usage\n\nTo install dependencies:\n\n```bash\nbun i bun-cmigemo\nbun pm trust bun-cmigemo\n```\n\nThen, you can use it like this:\n\n```ts\nimport { Migemo } from 'bun-cmigemo';\n\nconst dictPath = '/absolute/path/to/dict';\n{\n\tusing migemo = new Migemo(dictPath);\n\n\tmigemo.query(query, s =\u003e console.log(s));\n}\n```\n\n## CLI\n\nYou can also use the CLI:\n\n```bash\nbun x bun-cmigemo -d path/to/dict 'query'\nbun x bun-cmigemo --help\n```\n\n## Example App\n\nThis repo includes an example web app that uses `bun-cmigemo`.\n\nYou can run it like this:\n\n```bash\ngit clone https://github.com/ryoppippi/bun-cmigemo\ncd bun-cmigemo\nbun i\nbun app\nopen http://localhost:3000\n```\n\nhttps://github.com/user-attachments/assets/8d728cc8-4a15-402c-87e7-950ca083725e\n\n## Limitations\n\nThis is obvious but it runs on only Bun.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryoppippi%2Fbun-cmigemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryoppippi%2Fbun-cmigemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryoppippi%2Fbun-cmigemo/lists"}