Bundles five Nexload plugins behind one nexloadPreset() call that returns a plugin array for buildConfig. It adds Persian i18n and Tehran timezone defaults, bridges the SDK logger to Payload's logger, installs after-commit hooks, adds a slug generation endpoint, and writes audit entries. Each plugin can be disabled or configured individually. Requires Payload 3.85 or later, React 19 and Node.js.
Installation
npm i @nexload-sdk/payload-preset3
Stars
0
Forks
0
Open Issues
Yesterday
Last Updated
232
Weekly Downloads
v1.1.0
npm Version
23.1 KB
Unpacked Size
4
Dependencies
3+2 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 3 |
| Dec 5, 2026 | 3 |
| Dec 4, 2026 | 3 |
| Dec 3, 2026 | 3 |
| Dec 2, 2026 | 3 |
| Dec 1, 2026 | 3 |
| Nov 30, 2026 | 3 |
| Nov 29, 2026 | 3 |
| Nov 28, 2026 | 3 |
| Nov 27, 2026 | 3 |
| Nov 26, 2026 | 3 |
| Nov 25, 2026 | 3 |
| Nov 24, 2026 | 3 |
| Nov 23, 2026 | 3 |
| Nov 22, 2026 | 3 |
| Nov 21, 2026 | 3 |
| Nov 20, 2026 | 3 |
| Nov 19, 2026 | 3 |
| Nov 18, 2026 | 3 |
| Nov 17, 2026 | 2 |
| Nov 16, 2026 | 2 |
| Nov 15, 2026 | 2 |
| Nov 14, 2026 | 2 |
| Nov 13, 2026 | 2 |
| Nov 12, 2026 | 2 |
| Nov 11, 2026 | 2 |
| Nov 10, 2026 | 2 |
| Nov 9, 2026 | 2 |
| Nov 8, 2026 | 2 |
| Nov 7, 2026 | 2 |
| Nov 6, 2026 | 2 |
| Nov 5, 2026 | 2 |
| Nov 4, 2026 | 2 |
| Nov 3, 2026 | 2 |
| Nov 2, 2026 | 2 |
| Nov 1, 2026 | 2 |
| Oct 31, 2026 | 2 |
| Oct 30, 2026 | 2 |
| Oct 29, 2026 | 2 |
| Oct 28, 2026 | 2 |
| Oct 27, 2026 | 2 |
| Oct 26, 2026 | 2 |
| Oct 25, 2026 | 2 |
| Oct 24, 2026 | 2 |
| Oct 23, 2026 | 2 |
| Oct 22, 2026 | 2 |
| Oct 21, 2026 | 2 |
| Oct 20, 2026 | 2 |
| Oct 19, 2026 | 2 |
| Oct 18, 2026 | 2 |
| Oct 17, 2026 | 1 |
| Oct 16, 2026 | 1 |
| Oct 15, 2026 | 1 |
| Oct 14, 2026 | 1 |
| Oct 13, 2026 | 1 |
| Oct 12, 2026 | 1 |
| Oct 11, 2026 | 1 |
| Oct 10, 2026 | 1 |
| Oct 9, 2026 | 1 |
| Oct 8, 2026 | 1 |
| Oct 7, 2026 | 1 |
| Oct 6, 2026 | 1 |
| Oct 5, 2026 | 1 |
| Oct 4, 2026 | 1 |
| Oct 3, 2026 | 1 |
| Oct 2, 2026 | 1 |
| Oct 1, 2026 | 1 |
| Sep 30, 2026 | 1 |
| Sep 29, 2026 | 1 |
| Sep 28, 2026 | 1 |
| Sep 27, 2026 | 1 |
| Sep 26, 2026 | 1 |
| Sep 25, 2026 | 1 |
| Sep 24, 2026 | 1 |
| Sep 23, 2026 | 1 |
| Sep 22, 2026 | 1 |
| Sep 21, 2026 | 1 |
| Sep 20, 2026 | 1 |
| Sep 19, 2026 | 1 |
| Sep 18, 2026 | 1 |
| Sep 17, 2026 | 1 |
| Sep 16, 2026 | 1 |
| Sep 15, 2026 | 1 |
| Sep 14, 2026 | 1 |
| Sep 13, 2026 | 1 |
| Sep 12, 2026 | 1 |
| Sep 11, 2026 | 1 |
| Sep 10, 2026 | 1 |
| Sep 9, 2026 | 1 |
| Sep 8, 2026 | 1 |
| Sep 7, 2026 | 1 |
Shared by 8 plugins in gecut/nexload-sdk.
232+232 since Nov 26
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 232 |
| Dec 5, 2026 | 62 |
| Dec 4, 2026 | 249 |
| Dec 3, 2026 | 246 |
| Dec 2, 2026 | 243 |
| Dec 1, 2026 | 235 |
| Nov 30, 2026 | 229 |
| Nov 29, 2026 | 211 |
| Nov 28, 2026 | 195 |
| Nov 27, 2026 | 0 |
| Nov 26, 2026 | 0 |
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/1086380959-payload-preset)<a href="https://payloaddirectory.dev/plugins/1086380959-payload-preset"><img src="https://payloaddirectory.dev/badge/1086380959-payload-preset.svg" alt="Payload Directory"></a>README
Composed Payload CMS preset for Persian admin defaults, SDK logger bridging, field hooks, and audit logging.
[!IMPORTANT] Version 1.0.0 is pending initial release in
.changeset/payload-preset-initial.mdand is not published to npm yet.
@nexload-sdk/payload-preset bundles five Nexload Payload plugins behind a single nexloadPreset() call: persianPlugin(), payloadLoggerPlugin(), afterCommitPlugin(), payloadFieldsPlugin(), and auditPlugin(). It solves repetitive top-level buildConfig() wiring across Payload CMS projects targeting Persian/Iranian setups. It is for Payload 3 server configurations running on Node.js.
What it is not:
@nexload-sdk/payload-fields and @nexload-sdk/payload-schema).admin.components.graphics.Logo, Icon, and fonts in your host app.persianPlugin() never adds localization.locales or enables document localization on its own.Audit logs identifiers and counts, not bodies, emails, or tokens; read auditing is off by default. getPayloadLoggerConfig() supplies SDK redaction, serializers, request context, formatting, and any explicit destination to Payload’s logger.
persianPlugin() and payloadLoggerPlugin() preserve host-configured languages, timezones, and config.logger.i18n, admin.timezones, logger, existing fa locale objects (rtl), collection and global hooks, and add the /payload-fields/generate-slug endpoint without mutating field definitions.payloadFieldsPlugin (900) and auditPlugin (1000) run after default-order plugins so collections added by other plugins are covered.flowchart LR
P["persianPlugin (i18n + Tehran TZ)"] --> L["payloadLoggerPlugin (config.logger)"]
L --> C["afterCommitPlugin (onInit)"]
C --> F["payloadFieldsPlugin (order: 900)"]
F --> A["auditPlugin (order: 1000)"]
pnpm add @nexload-sdk/payload-preset payload @payloadcms/translations @payloadcms/ui react react-dom
# or
npm install @nexload-sdk/payload-preset payload @payloadcms/translations @payloadcms/ui react react-dom
# or
yarn add @nexload-sdk/payload-preset payload @payloadcms/translations @payloadcms/ui react react-dom
# or
bun add @nexload-sdk/payload-preset payload @payloadcms/translations @payloadcms/ui react react-dom
| Package | Range | Required / Optional |
|---|---|---|
payload | >=3.85.0 <4.0.0 | Required |
@payloadcms/translations | >=3.85.0 <4.0.0 | Required |
@payloadcms/ui | >=3.85.0 <4.0.0 | Required (admin components of payloadFieldsPlugin) |
react | ^19.0.1 || ^19.1.2 || ^19.2.1 | Required (admin components of payloadFieldsPlugin) |
react-dom | ^19.0.1 || ^19.1.2 || ^19.2.1 | Required (admin components of payloadFieldsPlugin) |
import { configureLogger } from "@nexload-sdk/logger";
import { nexloadPreset } from "@nexload-sdk/payload-preset";
import { buildConfig } from "payload";
configureLogger({ service: "shop-cms" }); // Must run before buildConfig()
export default buildConfig({
// Add db, secret, and collections here.
plugins: [...nexloadPreset()],
});
Pass false (or afterCommit: false) to disable any individual plugin, or pass options directly to fields or audit:
import { nexloadPreset } from "@nexload-sdk/payload-preset";
export const plugins = nexloadPreset({
persian: true,
logger: true,
fields: {
generateSlugAccess: ({ req }) => Boolean(req.user),
},
audit: {
operations: ["create", "update", "delete", "auth"],
},
});
You can also import persianPlugin and payloadLoggerPlugin directly without nexloadPreset():
import { payloadLoggerPlugin, persianPlugin } from "@nexload-sdk/payload-preset";
export const plugins = [persianPlugin(), payloadLoggerPlugin()];
admin.components.graphics.Logo and admin.components.graphics.Icon to your own component paths in buildConfig.app/(payload)/layout.tsx and apply its class to the Payload layout in your host app.@nexload-sdk/payload-preset)| Export | Kind | Summary |
|---|---|---|
nexloadPreset | function | Returns Plugin[] combining Persian, logger, after-commit, fields, and audit plugins |
persianPlugin | function | Adds fa translation support, Asia/Tehran timezone, and fa RTL defaults |
payloadLoggerPlugin | function | Applies getPayloadLoggerConfig() when config.logger is undefined |
NexloadPresetOptions | type | Options object accepted by nexloadPreset |
AuditOperation | type | Re-exported from @nexload-sdk/payload-hooks |
AuditPluginOptions | type | Re-exported from @nexload-sdk/payload-hooks |
| Option | Type | Default | Description |
|---|---|---|---|
persian | boolean | true | Enables persianPlugin() |
logger | boolean | true | Enables payloadLoggerPlugin() when config.logger is unset |
fields | false | PayloadFieldsPluginOptions | {} | Options for payloadFieldsPlugin, or false to disable |
audit | false | AuditPluginOptions | {} | Options for auditPlugin, or false to disable |
afterCommit | boolean | true | Installs afterCommitPlugin() from @nexload-sdk/payload-hooks; false leaves it out |
afterCommitPlugin() is what makes runAfterCommit usable in app code, lets @nexload-sdk/payload-revalidate send batches exactly on commit, and makes auditPlugin write change and delete entries after the transaction commits. Pass afterCommit: false to opt out; then revalidation falls back to its bounded wait and audit entries are written immediately. The plugin runs in onInit and has no order.
type: "module").payload, @payloadcms/translations and @payloadcms/ui >=3.85.0 <4.0.0; React 19 (react, react-dom).[!WARNING] Call
configureLogger()beforebuildConfig().payloadLoggerPlugin()only forwards an explicitdestinationstream, so in development Payload writes JSON unlessconfigureLogger({ destination })is provided. Payload's logger uses standard Pino levels and has nosuccess()method; the SDK'ssuccessthreshold maps towarn. Forced SDK reconfigurations require rebuilding the Payload config.
[!WARNING] Payload creates its implicit default
usersauth collection after plugins run, soauditPlugincannot target it. Declare your auth collection explicitly to audit auth and write events, and note that withoutafterCommitPlugin()(the preset installs it unlessafterCommit: false) write hooks fire before transaction commit, so an audit entry may describe a change that was rolled back and did not persist (see payload-hooks).
[!NOTE]
persianPlugin()only setsrtl: trueon existingfalocale objects that leavertlundefined; string-array locales and existingrtlvalues are left untouched.
payloadLoggerPluginpayloadFieldsPlugin (order: 900)auditPlugin (order: 1000)TEHRAN_TIME_ZONEThis package ships agent skills that match its version. After install they are at node_modules/@nexload-sdk/payload-preset/skills/:
payload-preset — skills/payload-preset/SKILL.mdPoint your coding agent at them from AGENTS.md, or install from the repository with npx skills add gecut/nexload-sdk --skill <name>.
MIT
activity log
Record create, update and delete activity on selected collections and globals in a dedicated log collection
87639/wk115v4
payload auditor
Hook-based audit logging for Payload collections and globals with buffered writes and automatic log cleanup
811.4k/wk82v3
payload slug
Slug field with Auto/Manual modes, nested source paths, localization and enforced uniqueness
802.4k/wk0v3
payload plugin masquerade
Let admins switch to another user and browse as them without a password, then switch back
8083/wk30v3
payload redirect
Automatic and manual 301/302 redirect rules stored in a native Payload collection, with cycle validation
793.4k/wk0v3
payload plugin presets
Save and apply reusable block configurations as presets from the Payload admin blocks drawer
786.7k/wk37v3