ncc

Bundle Node.js modules and dependencies into a single executable file.

246|42|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/vercel-labs/vercel-plugin --skill ncc
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ncc
Source: https://github.com/vercel-labs/vercel-plugin/tree/main/skills/ncc
Command: npx skills add https://github.com/vercel-labs/vercel-plugin --skill ncc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies Node.js project deployment by bundling all dependencies into a single, self-contained file, eliminating the need for a node_modules directory.

Core Features & Use Cases

  • Serverless Function Optimization: Deploy lean, single-file serverless functions.
  • CLI Tool Distribution: Create self-contained, easily distributable command-line tools.
  • Docker Image Reduction: Minimize Docker image sizes by excluding node_modules.

Quick Start

Use ncc to build the main entry point of your Node.js project into a single output file.

Frequently Asked Questions about ncc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bundle Node.js modules into a single file for serverless deployment?▼

You can bundle Node.js modules into a single file for serverless deployment by using a CLI tool that inlines all required packages and dependencies, eliminating the need to upload a node_modules directory.

What is the best way to reduce Docker image size for Node.js applications?▼

To reduce Docker image size for Node.js applications, bundle your main entry point into a single self-contained file to exclude the node_modules directory entirely from the image build context.

Does the Node.js bundling process support TypeScript compilation natively?▼

Yes, the Node.js bundling process supports TypeScript compilation natively, handling the transformation and asset inclusion directly during the build to output a single executable JavaScript file.

Can I create distributable CLI tools without shipping a node_modules folder?▼

Yes, you can create distributable CLI tools without shipping a node_modules folder by bundling the Node.js project and its dependencies into a single, self-contained executable file.

Why do I need to inline all required packages for serverless functions?▼

Inlining all required packages for serverless functions is necessary to deploy lean, single-file functions, which reduces deployment size and eliminates cold-start delays associated with loading external dependencies.