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

@mdxe/vercel

v1.9.0

Published

Deploy MDX projects to Vercel

Downloads

6

Readme

@mdxe/vercel

Deploy MDX projects to Vercel via CLI, REST API, or managed API with automatic framework detection.

Installation

pnpm add @mdxe/vercel

Usage

Simple deployment (auto-detects CLI or API)

import { deploy } from '@mdxe/vercel'

const result = await deploy({
  projectDir: './my-project',
  projectName: 'my-site',
  token: process.env.VERCEL_TOKEN,
})

console.log(`Deployed to: ${result.url}`)

Production deployment

const result = await deploy({
  projectDir: './my-next-app',
  production: true,
  token: process.env.VERCEL_TOKEN,
})

With custom configuration

await deploy({
  projectDir: './my-app',
  framework: 'nextjs',
  buildCommand: 'build',
  outputDir: '.next',
  env: {
    API_KEY: 'secret',
  },
  regions: ['sfo1', 'iad1'],
})

API Client

import { VercelApi, createVercelApiFromEnv } from '@mdxe/vercel/api'

const api = createVercelApiFromEnv()

// Create deployment
const deployment = await api.createDeployment({
  name: 'my-project',
  files: [{ file: 'index.html', data: '<html>...</html>' }],
  target: 'production',
})

// Get deployment status
const status = await api.getDeployment(deployment.id)

// Wait for deployment
await api.waitForDeployment(deployment.id, {
  timeout: 600000,
  pollInterval: 5000,
})

// Cancel deployment
await api.cancelDeployment(deployment.id)

// Delete deployment
await api.deleteDeployment(deployment.id)

Project Management

import { linkProject, setEnvVars } from '@mdxe/vercel'

// Link or create project
const { projectId } = await linkProject({
  projectDir: './my-app',
  projectName: 'my-site',
  framework: 'nextjs',
  token: process.env.VERCEL_TOKEN,
})

// Set environment variables
await setEnvVars({
  projectId,
  env: {
    DATABASE_URL: 'postgres://...',
    API_KEY: 'secret',
  },
  target: ['production', 'preview'],
  token: process.env.VERCEL_TOKEN,
})

Git Integration

await deploy({
  projectDir: './my-app',
  git: {
    commitSha: '1234567',
    commitMessage: 'Add new feature',
    commitAuthorName: 'Alice',
    branch: 'main',
  },
})

Framework Detection

Automatically detects and configures:

  • Next.js
  • Vite
  • Remix
  • Astro
  • Gatsby
  • Nuxt
  • SvelteKit

Environment Variables

  • VERCEL_TOKEN - Vercel API token
  • VERCEL_TEAM_ID - Team ID (for team deployments)
  • VERCEL_API_URL - Custom managed API URL (optional)

Deployment Methods

  1. Vercel CLI (default if installed) - Uses npx vercel
  2. Vercel REST API - Direct API calls with file uploads
  3. Managed API - Uses oauth.do authentication