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

ezorm

v1.1.2

Published

Ezorm CLI for migrations and database workflows.

Downloads

19

Readme

ezorm

ezorm is the published CLI package for Ezorm workflows.

Run Without Installing

npx ezorm --help

Install Locally

npm install ezorm

Commands

ezorm init [--ts|--js]
ezorm migrate generate [name]
ezorm migrate apply
ezorm migrate status
ezorm migrate resolve --applied <filename>
ezorm migrate resolve --rolled-back <filename>
ezorm db pull
ezorm db push

Config

Start with the scaffold:

npx ezorm init

Supported config filenames:

  • ezorm.config.ts
  • ezorm.config.mts
  • ezorm.config.cts
  • ezorm.config.mjs
  • ezorm.config.js
  • ezorm.config.cjs

Config files must export:

  • databaseUrl
  • optional models
  • optional modelPaths
  • optional migrationsDir

When models is omitted, the CLI scans modelPaths for files containing @Model or Model(...) and derives the schema from the discovered model metadata. Generated configs prefer src/models or models, and broad modelPaths values such as ["src"] or ["."] may import any matching module under those roots. Prefer narrow model roots or an explicit models array when you need predictable, side-effect-free loading.

TypeScript scaffolds write ezorm.config.ts, ensure experimentalDecorators and emitDecoratorMetadata are enabled in tsconfig.json, default modelPaths to ["src/models"] when src/ exists or ["models"] otherwise, and create an example Todo model when the project does not already contain one.

Schema-producing commands fail fast when a loaded model resolves to incomplete metadata, such as no fields or no single-column primary key. If migrate generate, migrate status, or db push report invalid model metadata, check that your decorators executed, the model is loaded through a supported TypeScript or JavaScript entrypoint, and TypeScript decorator settings are enabled.

JavaScript scaffolds write ezorm.config.mjs for ESM packages and ezorm.config.cjs otherwise. The generated JavaScript Todo example uses direct decorator function calls so it can run without TypeScript syntax.

migrations/ is the default migration directory. Set migrationsDir in the config to override it.

Example Workflow

npx ezorm init
npx ezorm migrate generate init
npx ezorm migrate apply
npx ezorm migrate status
npx ezorm db pull
npx ezorm db push

db push is the direct additive schema-sync shortcut for development. migrate resolve only reconciles migration history; it does not execute SQL.

For the TypeScript APIs behind Ezorm applications, see the repository root README and the @ezorm/* packages.