pro-laico

payload fonts

by pro-laico
payload-plugins
Media & images
v3
^3.0.0
MIT

Overview

Summary generated from the README

Adds a Font typeface collection to Payload that subsets uploaded font files into served WOFF2 files. It offers an optional global for the active fonts, an export endpoint and a CLI that writes the active fonts to disk for next/font/local, plus declarative seeding. Requires Payload 3 and React 19, and Next.js 15 or later to serve the fonts.

Features

  • Font typeface collection that subsets uploaded files to WOFF2
  • Optional fontSet global for choosing the active fonts
  • Export endpoint that provides the active fonts
  • CLI that writes fonts to disk for next/font/local
  • Declarative seeding of fonts

Use cases

  • Manage brand typefaces in the Payload admin and serve them through next/font/local
  • Reduce font file size by subsetting uploaded fonts to WOFF2
  • Seed a project with a predefined set of fonts

From the author

Custom fonts for Payload CMS: a Font typeface collection that subsets uploaded files to served WOFF2s, an optional fontSet global, an export endpoint + CLI that writes the active fonts to disk for next/font/local, and declarative seeding.

Installation

npm i @pro-laico/payload-fonts

18

Stars

1

Forks

1

Open Issues

3 months ago

Last Updated

65

Weekly Downloads

v0.8.5

npm Version

309.7 KB

Unpacked Size

3

Dependencies

Repository stars

18+2 since Sep 7

Show data
Repository stars by day (UTC)
DateStars
Dec 6, 202618
Dec 5, 202618
Dec 4, 202618
Dec 3, 202618
Dec 2, 202618
Dec 1, 202618
Nov 30, 202618
Nov 29, 202618
Nov 28, 202618
Nov 27, 202619
Nov 26, 202619
Nov 25, 202619
Nov 24, 202619
Nov 23, 202619
Nov 22, 202619
Nov 21, 202619
Nov 20, 202619
Nov 19, 202619
Nov 18, 202619
Nov 17, 202618
Nov 16, 202618
Nov 15, 202618
Nov 14, 202618
Nov 13, 202618
Nov 12, 202618
Nov 11, 202618
Nov 10, 202618
Nov 9, 202618
Nov 8, 202618
Nov 7, 202618
Nov 6, 202618
Nov 5, 202618
Nov 4, 202618
Nov 3, 202618
Nov 2, 202618
Nov 1, 202618
Oct 31, 202618
Oct 30, 202618
Oct 29, 202618
Oct 28, 202618
Oct 27, 202618
Oct 26, 202618
Oct 25, 202618
Oct 24, 202618
Oct 23, 202618
Oct 22, 202618
Oct 21, 202617
Oct 20, 202617
Oct 19, 202617
Oct 18, 202617
Oct 17, 202617
Oct 16, 202617
Oct 15, 202617
Oct 14, 202617
Oct 13, 202617
Oct 12, 202617
Oct 11, 202617
Oct 10, 202617
Oct 9, 202617
Oct 8, 202617
Oct 7, 202617
Oct 6, 202617
Oct 5, 202617
Oct 4, 202617
Oct 3, 202617
Oct 2, 202616
Oct 1, 202616
Sep 30, 202616
Sep 29, 202616
Sep 28, 202616
Sep 27, 202616
Sep 26, 202616
Sep 25, 202616
Sep 24, 202616
Sep 23, 202616
Sep 22, 202616
Sep 21, 202616
Sep 20, 202616
Sep 19, 202616
Sep 18, 202616
Sep 17, 202616
Sep 16, 202616
Sep 15, 202616
Sep 14, 202616
Sep 13, 202616
Sep 12, 202616
Sep 11, 202616
Sep 10, 202616
Sep 9, 202616
Sep 8, 202616
Sep 7, 202616

Shared by 7 plugins in pro-laico/payload-plugins.

npm weekly downloads

65+37 since Sep 7

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 6, 202665
Dec 5, 202635
Dec 4, 202625
Dec 3, 202626
Dec 2, 202611
Dec 1, 202628
Nov 30, 202628
Nov 29, 202630
Nov 28, 202629
Nov 27, 202624
Nov 26, 202625
Nov 25, 202624
Nov 24, 20267
Nov 23, 20269
Nov 22, 202612
Nov 21, 202612
Nov 20, 202612
Nov 19, 202613
Nov 18, 202633
Nov 17, 202634
Nov 16, 202631
Nov 15, 202628
Nov 14, 202628
Nov 13, 202628
Nov 12, 202626
Nov 11, 20267
Nov 10, 202622
Nov 9, 202623
Nov 8, 202634
Nov 7, 202635
Nov 6, 202635
Nov 5, 202635
Nov 4, 202638
Nov 3, 202622
Nov 2, 202621
Nov 1, 202618
Oct 31, 202617
Oct 30, 202617
Oct 29, 202616
Oct 28, 202611
Oct 27, 202611
Oct 26, 202614
Oct 25, 20264
Oct 24, 20267
Oct 23, 20267
Oct 22, 202616
Oct 21, 202626
Oct 20, 202626
Oct 19, 202625
Oct 18, 202625
Oct 17, 202622
Oct 16, 202632
Oct 15, 202628
Oct 14, 202629
Oct 13, 202634
Oct 12, 202632
Oct 11, 202633
Oct 10, 202633
Oct 9, 202624
Oct 8, 202619
Oct 7, 202619
Oct 6, 202623
Oct 5, 202623
Oct 4, 202636
Oct 3, 202637
Oct 2, 202640
Oct 1, 202640
Sep 30, 202647
Sep 29, 202647
Sep 28, 202647
Sep 27, 202632
Sep 26, 202643
Sep 25, 202641
Sep 24, 202649
Sep 23, 202641
Sep 22, 202659
Sep 21, 202675
Sep 20, 202677
Sep 19, 202668
Sep 18, 202672
Sep 17, 202669
Sep 16, 202660
Sep 15, 202635
Sep 14, 202621
Sep 13, 202620
Sep 12, 202618
Sep 11, 202613
Sep 10, 202611
Sep 9, 202611
Sep 8, 202627
Sep 7, 202628

Each point is npm's rolling 7-day download count.

Health Score

56/100Good

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1281664108-payload-fonts.svg)](https://payloaddirectory.dev/plugins/1281664108-payload-fonts)
HTML
<a href="https://payloaddirectory.dev/plugins/1281664108-payload-fonts"><img src="https://payloaddirectory.dev/badge/1281664108-payload-fonts.svg" alt="Payload Directory"></a>
Updated Aug 14, 2026Created Jun 26, 2026Published Aug 14, 2026

README

@pro-laico/payload-fonts

Custom fonts for Payload CMS — a Font typeface collection that subsets uploaded files to served WOFF2s, an optional active-font global, and an export endpoint for next/font/local.

pnpm add @pro-laico/payload-fonts

Requires Payload ^3 and React 19. Next.js 15+ to serve — the download CLI writes a next/font/local module for your layout; uploading, subsetting, and exporting .woff2 work in any Payload app.

Documentation →

Troubleshooting

Fonts upload but nothing is served ("the font subsetter failed to load") — a bundler (Next/Turbopack) inlined the subsetter's wasm/native assets, so subset-font can't load at runtime. Keep them external in next.config:

serverExternalPackages: ['subset-font', 'harfbuzzjs', 'fontkit']

Ported from @pro-laico/fonts (Atomic Payload, MIT).

Similar plugins