← English news
Priority 4/5

Vercel v0 Now Supports Private Packages via Shared NPM Credentials

Vercel has updated its generative UI platform, v0, to read npm credentials directly from shared environment variables. This allows the tool to securely install and utilize private packages or internal design systems during the UI generation process.

Vercel v0 Now Supports Private Packages via Shared NPM Credentials

Vercel has enhanced its generative UI tool, v0, by enabling it to access npm credentials configured in your team's Shared Environment Variables. Previously, v0 was limited to utilizing publicly available packages when generating components. With this update, v0 can automatically resolve and install private packages, allowing developers to leverage proprietary design systems and custom internal component libraries directly within generated outputs.

Primary source

Open Vercel Changelog ↗

This article summarizes the source. Check the original for full details and conditions.

Comparison

AspectBefore / AlternativeAfter / This
Accessible PackagesPublicly available npm packages onlyPublic, private, and custom registry packages
Credential ResolutionNo built-in method to pass registry authentication to v0Automatically reads NPM_TOKEN or NPM_RC from shared environment variables
Design System IntegrationManual rewriting or refactoring to fit internal librariesDirectly references and installs internal design system components

Action Checklist

  1. Configure Shared Environment Variables in your Vercel project settings. Ensure variables are scoped to Development or Preview environments.
  2. Define NPM_TOKEN for standard private packages. Use this environment variable for private packages hosted directly on registry.npmjs.org.
  3. Define NPM_RC for custom registry setups. Use this if you require authentication with third-party or multi-registry endpoints.
  4. Run v0 to generate UI using your internal package components. The v0 engine will automatically resolve dependencies using the provided credentials.