
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
@typeschema/valibot
Advanced tools
Reusable adapter for Valibot schemas
https://typeschema.com â¨
import {initTRPC} from '@trpc/server';
import {object, string} from 'valibot';
import {wrap} from '@typeschema/valibot';
const schema = object({name: string()});
const t = initTRPC.create();
const appRouter = t.router({
hello: t.procedure
.input(wrap(schema))
.query(({input}) => `Hello, ${input.name}!`),
// ^? {name: string}
});
Use it directly or through @typeschema/main
@gcornut/valibot-json-schema: Required for serialization (^0.37.0)valibot: Required for inference and validation (^0.39.0)Infer<TSchema>: Extracts the output type of a schemaInferIn<TSchema>: Extracts the input type of a schemawrap(schema): Returns the wrapped schema with access to its operationsvalidate(schema, data): Returns the validated data or a list of validation issuesassert(schema, data): Returns the validated data or throws an AggregateErrortoJSONSchema(schema): Converts the schema into the equivalent JSON schemaFAQs
Reusable adapter for Valibot schemas
We found that @typeschema/valibot demonstrated a not healthy version release cadence and project activity because the last version was released 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
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Googleâs UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.