Application hosting

Hosting Node.js applications

Node.js runs JavaScript applications on a server. The application determines the version, database and background processes needed, so size the host around the project rather than the runtime alone.

Requirements last checked against the project's documentation.

A sensible first server for Node.js applications is 1 vCPU, 1 GB RAM and 10 GB of storage. The cheapest listed plan that fits is Basic from Kamatera at $4.00/month.

Understand the setup

Find the software and services needed to run the application.

See requirements

Budget your resources

Plan memory, storage and CPU for the way you will use it.

Open resource planner

Build your shortlist

Compare plans for the starting size, then review the provider and billing terms.

See plans

Must have

Installation requirements

  • Use a supported Node.js release that matches your application’s package requirements.
  • Run the application as a persistent service and keep configuration secrets outside the public directory.

Recommended

Planning guidance

  • Use an Active LTS or Maintenance LTS Node.js release for production.

Choosing a server for Node.js applications

Size for the JavaScript application: active requests, workers, database connections and retained files. Several processes on the same server share its memory and CPU.

Where to start

A sensible first server for Node.js applications

vCPU
1
RAM
1 GB
Disk
10 GB

Our estimated starting configuration for a small website on one server. Adjust it after observing resource use under real traffic.

Node.js releases · Size it for your workload

Our shortlist

Cheapest plans that meet this size

  1. Kamatera Lowest price

    Basic

    • 1 vCPU
    • 1 GB RAM
    • 20 GB NVMe SSD
    $4.00/mo list price
  2. OVHcloud

    OVHcloud VPS-1 (US)

    • 2 vCPU
    • 4 GB RAM
    • 40 GB NVMe SSD
    $4.54/mo list price
  3. Hostwinds

    Unmanaged Linux VPS 1 GB

    • 1 vCPU
    • 1 GB RAM
    • 30 GB SSD
    $4.99/mo list price
  4. VPSDime

    Linux4GB

    • 2 vCPU
    • 4 GB RAM
    • 20 GB SSD
    $5.00/mo list price
  5. Vultr

    Vultr Cloud Compute · 1 vCPU / 1 GB

    • 1 vCPU
    • 1 GB RAM
    • 25 GB Standard SSD
    $5.00/mo list price
  6. KnownHost

    Unmanaged VPS Entry

    • 1 vCPU
    • 1 GB RAM
    • 25 GB NVMe
    $5.00/mo list price
  7. RamNode

    Standard VPS 1 GB

    • 1 vCPU
    • 1 GB RAM
    • 40 GB SSD
    $5.00/mo list price
  8. Akamai Linode

    Linode Nanode 1 GB

    • 1 vCPU
    • 1 GB RAM
    • 25 GB SSD
    $5.00/mo list price

One cheapest plan per provider, based on each provider's standard list price. Check the plan page for introductory and renewal pricing before you buy.

Deploy with

Supported paths

  • Managed application platform
  • Node.js process supervised by the operating system behind a reverse proxy
  • Container-based deployment

The host must provide

Runtime

Node.js
Must satisfy the application package engines field; choose a supported LTS line
Package manager
Use the project lockfile and matching npm, pnpm, or Yarn toolchain

Storage

Persistent data

The runtime does not define application storage needs. Keep mutable uploads and generated data on persistent storage; build output and dependencies are release artifacts.

Step by step

Production deployment outline

  1. Choose the runtime required by the application

    Read the project engines field and dependency requirements, then select a maintained Node.js LTS release.

    Official instructions
  2. Install repeatably and build

    Deploy the lockfile and use the matching package manager in a clean install; run the application build when its framework requires one.

    Official instructions
  3. Run as a supervised service

    Use a dedicated service account, a process supervisor such as systemd or a container runtime, and a reverse proxy with HTTPS.

    Official instructions
  4. Keep secrets and writable data separate

    Supply secrets through the service environment or secret store, and mount only the directories the app must write.

    Official instructions

Security

Before you go public

  • Use supported Node.js releases and update dependencies from reviewed lockfile changes.
  • Run with a non-root service account, minimize writable paths, and keep secrets out of the repository.
  • Put the service behind HTTPS and restrict public ports to the reverse proxy.

Cost

Beyond the server price

  • Resource needs are determined by the application framework, request patterns, build process, background workers, and data stores.
  • A Node.js API, build worker and real-time chat service can have very different hosting needs. Size for the application you will run.

Want the full monthly bill? Use the hosting cost calculator. Add storage, backups and other costs to your estimate.