{
 "kind": "tool",
 "slug": "pdfkit-npm",
 "path": "tools/pdfkit-npm/",
 "name": "PDFKit (JavaScript)",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Files, images and media",
   "tools/files-media/"
  ]
 ],
 "lead": "JavaScript library for generating PDFs programmatically.",
 "chips": [
  {
   "label": "Files, images and media",
   "path": "tools/files-media/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install pdfkit"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/foliojs/pdfkit"
  },
  {
   "label": "Website",
   "href": "http://pdfkit.org/"
  }
 ],
 "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/foliojs/pdfkit"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 22, 2026",
   "note": "Latest GitHub release Nov 20, 2026. ",
   "src": "https://github.com/foliojs/pdfkit"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "27 projects",
   "status": "info",
   "sub": "#32 of 281 in its category",
   "note": "Dependency in 27 public GitHub projects set up for AI coding agents that we scanned (0.4%).",
   "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 PDFKit (JavaScript) does",
   "parts": [
    {
     "t": "prose",
     "text": "JavaScript library for generating PDFs programmatically."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "PDFKit (JavaScript) popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "69",
       "of": "/ 100",
       "l": "Gid Score, #445 overall"
      },
      {
       "n": "19.2M",
       "l": "downloads a week, npm"
      },
      {
       "n": "10.7K",
       "l": "GitHub stars"
      },
      {
       "n": "27",
       "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 PDFKit (JavaScript) is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "PDFKit (JavaScript) is a dependency in 27 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.6% of the 4,867 JavaScript/TypeScript ones), #32 of 281 in files, images and media.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 76; those are left out of every share on this page.",
      "The most used alternative in our scan is jsPDF (132 projects).",
      "Projects that use it most often also use Vitest (74.1%), jsdom (51.9%), Testing Library (48.1%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "20 projects, 0.6%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "14 projects, 0.5%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "13 projects, 0.5%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "6 projects, 1.3%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 74.1% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 51.9% of its projects",
       "v": "jsdom",
       "path": "tools/jsdom/"
      },
      {
       "l": "In 48.1% of its projects",
       "v": "Testing Library",
       "path": "tools/testing-library/"
      },
      {
       "l": "In 51.9% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      },
      {
       "l": "In 63.0% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 37.0% of its projects",
       "v": "bcryptjs",
       "path": "tools/bcryptjs/"
      },
      {
       "l": "In 37.0% of its projects",
       "v": "Nodemailer",
       "path": "tools/nodemailer/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "React",
       "path": "tools/react/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about PDFKit (JavaScript)",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "pdfkit: Display and manipulate PDF documents using PDFKit. Use when embedding PDFView to show PDF files, creating or modifying PDFDocument instances"
       ]
      },
      {
       "title": "More in Files, images and media",
       "path": "tools/files-media/",
       "items": [
        {
         "text": "Sharp",
         "path": "tools/sharp/"
        },
        {
         "text": "Pillow",
         "path": "tools/pillow/"
        },
        {
         "text": "Nodemailer",
         "path": "tools/nodemailer/"
        },
        {
         "text": "SheetJS",
         "path": "tools/xlsx/"
        },
        {
         "text": "qrcode (JavaScript)",
         "path": "tools/qrcode-npm/"
        },
        {
         "text": "JSZip",
         "path": "tools/jszip/"
        },
        {
         "text": "PDF.js",
         "path": "tools/pdfjs-dist/"
        },
        {
         "text": "openpyxl",
         "path": "tools/openpyxl/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "PDFKit (JavaScript)",
       "me": true,
       "facts": [
        "MIT",
        "Gid 69",
        "19.2M/wk"
       ]
      },
      {
       "name": "jsPDF",
       "why": "Generate PDF documents directly from JavaScript in browsers and Node.js.",
       "path": "tools/jspdf/",
       "facts": [
        "MIT",
        "Gid 79",
        "22.2M/wk"
       ]
      },
      {
       "name": "pdf-lib",
       "why": "Create and modify PDF documents with JavaScript in Node.js and browsers.",
       "path": "tools/pdf-lib/",
       "facts": [
        "MIT",
        "Gid 74",
        "34.8M/wk"
       ]
      }
     ],
     "more": "Compare PDFKit (JavaScript) with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install pdfkit"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for PDFKit (JavaScript) yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm pdfkit"
  ],
  [
   "Category",
   "Files, images and media"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "68.9"
  ],
  [
   "Rank in category",
   "#32 of 281"
  ],
  [
   "GitHub",
   "foliojs/pdfkit"
  ],
  [
   "Last change",
   "Nov 22, 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/foliojs.png"
}