Records changes to Payload fields or whole collections as time-series history in TimescaleDB hypertables. Tracking is enabled with a custom hypervalue flag on a collection or field, and history is read through a local API method or REST endpoints. Requires Payload 3.79 or newer with the Postgres adapter and TimescaleDB 2.15 or newer.
A Payload CMS plugin to track and store scalar fields in time-series history using Postgres and TimescaleDB
Installation
npm i @b3nab/payload-hypervalue4
Stars
0
Forks
0
Open Issues
8 months ago
Last Updated
0
Weekly Downloads
v
npm Version
Dependencies
40 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 4 |
| Dec 4, 2026 | 4 |
| Dec 3, 2026 | 4 |
| Dec 2, 2026 | 4 |
| Dec 1, 2026 | 4 |
| Nov 30, 2026 | 4 |
| Nov 29, 2026 | 4 |
| Nov 28, 2026 | 4 |
| Nov 27, 2026 | 4 |
| Nov 26, 2026 | 4 |
| Nov 25, 2026 | 4 |
| Nov 24, 2026 | 4 |
| Nov 23, 2026 | 4 |
| Nov 22, 2026 | 4 |
| Nov 21, 2026 | 4 |
| Nov 20, 2026 | 4 |
| Nov 19, 2026 | 4 |
| Nov 18, 2026 | 4 |
| Nov 17, 2026 | 4 |
| Nov 16, 2026 | 4 |
| Nov 15, 2026 | 4 |
| Nov 14, 2026 | 4 |
| Nov 13, 2026 | 4 |
| Nov 12, 2026 | 4 |
| Nov 11, 2026 | 4 |
| Nov 10, 2026 | 4 |
| Nov 9, 2026 | 4 |
| Nov 8, 2026 | 4 |
| Nov 7, 2026 | 4 |
| Nov 6, 2026 | 4 |
| Nov 5, 2026 | 4 |
| Nov 4, 2026 | 4 |
| Nov 3, 2026 | 4 |
| Nov 2, 2026 | 4 |
| Nov 1, 2026 | 4 |
| Oct 31, 2026 | 4 |
| Oct 30, 2026 | 4 |
| Oct 29, 2026 | 4 |
| Oct 28, 2026 | 4 |
| Oct 27, 2026 | 4 |
| Oct 26, 2026 | 4 |
| Oct 25, 2026 | 4 |
| Oct 24, 2026 | 4 |
| Oct 23, 2026 | 4 |
| Oct 22, 2026 | 4 |
| Oct 21, 2026 | 4 |
| Oct 20, 2026 | 4 |
| Oct 19, 2026 | 4 |
| Oct 18, 2026 | 4 |
| Oct 17, 2026 | 4 |
| Oct 16, 2026 | 4 |
| Oct 15, 2026 | 4 |
| Oct 14, 2026 | 4 |
| Oct 13, 2026 | 4 |
| Oct 12, 2026 | 4 |
| Oct 11, 2026 | 4 |
| Oct 10, 2026 | 4 |
| Oct 9, 2026 | 4 |
| Oct 8, 2026 | 4 |
| Oct 7, 2026 | 4 |
| Oct 6, 2026 | 4 |
| Oct 5, 2026 | 4 |
| Oct 4, 2026 | 4 |
| Oct 3, 2026 | 4 |
| Oct 2, 2026 | 4 |
| Oct 1, 2026 | 4 |
| Sep 30, 2026 | 4 |
| Sep 29, 2026 | 4 |
| Sep 28, 2026 | 4 |
| Sep 27, 2026 | 4 |
| Sep 26, 2026 | 4 |
| Sep 25, 2026 | 4 |
| Sep 24, 2026 | 4 |
| Sep 23, 2026 | 4 |
| Sep 22, 2026 | 4 |
| Sep 21, 2026 | 4 |
| Sep 20, 2026 | 4 |
| Sep 19, 2026 | 4 |
| Sep 18, 2026 | 4 |
| Sep 17, 2026 | 4 |
| Sep 16, 2026 | 4 |
| Sep 15, 2026 | 4 |
| Sep 14, 2026 | 4 |
| Sep 13, 2026 | 4 |
| Sep 12, 2026 | 4 |
| Sep 11, 2026 | 4 |
| Sep 10, 2026 | 4 |
| Sep 9, 2026 | 4 |
| Sep 8, 2026 | 4 |
| Sep 7, 2026 | 4 |
| Sep 6, 2026 | 4 |
Trends appear after 7 days of data. Daily snapshots have not started yet.
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1175545924-payload-hypervalue)<a href="https://payloaddirectory.dev/plugins/1175545924-payload-hypervalue"><img src="https://payloaddirectory.dev/badge/1175545924-payload-hypervalue.svg" alt="Payload Directory"></a>README
Time-series history tracking for Payload CMS fields and collections, powered by TimescaleDB hypertables.
pnpm add @b3nab/payload-hypervalue
import { buildConfig } from "payload";
import { payloadHypervalue } from "@b3nab/payload-hypervalue";
export default buildConfig({
plugins: [payloadHypervalue()],
collections: [
{
slug: "products",
custom: { hypervalue: true }, // collection-level: track all scalar fields
fields: [
{ name: "title", type: "text" },
{ name: "price", type: "number" },
{ name: "status", type: "select", options: ["draft", "published"] },
],
},
{
slug: "sensors",
fields: [
{
name: "temperature",
type: "number",
custom: { hypervalue: true }, // field-level: track just this field
},
],
},
],
});
Collection-level — Add custom: { hypervalue: true } to a collection. All scalar fields are tracked in a single wide hypertable (hv_{collection}). Every update stores a full snapshot.
Field-level — Add custom: { hypervalue: true } to individual fields. Each gets its own narrow hypertable (hv_{collection}_{field}).
Both modes can coexist on the same collection.
// Collection-level — full document snapshots
const snapshots = await payload.hypervalue({
collection: "products",
id: productId,
});
// Field-level — single field history
const history = await payload.hypervalue({
collection: "sensors",
id: sensorId,
field: "temperature",
});
// Point-in-time
const snapshot = await payload.hypervalue({
collection: "products",
id: productId,
at: new Date("2025-06-01"),
});
// Range
const range = await payload.hypervalue({
collection: "sensors",
id: sensorId,
field: "temperature",
from: new Date("2025-01-01"),
to: new Date("2025-06-01"),
});
REST endpoints:
GET /api/hypervalue/:collection/:id # collection-level snapshots
GET /api/hypervalue/:collection/:id/:field # field-level history
| Option | Type | Default | Description |
|---|---|---|---|
chunkInterval | string | '3 months' | TimescaleDB chunk time interval |
compressionAfter | string | — | Compress chunks older than this interval |
retentionAfter | string | — | Auto-drop chunks older than this interval |
trackDrafts | boolean | false | Record changes on draft saves |
disabled | boolean | false | Disable the plugin at runtime |
number, text, select, checkbox, date, json, relationship
^3.79.0 with @payloadcms/db-postgres^18.20.2 or >=20.9.0payload-hypervalue.abbenanti.com
MIT
payload kv
Store counters, feeds and expiring data in Redis or KV stores while querying them as normal Payload fields
771.4k/wk0v3 v4
payload upstash
Upstash Redis key-value adapter for Payload's built-in KV store
82333/wk7v3 v4
payload typeid
TypeID identifiers for Payload collections, as native IDs or an extra type_id field, with PostgreSQL integrity guards
802.6k/wk0v3
payload surrealdb
SurrealDB database adapter for Payload CMS v3 and v4 using its PostgreSQL-compatible SQL interface
77268/wk3v3 v4
payload locale snapshot
Prevents loss of other-locale translations in localized blocks and arrays when saving with the Postgres adapter
6663/wk3v3
payload kv cloudflare
Payload KV adapter that stores key-value data in Cloudflare Workers KV
6663/wk0v3 v4