https://github.com/jderstd/hono
A response builder for Hono
https://github.com/jderstd/hono
builder hono javascript jder json response typescript
Last synced: about 2 months ago
JSON representation
A response builder for Hono
- Host: GitHub
- URL: https://github.com/jderstd/hono
- Owner: jderstd
- License: mit
- Created: 2025-05-20T02:09:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-24T13:14:46.000Z (8 months ago)
- Last Synced: 2025-10-24T15:10:29.951Z (8 months ago)
- Topics: builder, hono, javascript, jder, json, response, typescript
- Language: TypeScript
- Homepage: https://github.com/jderstd/hono/blob/main/docs/hono/README.md
- Size: 793 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JDER Hono
A response builder for Hono.
This package includes different response builders based on the JSON response structure specified in [JSON Data Errors Response (JDER)](https://github.com/jderstd/spec). With the builders, various kinds of responses can be created easily instead of sending plain text responses.
## Quick Start
To create a JSON response, use the following code:
```ts
import { createJsonResponse } from "@jderstd/hono/response";
const route = (): Response => {
return createJsonResponse();
}
```
And the response will be shown as below:
```json
{
"success": true,
"data": null,
"errors": []
}
```
## Documentation
For Hono,
please refer to the [Hono documentation](./docs/hono/README.md).
For standard validator,
please refer to the [Standard Validator documentation](./docs/hono-standard-validator/README.md).
For Zod validator,
please refer to the [Zod Validator documentation](./docs/hono-zod-validator/README.md).
For OpenAPI,
please refer to the [OpenAPI documentation](./docs/hono-openapi/README.md).
## APIs
For Hono package APIs,
please refer to the [Hono APIs](./apis/hono/README.md).
For standard validator package APIs,
please refer to the [Standard Validator APIs](./apis/hono-standard-validator/README.md).
For Zod validator package APIs,
please refer to the [Zod Validator APIs](./apis/hono-zod-validator/README.md).
For OpenAPI package APIs,
please refer to the [OpenAPI APIs](./apis/hono-openapi/README.md).
## Contributing
For contributing, please refer to the [contributing guide](./CONTRIBUTING.md).
## License
This project is licensed under the terms of the MIT license.