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

@vexcms/cli

v0.0.8

Published

The CLI tool for [VEX CMS](https://github.com/ianyimi/vex) — handles schema generation, type generation, file watching, auto-migration, and Convex process management during development and deployment.

Downloads

789

Readme

@vexcms/cli

The CLI tool for VEX CMS — handles schema generation, type generation, file watching, auto-migration, and Convex process management during development and deployment.

Installation

pnpm add -D @vexcms/cli

The CLI is exposed as the vex binary.

Commands

vex dev

Starts the development workflow:

vex dev [--once]
  1. Loads your vex.config.ts
  2. Generates Convex schema (vex.schema.ts) and types (vex.types.ts)
  3. Generates typed collection API files (convex/vex/api/*.ts)
  4. Starts convex dev in the background
  5. Watches for config changes and regenerates on save
  6. Traces import dependencies to watch only relevant files

--once — Generate schema, push to Convex, and exit (no long-running watch).

vex deploy

Handles production deployment:

vex deploy
  1. Generates schema for production
  2. Runs auto-migration if enabled (interim schema → mutations → final schema)
  3. Executes convex deploy

Use this instead of convex deploy directly to ensure VEX schema is up to date.

vex generate

Force-regenerates all typed collection API files:

vex generate

Regenerates all files in convex/vex/api/ and convex/vex/model/api/, runs ESLint auto-fix, and cleans up stale files from removed collections.

What It Generates

| Output | Path | Description | |--------|------|-------------| | VEX Schema | convex/vex.schema.ts | Convex defineTable() exports for all collections | | VEX Types | convex/vex.types.ts | TypeScript types for all collections | | Collection APIs | convex/vex/api/{slug}.ts | Query and mutation exports per collection | | Model APIs | convex/vex/model/api/{slug}.ts | Typed helper functions per collection | | Schema sync | convex/schema.ts | Auto-updated to import VEX tables |

All generated files include a // ⚠️ AUTO-GENERATED BY VEX CMS — DO NOT EDIT ⚠️ header. Stale files from removed collections are automatically cleaned up.

File Watching

  • Uses Chokidar for file system monitoring with debouncing
  • Traces imports from vex.config.ts to build a dependency tree
  • Only watches files that your config actually imports
  • Re-traces imports after each regeneration to pick up new dependencies

Auto-Migration

When schema changes are detected during vex dev or vex deploy:

  1. Diffs old vs new schema
  2. Creates an interim schema (new required fields become optional, removed fields re-added as optional)
  3. Deploys interim schema
  4. Executes field removal and backfill mutations
  5. Deploys final schema

Config Resolution

Looks for config files in this order: vex.config.ts, vex.config.mts, vex.config.js, vex.config.mjs. Uses Jiti for dynamic TypeScript loading with tsconfig path alias support.

Peer Dependencies

  • @vexcms/core — Core VEX CMS types and utilities
  • convex — Convex backend (>=1.0.0)