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-effect

v0.5.4

Published

Generate Effect Schema validators from a Drizzle schema

Readme

@drzl/generator-effect

CI npm

Effect Schema validators from your Drizzle analysis (insert / update / select).

💚 Sponsor DRZL

DRZL is crafted nights & weekends. Sponsorships keep the generators fast, tested, and free.

Sponsor DRZL

  • Every dollar speeds up CI hardware and offsets long test runs on my aging laptop.
  • Sponsors get roadmap input and priority responses in GitHub Issues.
  • Prefer a quick overview? The current goals and thank-yous are at https://use-drzl.github.io/drzl/sponsor.

Install

effect is an optional peer, so it is never installed for you. Install it yourself:

npm install effect

effect 3.x, imported as effect/Schema from core. Not @effect/schema, which stopped at 0.75.5 and predates the move into core, and not the 4.0 beta. The floor is 3.13.0, where Schema.standardSchemaV1 first appears.

The peer is optional rather than required because [email protected] declares its own optional peer on effect as >=4.0.0-beta.83 || >=4.0.0, and npm installs a required peer automatically. Declaring one made npm install @drzl/cli [email protected] fail with ERESOLVE for every consumer, whether or not they used this generator.

Use

Add to drzl.config.ts:

generators: [{ kind: 'effect', path: 'src/validators/effect' }];

Output

  • Insert<Table>Schema, Update<Table>Schema, Select<Table>Schema as plain Schema.Structs
  • Standard<Name> beside each: Schema.standardSchemaV1(<Name>), which is what a tRPC or oRPC route needs, since a bare Schema.Struct carries no ~standard key
  • Insert<Table>Input, Update<Table>Input, Select<Table>Output type aliases
  • Optional index barrel, nested relation schemas and a duplicate finder

Both forms are emitted because neither substitutes for the other: the wrapper is the only one with a ~standard, and the bare Struct is the only one that keeps .fields, which Schema.pick, Schema.omit and a spread into a wider Struct all read.

Custom names

affix renames the exported schemas and type aliases, and tableCase: 'pascal' upper-camels the Drizzle export name (users -> Users) instead of interpolating it verbatim. Omit it and the names above are unchanged. The Standard prefix sits in front of whatever the affix resolved, so StandardInsertUsersSchema wraps InsertUsersSchema.

generators: [
  {
    kind: 'effect',
    path: 'src/validators/effect',
    affix: {
      tableCase: 'pascal',
      schema: { suffix: 'Schema' },
      type: {
        prefix: { insert: 'Create', update: 'Edit', select: '' },
        suffix: { insert: 'Input', update: 'Input', select: '' },
      },
    },
  },
];

See the Effect generator docs for the column table, the character-count rule and how NaN and the infinities are handled, which runs the opposite way here from every other validator DRZL emits.