
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@hono/effect-validator
Advanced tools
This package provides a validator middleware using Effect Schema for Hono applications. With this middleware, you can define schemas using Effect Schema and validate incoming data in your Hono routes.
Effect Schema offers several advantages over other validation libraries:
import { Hono } from 'hono'
import { Schema as S } from '@effect/schema'
import { effectValidator } from '@hono/effect-validator'
const app = new Hono()
const User = S.Struct({
name: S.String,
age: S.Number,
})
app.post('/user', effectValidator('json', User), (c) => {
const user = c.req.valid('json')
return c.json({
success: true,
message: `${user.name} is ${user.age}`,
})
})
effectValidator(target, schema)target: The target of validation ('json', 'form', 'query', etc.)schema: An Effect Schema schemaGünther Brunner https://github.com/gunta
MIT
FAQs
Validator middleware using Effect Schema
The npm package @hono/effect-validator receives a total of 3,914 weekly downloads. As such, @hono/effect-validator popularity was classified as popular.
We found that @hono/effect-validator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.