{"id":26086260,"url":"https://github.com/namesmt/hono-wait-until","last_synced_at":"2026-02-23T18:37:00.029Z","repository":{"id":277508744,"uuid":"932654630","full_name":"NamesMT/hono-wait-until","owner":"NamesMT","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-25T11:53:05.000Z","size":182,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T04:52:07.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/NamesMT.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2025-02-14T09:24:25.000Z","updated_at":"2025-10-08T06:23:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"57879ec8-a50e-47bc-83ba-8403db837d78","html_url":"https://github.com/NamesMT/hono-wait-until","commit_stats":null,"previous_names":["namesmt/hono-wait-until"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/NamesMT/hono-wait-until","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Fhono-wait-until","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Fhono-wait-until/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Fhono-wait-until/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Fhono-wait-until/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NamesMT","download_url":"https://codeload.github.com/NamesMT/hono-wait-until/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Fhono-wait-until/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29750724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"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":"2025-03-09T06:50:25.010Z","updated_at":"2026-02-23T18:37:00.014Z","avatar_url":"https://github.com/NamesMT.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hono-wait-until ![TypeScript heart icon](https://img.shields.io/badge/♡-%23007ACC.svg?logo=typescript\u0026logoColor=white)\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Codecov][codecov-src]][codecov-href]\n[![Bundlejs][bundlejs-src]][bundlejs-href]\n[![jsDocs.io][jsDocs-src]][jsDocs-href]\n\n**hono-wait-until** is a simple wrapper for [`wait-until-generalized`](https://github.com/bubblydoo/wait-until-generalized), which \"`Fake waitUntil in AWS Lambda and other platforms that don't support it.`\".\n\nIt basically waits for all async tasks to complete before returning the response, so the platform won't kill your app with uncompleted async tasks.\n\n## Usage\n### Install package:\n```sh\n# npm\nnpm install hono-wait-until\n\n# yarn\nyarn add hono-wait-until\n\n# pnpm (recommended)\npnpm install hono-wait-until\n```\n\n### Import:\n```ts\nimport type { WaitUntilList } from 'hono-wait-until'\nimport {\n  waitUntil, // Optional helper function instead of accessing via context\n  waitUntilMiddleware,\n} from 'hono-wait-until'\n\nconst app = new Hono\u003c{ Variables: { waitUntilList: WaitUntilList } }\u003e()\n  // Preferably, use the waitUntilMiddleware as early as you can.\n  .use(waitUntilMiddleware())\n  .get('/context', async (c) =\u003e {\n    const waitUntilList = c.get('waitUntilList')\n    waitUntilList.waitUntil(sleep(300))\n\n    return c.text(`Using waitUntil via context variable`)\n  })\n  .get('/helper', async (c) =\u003e {\n    waitUntil(sleep(300), c)\n\n    return c.text(`Using waitUntil via helper function`)\n  })\n```\n\n## Roadmap\n- [ ] Become the legendary 10000x developer\n\n## License [![License][license-src]][license-href]\n[MIT](./LICENSE) License © 2025 [NamesMT](https://github.com/NamesMT)\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/hono-wait-until?labelColor=18181B\u0026color=F0DB4F\n[npm-version-href]: https://npmjs.com/package/hono-wait-until\n[npm-downloads-src]: https://img.shields.io/npm/dm/hono-wait-until?labelColor=18181B\u0026color=F0DB4F\n[npm-downloads-href]: https://npmjs.com/package/hono-wait-until\n[codecov-src]: https://img.shields.io/codecov/c/gh/namesmt/hono-wait-until/main?labelColor=18181B\u0026color=F0DB4F\n[codecov-href]: https://codecov.io/gh/namesmt/hono-wait-until\n[license-src]: https://img.shields.io/github/license/namesmt/hono-wait-until.svg?labelColor=18181B\u0026color=F0DB4F\n[license-href]: https://github.com/namesmt/hono-wait-until/blob/main/LICENSE\n[bundlejs-src]: https://img.shields.io/bundlejs/size/hono-wait-until?labelColor=18181B\u0026color=F0DB4F\n[bundlejs-href]: https://bundlejs.com/?q=hono-wait-until\n[jsDocs-src]: https://img.shields.io/badge/Check_out-jsDocs.io---?labelColor=18181B\u0026color=F0DB4F\n[jsDocs-href]: https://www.jsdocs.io/package/hono-wait-until\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamesmt%2Fhono-wait-until","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamesmt%2Fhono-wait-until","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamesmt%2Fhono-wait-until/lists"}