{"id":15896890,"url":"https://github.com/msutkowski/hono-boom","last_synced_at":"2025-07-19T02:34:24.054Z","repository":{"id":151677170,"uuid":"605867399","full_name":"msutkowski/hono-boom","owner":"msutkowski","description":"A Boom implementation for hono","archived":false,"fork":false,"pushed_at":"2023-02-24T04:30:42.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-17T19:21:29.669Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msutkowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-02-24T04:10:09.000Z","updated_at":"2023-03-09T02:53:01.000Z","dependencies_parsed_at":"2023-04-16T14:16:47.026Z","dependency_job_id":null,"html_url":"https://github.com/msutkowski/hono-boom","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/msutkowski/hono-boom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msutkowski%2Fhono-boom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msutkowski%2Fhono-boom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msutkowski%2Fhono-boom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msutkowski%2Fhono-boom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msutkowski","download_url":"https://codeload.github.com/msutkowski/hono-boom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msutkowski%2Fhono-boom/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265877096,"owners_count":23842956,"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-10-06T09:24:01.925Z","updated_at":"2025-07-19T02:34:24.024Z","avatar_url":"https://github.com/msutkowski.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## hono-boom\n\n### Installation\n\n```\nnpm install hono-boom\n```\n\n### Overview\n\nA simple `Boom` wrapper for hono to provide a `hapi`-er experience!\n\n### Usage\n\n```ts\n// Use a guard and resconstruct the error. Useful if you're narrowing against multiple error types like ZodError, FetchError, etc.\nif (Boom.isBoom(error)) {\n  return c.json(\n    {\n      error: {\n        type: error.type,\n        message: error.message,\n        details: error.details,\n      },\n    },\n    error.statusCode\n  );\n}\n\n// If we don't have a current user, throw an unauthorized Boom error\nif (!currentUser) {\n  throw Boom.unauthorized();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsutkowski%2Fhono-boom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsutkowski%2Fhono-boom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsutkowski%2Fhono-boom/lists"}