npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

payload-invoicepdf

v1.0.0

Published

Payload CMS 3.x plugin for invoice and quote management with PDF generation, email sending, quote acceptance workflows, and a rich admin UI

Readme


A Payload CMS 3.x plugin that adds complete invoice and quote management — JSX-based PDF templates, email sending, quote acceptance workflows, customer autofill, and a rich admin UI — out of the box.

Features

  • PDF Generation — 4 built-in templates (Classic, Modern, Minimal, Bold) rendered with @react-pdf/renderer. Create custom templates with JSX.
  • Invoices & Quotes — Full collections with auto-numbering (INV-2026-0001), status tracking, line items, tax calculation, and due dates.
  • Email Sending — Send invoices/quotes via email with PDF attachments or live document links. Tracks send history per document.
  • Quote Acceptance — Clients receive a secure link to view, accept, or decline quotes. Accepting auto-creates a draft invoice.
  • Customer Autofill — Connect your existing customer collection. Select a customer and client fields fill automatically.
  • Product Autofill — Link your product catalog. Add a product to a line item and description + price populate instantly.
  • PDF History — Every generated PDF is stored and versioned. Browse and download previous versions from the admin.
  • Admin UI — Tabbed document views, sidebar actions (download, generate, send, convert), email composer drawer, and related document links.

Screenshots

Quote Management

PDF History

Send Email Drawer

Send History

Quote Acceptance Page

Email Template

Quick Start

npm install payload-invoicepdf
# or
pnpm add payload-invoicepdf
// payload.config.ts
import { invoicePdf, builtInTemplates } from 'payload-invoicepdf'

export default buildConfig({
  // ...your config
  plugins: [
    invoicePdf({
      productCollection: 'products',
      productFieldMapping: {
        name: 'name',
        price: 'price',
      },
      templates: builtInTemplates,
    }),
  ],
})

That's it. You now have invoices and quotes collections with PDF generation, a shop-info global for your company details, and sidebar buttons for downloading, generating, and emailing documents.

Built-in PDF Templates

| Template | Style | |----------|-------| | Classic | Traditional business invoice with clean lines | | Modern | Sleek, minimal layout with accent colors | | Minimal | Ultra-clean whitespace-heavy design | | Bold | Strong color header, high contrast |

Select a template per document, or set a default. Build your own with @react-pdf/renderer — see the Custom Templates Guide.

Documentation

| Guide | Description | |-------|-------------| | Getting Started | Installation, configuration, and your first invoice | | Configuration Reference | All config options with examples | | PDF Templates | Built-in templates and how to select them | | Custom Templates | Build your own PDF and email templates with JSX | | Email Sending | Email setup, templates, and send history | | Quote Acceptance | Secure link workflow for client quote responses | | Customer Autofill | Connect your customer collection for autofill |

Requirements

  • Payload CMS ^3.79.0
  • Node.js ^18.20.2 or >=20.9.0
  • A media collection with uploads enabled (or specify a custom mediaCollection)

License

MIT