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

create-vexcms

v0.0.20

Published

Scaffolding CLI for [VEX CMS](https://github.com/ianyimi/vex) projects. Creates a complete Next.js application with Convex backend, Better Auth authentication, and an admin panel — ready to run.

Downloads

647

Readme

create-vexcms

Scaffolding CLI for VEX CMS projects. Creates a complete Next.js application with Convex backend, Better Auth authentication, and an admin panel — ready to run.

Usage

pnpm create vexcms@latest

Or with a project name:

pnpm create vexcms@latest my-project

Supports relative paths:

pnpm create vexcms@latest apps/website

Flags

| Flag | Description | |------|-------------| | --bare | Skip the marketing site template. Scaffolds an empty VEX CMS project with no collections. | | --orgs | Enable multi-tenant organizations (adds Better Auth organizations plugin). |

# Empty project with no pre-built collections
pnpm create vexcms@latest my-app --bare

# Project with organizations support
pnpm create vexcms@latest my-app --orgs

Interactive Prompts

The CLI walks you through:

  1. Project name — validates npm package name rules, supports . for current directory
  2. Framework — Next.js (recommended) or TanStack Start (coming soon)
  3. Email/password auth — enable or disable (default: yes)
  4. OAuth providers — multi-select from 30+ Better Auth providers (Google, GitHub, Discord, etc.)
  5. Organizations — enable multi-tenant support (default: no, skipped if --orgs passed)
  6. Git repository — initialize git (default: yes)
  7. Install dependencies — run package install (default: no)

Templates

Marketing Site (default)

Pre-built collections for a marketing website:

  • Pages — with title, slug, richtext content, draft/publish versioning, and live preview
  • Headers — name, logo upload, sticky option
  • Footers — name, richtext content, copyright text
  • Themes — name, colors, font family
  • Site Settings — site name, description, favicon upload

Also includes:

  • Landing page with sign-in/sign-up flow
  • First-user auto-admin promotion
  • Admin panel onboarding tour (driver.js)
  • Preview routes at /preview/[slug] with live preview support
  • Public page routes at /[slug] (published pages only)
  • Draft-aware queries using vexQuery

Bare (--bare)

Empty VEX CMS project with:

  • Authentication setup (Better Auth + Convex adapter)
  • Admin panel wired at /admin
  • Empty collections: [] in vex.config.ts
  • No onboarding tour

Getting Started

After scaffolding your project:

1. Install dependencies

cd my-project
pnpm install

2. Generate a Better Auth secret

pnpm secret:create

This generates a random 32-character string and copies it to your clipboard.

3. Configure environment variables

The CLI creates a .env.local file with NEXT_PUBLIC_SITE_URL set to your chosen port. Add the auth secret:

# .env.local (auto-generated)
NEXT_PUBLIC_SITE_URL=http://localhost:3010

# Add manually:
BETTER_AUTH_SECRET=your-generated-secret-here

4. Start VEX dev server

pnpm vex:dev

This starts the VEX CLI watcher (generates schema, types, and queries) and the Convex dev server. On first run, it will prompt you to create or select a Convex project.

5. Add environment variables to Convex

In the Convex Dashboard, navigate to your project's Settings > Environment Variables and add:

  • BETTER_AUTH_SECRET — the same secret from step 2
  • SITE_URLhttp://localhost:3010 (or your chosen port)

6. Start the Next.js dev server

In a separate terminal:

pnpm dev

7. Create your admin account

Open http://localhost:3010 in your browser. Click "Create Admin Account" to sign up. The first user is automatically promoted to admin and redirected to the admin panel.

Available Scripts

| Script | Description | |--------|-------------| | pnpm dev | Start Next.js development server | | pnpm vex:dev | Start VEX CLI watcher + Convex dev server | | pnpm vex:generate | One-shot schema/type/query generation | | pnpm vex:update | Update all @vexcms/* packages to latest | | pnpm secret:create | Generate a random 32-character secret and copy to clipboard | | pnpm build | Production build |

Versioning

create-vexcms is versioned alongside all @vexcms/* packages. Running pnpm create vexcms@latest always scaffolds with the latest package versions. You can also pin a specific version:

pnpm create [email protected]

The scaffolded project's @vexcms/* dependencies match the version of create-vexcms used.

License

MIT