Skip to content

Conversation

kalucky0
Copy link

This PR introduces a new middleware package that provides validation using the Arri Schema library. The @hono/arri-validator package enables type-safe validation of request data (JSON body, query parameters, headers, etc.) within Hono applications.

Arri Schema is a lightweight, type-safe schema validation library that's significantly faster than many alternatives. It provides a well-designed API similar to Zod but with improved performance characteristics.

This package is heavily inspired by the already existing zod-validator package, following similar patterns and API design.

I've been using this aValidator middleware internally in several projects, where it has proven to be quite robust.

Copy link

changeset-bot bot commented May 16, 2025

🦋 Changeset detected

Latest commit: 48291b3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hono/arri-validator Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant