pro-laico

payload seed

by pro-laico
payload-plugins
Databases & data
v3
^3.0.0
MIT

Overview

Summary generated from the README

Lets you write seed data in seed.ts files and reference other documents with typed tokens instead of raw ids. The plugin orders dependencies, creates the documents, and attaches upload files inline. It adds a POST /api/seed endpoint and injects a SeedRegistry into payload-types.ts. Requires Payload 3 and React 19.

Features

  • Seed data defined in seed.ts files
  • Typed tokens for cross-file document references
  • Automatic dependency ordering when creating documents
  • Inline upload file attachment for media
  • POST /api/seed endpoint to trigger seeding
  • SeedRegistry type injected into payload-types.ts

Use cases

  • Populate a fresh development database with consistent related content
  • Set up fixtures for demos, staging or test environments
  • Seed related collections without hand-managing document ids

From the author

Schema-aware, type-safe seeding plugin for Payload CMS: typed cross-file references with dependency tracking, robust media uploads, a POST /api/seed endpoint, and a SeedRegistry injected into payload-types.ts.

Installation

npm i @pro-laico/payload-seed

18

Stars

1

Forks

1

Open Issues

3 months ago

Last Updated

114

Weekly Downloads

v0.8.5

npm Version

218.0 KB

Unpacked Size

0

Dependencies

Repository stars

18+2 since Sep 6

Show data
Repository stars by day (UTC)
DateStars
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
Sep 6, 202616

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

npm weekly downloads

97−147 since Sep 6

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 202697
Dec 4, 202695
Dec 3, 2026100
Dec 2, 202677
Dec 1, 202662
Nov 30, 202658
Nov 29, 202649
Nov 28, 202644
Nov 27, 202642
Nov 26, 202640
Nov 25, 202631
Nov 24, 202644
Nov 23, 202643
Nov 22, 202648
Nov 21, 202642
Nov 20, 202646
Nov 19, 202648
Nov 18, 202674
Nov 17, 202666
Nov 16, 202676
Nov 15, 202680
Nov 14, 2026103
Nov 13, 2026106
Nov 12, 2026109
Nov 11, 202690
Nov 10, 2026121
Nov 9, 2026116
Nov 8, 2026172
Nov 7, 2026180
Nov 6, 2026242
Nov 5, 2026265
Nov 4, 2026295
Nov 3, 2026383
Nov 2, 2026442
Nov 1, 2026390
Oct 31, 2026359
Oct 30, 2026297
Oct 29, 2026260
Oct 28, 2026217
Oct 27, 2026111
Oct 26, 202648
Oct 25, 202662
Oct 24, 202665
Oct 23, 202657
Oct 22, 202665
Oct 21, 2026104
Oct 20, 202694
Oct 19, 2026120
Oct 18, 2026104
Oct 17, 2026130
Oct 16, 2026153
Oct 15, 2026197
Oct 14, 2026175
Oct 13, 2026176
Oct 12, 2026151
Oct 11, 2026145
Oct 10, 2026120
Oct 9, 202698
Oct 8, 202653
Oct 7, 202637
Oct 6, 202638
Oct 5, 202642
Oct 4, 202669
Oct 3, 202673
Oct 2, 2026119
Oct 1, 2026121
Sep 30, 2026121
Sep 29, 2026143
Sep 28, 2026136
Sep 27, 2026120
Sep 26, 2026121
Sep 25, 202698
Sep 24, 2026103
Sep 23, 2026119
Sep 22, 202689
Sep 21, 2026122
Sep 20, 2026131
Sep 19, 2026148
Sep 18, 2026146
Sep 17, 2026187
Sep 16, 2026174
Sep 15, 2026173
Sep 14, 2026140
Sep 13, 2026120
Sep 12, 202694
Sep 11, 202683
Sep 10, 202638
Sep 9, 2026119
Sep 8, 2026176
Sep 7, 2026209
Sep 6, 2026244

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

Health Score

57/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-seed.svg)](https://payloaddirectory.dev/plugins/1281664108-payload-seed)
HTML
<a href="https://payloaddirectory.dev/plugins/1281664108-payload-seed"><img src="https://payloaddirectory.dev/badge/1281664108-payload-seed.svg" alt="Payload Directory"></a>
Updated Aug 14, 2026Created Jun 26, 2026Published Aug 14, 2026

README

@pro-laico/payload-seed

Type-safe database seeding for Payload CMS — write seed data in seed.ts files, reference other docs with typed tokens instead of raw ids, attach upload files inline, and the plugin orders dependencies and creates everything.

pnpm add @pro-laico/payload-seed

Requires Payload ^3 and React 19. No framework requirement — zero next/ imports, no next peer; runs in any Payload app.

Documentation →

Similar plugins