GeorgeHulpoi

payload dependency graph

by GeorgeHulpoi
Databases & data
v2
^2.0.2
MIT

Overview

Summary generated from the README

Builds a dependency graph between Payload collections and globals and keeps it up to date by observing changes to any collection or global. It helps identify which resources depend on others through relationship fields, including nested and block-based relationships. Built for Payload 2.x.

Features

  • Creates a dependency graph between collections and globals
  • Updates the graph automatically when documents change
  • Handles nested relationship fields and recursive blocks
  • Shows which resource depends on which for targeted lookups

Use cases

  • Purge the right cached static pages when a related document changes
  • Invalidate cached API responses with depth above 0 for a specific resource
  • Find which content is affected by changes to a referenced document

From the author

This plugin creates a dependency graph between collections and globals. The graph updates automatically, because the plugin observes the changes made on any collection or globals.

Installation

npm i payload-dependency-graph

14

Stars

0

Forks

1

Open Issues

2 years ago

Last Updated

35

Weekly Downloads

v2.3.0

npm Version

145.7 KB

Unpacked Size

0

Dependencies

GitHub stars

140 since Sep 6

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

35+31 since Sep 6

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 202635
Dec 4, 20265
Dec 3, 20265
Dec 2, 202613
Dec 1, 202617
Nov 30, 202617
Nov 29, 202629
Nov 28, 202650
Nov 27, 202658
Nov 26, 202658
Nov 25, 202649
Nov 24, 202645
Nov 23, 202647
Nov 22, 202634
Nov 21, 202613
Nov 20, 20264
Nov 19, 20267
Nov 18, 202625
Nov 17, 202625
Nov 16, 202626
Nov 15, 202624
Nov 14, 202625
Nov 13, 202628
Nov 12, 202637
Nov 11, 202619
Nov 10, 202619
Nov 9, 202620
Nov 8, 202621
Nov 7, 202620
Nov 6, 202617
Nov 5, 20265
Nov 4, 20265
Nov 3, 20266
Nov 2, 20265
Nov 1, 20265
Oct 31, 20266
Oct 30, 20266
Oct 29, 20266
Oct 28, 20266
Oct 27, 20266
Oct 26, 20264
Oct 25, 20263
Oct 24, 20263
Oct 23, 20263
Oct 22, 202621
Oct 21, 202621
Oct 20, 202620
Oct 19, 202619
Oct 18, 202619
Oct 17, 202619
Oct 16, 202621
Oct 15, 20264
Oct 14, 202618
Oct 13, 202618
Oct 12, 202619
Oct 11, 202620
Oct 10, 202619
Oct 9, 202617
Oct 8, 202616
Oct 7, 20262
Oct 6, 20262
Oct 5, 20261
Oct 4, 20260
Oct 3, 20264
Oct 2, 20266
Oct 1, 20266
Sep 30, 20266
Sep 29, 202621
Sep 28, 202621
Sep 27, 202622
Sep 26, 202621
Sep 25, 202620
Sep 24, 202622
Sep 23, 202622
Sep 22, 202622
Sep 21, 202622
Sep 20, 202622
Sep 19, 202619
Sep 18, 202618
Sep 17, 202617
Sep 16, 202618
Sep 15, 20263
Sep 14, 20265
Sep 13, 20264
Sep 12, 20264
Sep 11, 20264
Sep 10, 20263
Sep 9, 20263
Sep 8, 20263
Sep 7, 20264
Sep 6, 20264

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

Health Score

0/100Archived

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/698381771-root.svg)](https://payloaddirectory.dev/plugins/698381771-root)
HTML
<a href="https://payloaddirectory.dev/plugins/698381771-root"><img src="https://payloaddirectory.dev/badge/698381771-root.svg" alt="Payload Directory"></a>
Updated Jan 2, 2024Created Sep 29, 2023Published Nov 13, 2023

README

Payload Dependency Graph Plugin

npm version Test Downloads

This plugin creates a dependency graph between collections and globals. The graph updates automatically, because the plugin observes the changes made on any collection or globals.

This plugin is created and maintained by gvhdev.com.

Use Cases

The plugin is useful when it comes to cached content or relationship-based changes.

  • You're caching a static page that uses nested relationship fields. If the page has fields with blocks, and these blocks are recursive and have their own relationship fields, it can be difficult to know which cache needs to be purged. For this situation, the plugin is perfect for knowing which resource is dependent on whom.
  • You're caching the API responses that contain a depth greater than 0. You can purge that cache for that specific resource when its dependencies change.

Documentation and API

Similar plugins