Hono Problem Details

B+ 86 completed
Library
unknown / typescript · small
50
Files
4,747
LOC
3
Frameworks
4
Languages

Pipeline State

completed
Run ID
#369266
Phase
done
Progress
1%
Started
Finished
2026-04-13 01:31:02
LLM tokens
0

Pipeline Metadata

Stage
Cataloged
Decision
proceed
Novelty
66.82
Framework unique
Isolation
Last stage change
2026-05-10 03:35:38
Deduplication group #57315
Member of a group with 1 similar repo(s) — this repo is canonical view group →
Top concepts (2)
Project DescriptionWeb Backend
Repobility · MCP-ready · https://repobility.com

AI Prompt

Create a TypeScript middleware for Hono that implements standardized, RFC 9457 compliant JSON error responses. I need this to handle errors thrown within the application, ideally using an `app.onError` setup. The middleware should support integration with validation libraries like Zod and Valibot, and also allow for localization of error details. It must be type-safe and work across edge runtimes like Cloudflare Workers, Deno, and Bun.
typescript hono middleware error-handling rfc9457 edge-computing validation
Generated by gemma4:latest

Catalog Information

Provides standardized JSON error responses for Hono applications following RFC 9457.

Description

This library implements RFC 9457 Problem Details as a middleware for the Hono web framework. It intercepts errors thrown in route handlers and transforms them into a JSON payload that includes a type, title, status, detail, and instance fields. Developers can configure custom error types or rely on the default mapping of HTTP status codes. The middleware integrates seamlessly with Hono’s request lifecycle, ensuring consistent error formatting across all routes. It is ideal for APIs that require clear, machine‑readable error information and want to adhere to a widely accepted standard.

الوصف

يُقدِّم هذا المكتبة تنفيذًا لمعيار RFC 9457 Problem Details كوسيط (middleware) لإطار عمل Hono. يقوم بالتقاط الأخطاء التي تُرمى داخل معالجات المسارات وتحويلها إلى حمولة JSON تتضمن حقولًا مثل type و title و status و detail و instance. يتيح للمطورين تكوين أنواع أخطاء مخصصة أو الاعتماد على التعيين الافتراضي لأكواد الحالة HTTP. يتكامل الوسيط بسلاسة مع دورة حياة الطلب في Hono، ما يضمن تنسيقًا موحدًا للأخطاء عبر جميع المسارات. يُعد خيارًا مثاليًا للواجهات البرمجية التي تتطلب معلومات خطأ واضحة وقابلة للقراءة الآلية، مع الالتزام بمعيار معترف به على نطاق واسع.

Novelty

6/10

Tags

error-handling json-api standardized-responses http-status-codes middleware rfc-9457-compliance

Technologies

hono vitest zod

Claude Models

claude-opus-4.6

Quality Score

B+
86.0/100
Structure
93
Code Quality
100
Documentation
50
Testing
85
Practices
80
Security
100
Dependencies
60

Strengths

  • CI/CD pipeline configured (github_actions)
  • Good test coverage (62% test-to-source ratio)
  • Code linting configured (biome)
  • Consistent naming conventions (snake_case)
  • Low average code complexity \u2014 well-structured code
  • Good security practices \u2014 no major issues detected
  • Properly licensed project

Security & Health

4.1h
Tech Debt (C)
A
OWASP (100%)
PASS
Quality Gate
A
Risk (2)
Want this analysis on your repo? https://repobility.com/scan/
MIT
License
0.0%
Duplication
Full Security Report AI Fix Prompts SARIF SBOM

Languages

typescript
44.8%
yaml
41.4%
markdown
9.3%
json
4.5%

Frameworks

Hono Vitest esbuild

Concepts (2)

Powered by Repobility · code-quality intelligence
CategoryNameDescriptionConfidence
All rows scored by the Repobility analyzer (https://repobility.com)
auto_descriptionProject Description![npm version](https://www.npmjs.com/package/hono-problem-details) ![CI](https://github.com/paveg/hono-problem-details/actions/workflows/ci.yml) ![License: MIT](https://opensource.org/licenses/MIT)80%
auto_categoryWeb Backendweb-backend70%

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/93469.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV