{
 "kind": "tool",
 "slug": "testcontainers-npm",
 "path": "tools/testcontainers-npm/",
 "name": "Testcontainers for Node.js",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Testing",
   "tools/testing/"
  ]
 ],
 "lead": "Starts throwaway Docker containers (databases, browsers) for integration tests.",
 "chips": [
  {
   "label": "Testing",
   "path": "tools/testing/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install testcontainers"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/testcontainers/testcontainers-node"
  },
  {
   "label": "Website",
   "href": "https://github.com/testcontainers/testcontainers-node#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/testcontainers/testcontainers-node"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Nov 19, 2026. ",
   "src": "https://github.com/testcontainers/testcontainers-node"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "9 projects",
   "status": "info",
   "sub": "#50 of 122 in its category",
   "note": "Dependency in 9 public GitHub projects set up for AI coding agents that we scanned (0.1%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Community skills",
   "status": "info",
   "sub": "1 skills by others",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Testcontainers for Node.js does",
   "parts": [
    {
     "t": "prose",
     "text": "Starts throwaway Docker containers (databases, browsers) for integration tests."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Testcontainers for Node.js popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "56",
       "of": "/ 100",
       "l": "Gid Score, #1347 overall"
      },
      {
       "n": "12.8M",
       "l": "downloads a week, npm"
      },
      {
       "n": "2,646",
       "l": "GitHub stars"
      },
      {
       "n": "9",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Testcontainers for Node.js is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Testcontainers for Node.js joined the catalog on its public numbers (12,788,531 downloads a week on npm and 2,646 GitHub stars), not on our project count: it is a dependency in 19 public GitHub projects of our scan, 9 of them set up for AI coding agents.",
      "Projects that use it most often also use tsx (52.6%), Biome (42.1%), pg (42.1%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "6 projects, 0.2%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 52.6% of its projects",
       "v": "tsx",
       "path": "tools/tsx/"
      },
      {
       "l": "In 42.1% of its projects",
       "v": "Biome",
       "path": "tools/biomejs/"
      },
      {
       "l": "In 42.1% of its projects",
       "v": "pg",
       "path": "tools/pg/"
      },
      {
       "l": "In 57.9% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 36.8% of its projects",
       "v": "AWS SDK for JavaScript (S3)",
       "path": "tools/aws-sdk-client-s3/"
      },
      {
       "l": "In 89.5% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 31.6% of its projects",
       "v": "ioredis",
       "path": "tools/ioredis/"
      },
      {
       "l": "In 31.6% of its projects",
       "v": "yaml",
       "path": "tools/yaml/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Testcontainers for Node.js",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/cristianrgreco"
       ]
      },
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "testcontainers-integration-tests: Write integration tests using TestContainers for .NET with xUnit. Covers infrastructure testing with real databases, message queues, and cac"
       ]
      },
      {
       "title": "More in Testing",
       "path": "tools/testing/",
       "items": [
        {
         "text": "Vitest",
         "path": "tools/vitest/"
        },
        {
         "text": "Playwright (JavaScript)",
         "path": "tools/playwright-test/"
        },
        {
         "text": "Testing Library",
         "path": "tools/testing-library/"
        },
        {
         "text": "jsdom",
         "path": "tools/jsdom/"
        },
        {
         "text": "Jest",
         "path": "tools/jest/"
        },
        {
         "text": "pytest",
         "path": "tools/pytest/"
        },
        {
         "text": "Happy DOM",
         "path": "tools/happy-dom/"
        },
        {
         "text": "axe-core Playwright",
         "path": "tools/axe-core-playwright/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Testcontainers for Node.js",
       "me": true,
       "facts": [
        "MIT",
        "Gid 56",
        "12.8M/wk"
       ]
      }
     ],
     "more": "Compare Testcontainers for Node.js with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install testcontainers"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Testcontainers for Node.js yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm testcontainers"
  ],
  [
   "Category",
   "Testing"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "56.1"
  ],
  [
   "Rank in category",
   "#50 of 122"
  ],
  [
   "GitHub",
   "testcontainers/testcontainers-node"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/testcontainers.png"
}