npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@drzl/generator-h3

v0.1.1

Published

Generate h3 and Nitro route handlers from a Drizzle schema, one module per table, validated by DRZL's own schemas through h3's validation helpers on both major versions.

Readme

@drzl/generator-h3

Generate h3 route handlers from a Drizzle schema, for Nitro and Nuxt: one module per table, every payload validated through h3's own validation helpers.

The version split

Established from the registry on 2026-08-11: nitropack 2.13.4 depends on h3: ^1.15.11, while h3's own latest tag is 2.0.1-rc.26, a release candidate. So npm install h3 gets a version no released Nitro uses, and every real Nuxt application is on v1. h3: 'v1' is the default.

The two differ in a way that reaches the emitted code. v2 takes a Standard Schema directly. v1 takes a ValidateFunction<T>, which is (data: unknown) => T | true | false | void, with no Standard Schema overload at all: h3's own documentation suggests passing objectSchema.safeParse, a zod-shaped idiom valibot and arktype do not have. So a v1 module carries a small adapter and a v2 module carries none.

One line of that adapter is load-bearing: the failure test is result.issues and not 'value' in result, because valibot's failure result carries a value key alongside its issues and the second form would report every valibot failure as a success. The Vercel AI SDK makes exactly that mistake, which is why @drzl/generator-ai ships a workaround for it.

Install

npm install -D @drzl/generator-h3
// drzl.config.ts
export default {
  schema: './src/db/schema.ts',
  generators: [
    { kind: 'zod', path: 'src/validators/zod' },
    { kind: 'h3', path: 'server/generated' },
  ],
};

Set h3: 'v2' when your project is on the 2.x line.

What it emits

GET /users, GET /users/:id, POST /users, PATCH /users/:id and DELETE /users/:id per table. A numeric path segment is converted rather than declared, because a segment is always a string and z.number() against "1" refuses every request.

The barrel is a route table rather than a mounted app: Nitro discovers handlers by file path, Nuxt by a different one, and a bare h3 project mounts them by hand, so any single choice would be wrong for the other two.

Full documentation: https://use-drzl.github.io/drzl/generators/h3

Licence

Apache-2.0. Generated output is yours under your own project's licence.