{"id":18670020,"url":"https://github.com/blahah/choo-asyncify","last_synced_at":"2025-04-12T00:31:07.744Z","repository":{"id":66275896,"uuid":"87840151","full_name":"blahah/choo-asyncify","owner":"blahah","description":"make choo's events non-blocking ... :train: ...","archived":false,"fork":false,"pushed_at":"2017-04-14T09:30:56.000Z","size":4,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T20:13:59.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/blahah.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}},"created_at":"2017-04-10T17:47:37.000Z","updated_at":"2022-01-10T15:08:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a7b5221-37eb-46d7-99a1-39571f6d22ad","html_url":"https://github.com/blahah/choo-asyncify","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fchoo-asyncify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fchoo-asyncify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fchoo-asyncify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fchoo-asyncify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blahah","download_url":"https://codeload.github.com/blahah/choo-asyncify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501127,"owners_count":21114613,"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","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":"2024-11-07T08:49:34.262Z","updated_at":"2025-04-12T00:31:07.732Z","avatar_url":"https://github.com/blahah.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003echoo-asyncify\u003c/h1\u003e\n  \u003cb\u003emake choo events asychronous\u003c/b\u003e\n\u003c/div\u003e\n\n----\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/yoshuawuyts/choo\" alt=\"works with choo v5\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/works%20with-choo%20v5-ff69b4.svg?style=flat-square\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://npmjs.com/package/choo-asyncify\" alt=\"npm package\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/choo-asyncify.svg?style=flat-square\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n:steam_locomotive::train::train::train::train::train: (\u003ccode\u003echoo\u003c/code\u003e) + :train: (\u003ccode\u003echoo-asyncify\u003c/code\u003e)\n\u003c/div\u003e\n\n----\n\n[choo](https://github.com/yoshuawuyts/choo) is a super lightweight, well engineered frontend framework.\n\n`choo` v5 is event-based. Where previous versions would asynchronously send messages from views to effects, v5 uses [nanobus](https://github.com/yoshuawuyts/nanobus) to send [synchronous events](https://github.com/yoshuawuyts/nanobus#are-the-emitters-asynchronous).\nDepending on how you structure your app, this might cause blocking of UI updates.\n\n`choo-asyncify` monkey-patches the `nanobus` instance passed around by `choo` so that every event is non-blocking.\nSpecifically, each `emit` call is wrapped in a `setImmediate`, or if `setImmediate` isn't available, in a `setTimeout(fn, 0)`.\n\n## install\n\n```bash\nnpm install --save choo-asyncify\n```\n\n## usage\n\nJust pass `choo-asyncify` to `choo().use()`:\n\n```js\nvar app = require('choo')()\n\napp.use(require('choo-asyncify'))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblahah%2Fchoo-asyncify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblahah%2Fchoo-asyncify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblahah%2Fchoo-asyncify/lists"}