pro-laico

atomic

by pro-laico
atomic-payload
Other
v3
>=3.0.0
MIT

Overview

Summary generated from the README

Combines several Atomic Payload packages into one runtime for building websites from Payload content. It provides plugin factories for action blocks, recursive child blocks and form handling, plus a beforeChange hook that processes CSS and UnoCSS against a design set. It depends on other @pro-laico packages such as core, styles and site, and requires Payload 3 or later.

Features

  • Recursive child blocks plugin for composing custom components, with copy and paste duplication
  • Action blocks for dialogs, popovers, theme toggle, cookie consent and form submit
  • beforeChange hook that runs a CSS/UnoCSS processor over the design set
  • Form submission pipeline with sanitation, validation and rate limiting
  • Extendable block structure for adding new action or form processing blocks
  • Front-end tree renderer and client store binding

Use cases

  • Build a block-based website in Payload with reusable nested components
  • Add interactive behaviors like dialogs and dark mode toggles through editable action blocks
  • Create custom forms with server-side validation and rate limiting

From the author

Atomic Payload runtime: action blocks, beforeChange hook + CSS/UnoCSS processor, form processing pipeline, and child blocks plugin. Replaces the older ap-actions + ap-atomic-hook + ap-forms + children packages.

Installation

npm i @pro-laico/atomic

37

Stars

0

Forks

0

Open Issues

2 months ago

Last Updated

1

Weekly Downloads

v0.5.0

npm Version

910.3 KB

Unpacked Size

7

Dependencies

Repository stars

Trends appear after 7 days of data. Collecting since Oct 22 — 2 daily snapshots so far.

Shared by 10 plugins in pro-laico/atomic-payload.

npm weekly downloads

Trends appear after 7 days of data. Collecting since Oct 22 — 2 daily snapshots so far.

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

Health Score

54/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/1128550352-atomic.svg)](https://payloaddirectory.dev/plugins/1128550352-atomic)
HTML
<a href="https://payloaddirectory.dev/plugins/1128550352-atomic"><img src="https://payloaddirectory.dev/badge/1128550352-atomic.svg" alt="Payload Directory"></a>
Updated Jul 28, 2026Created Jan 5, 2026Published Jun 27, 2026

README

Atomic Payload Runtime

The runtime that turns Payload content into a working website — action blocks, the beforeChange hook with CSS/UnoCSS processor, the form submission pipeline, and the child blocks plugin, all in one package. Part of Atomic Payload.

Features

Recursive Structure + Copy Paste Duplicate

Build entire custom components using Atomic Child Blocks. Combined with Payload's CPD functionality, you can reuse components with ease.

duplicate

[!NOTE] Once Payload CMS implements Sanity Style CPD, you will be able to reuse components across projects.

Actions

Actions create interactivity and reactivity for your application for all atomic blocks. Including functionality such as opening/closing dialogs/popovers, toggling dark mode, converting stateful values to data attributes, or just submitting a form.

actions

[!NOTE] Actions utilize a block structure so you can extend them by adding a new action block.

Custom Forms With SVR

All of the above functionality meshes with the additional Sanitation, Validation and Rate Limiting for forms and their inputs. Allowing you to build fully customizable forms.

forms

[!NOTE] SVR's utilize a block structure so you can extend them by adding a new SVR block.

Atomic Payload dependencies

  • @pro-laico/core — primitives the runtime builds on (read this first).
  • @pro-laico/styles — the CSS / UnoCSS processor (createCssProcessor) the hook runs against the design set.
  • @pro-laico/icons — IconChild / SVGChild block factories in the default child set.
  • @pro-laico/images — ImageChild block factory in the default child set.
  • @pro-laico/mux-video — VideoChild block factory in the default child set.
  • @pro-laico/richtext — RichTextChild block factory in the default child set.
  • @pro-laico/site — collection shapes the runtime attaches to.
  • @pro-laico/zap — zap schemas for blocks.

Exports

ImportWhat's there
@pro-laico/atomicRoot barrel — the three block plugin factories (childBlocksPlugin, actionsPlugin, formsPlugin), the ChildrenBlocksField, and the ready-made atomicHook.
@pro-laico/atomic/actionsAction blocks (theme toggle, form submit, cookie consent, dynamicStore, portal): actionsPlugin, AllActionBlocks, ActionFilters, ActionBlockStorageProcessor.
@pro-laico/atomic/hookThe beforeChange orchestrator that runs CSS/UnoCSS through the design-set pipeline: atomicHookPlugin, atomicHook, createAtomicHook, atomicHookWith.
@pro-laico/atomic/hook/clientThe client zustand AtomicStore binding (AtomicStoreProvider, useAtomicStore, createAtomicStore).
@pro-laico/atomic/formsForm & input submission with sanitation, validation, and rate limiting: formsPlugin, defaultSubmitFormBlocks, form types.
@pro-laico/atomic/forms/submitForm/serverFunctionThe submitForm server action (kept off the barrel to avoid circular init).
@pro-laico/atomic/childrenThe recursive child blocks plugin: childBlocksPlugin, buildChildBlocks, childBlocks, ChildrenBlocksField.
@pro-laico/atomic/children/renderFront-end tree renderer (RenderChildren, SSRProps).

Similar plugins