npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sequoialabs/payload-plugin-reversia

v0.1.8

Published

PayloadCMS plugin for Reversia translation SaaS integration

Readme

@sequoialabs/payload-plugin-reversia

A PayloadCMS plugin that integrates with Reversia, a translation SaaS platform, enabling seamless content localization and synchronization across multiple languages.

How it works

  1. The plugin scans your PayloadCMS config and detects every top-level field that contains at least one localized: true leaf — scalars, groups, arrays, blocks, richText, json all qualify.
  2. When content changes, an afterChange hook records the resource in a hidden sync queue.
  3. Reversia polls the plugin's HTTP endpoints to fetch translatable content.
  4. Each resource entry is keyed by top-level field name. Scalars ship as plain values. Containers ship one JSON-pointer map per field containing only the localized atoms — non-localized siblings, structural keys, and unrelated data never reach Reversia.
  5. Once translated, Reversia pushes translations back. The plugin clones the source-locale document as the base of the update, then overlays each translated leaf at its pointer — required nested siblings (block ids, blockType, non-localized subfields) are guaranteed to be present so Payload validation passes.
  6. A confirmation endpoint clears processed items from the sync queue (updatedAt-based, so re-edits during translation aren't lost).

Installation

npm install @sequoialabs/payload-plugin-reversia
# or
bun add @sequoialabs/payload-plugin-reversia

Quick start

import { buildConfig } from 'payload';
import { reversiaPlugin } from '@sequoialabs/payload-plugin-reversia';

export default buildConfig({
  plugins: [
    reversiaPlugin({
      apiKey: process.env.REVERSIA_API_KEY!,
      enabledCollections: ['posts', 'pages'],
      enabledGlobals: ['site-settings'],
    }),
  ],
});

Then mark whichever fields are translatable. You don't need to annotate containers — declaring localized: true on any inner subfield is enough; the plugin auto-detects the top-level container and emits a single JSON-pointer entry for it.

// Top-level localized scalar — shipped as a primitive.
{ name: 'title', type: 'text', localized: true }

// Top-level richText — shipped as a JSON-pointer map of `text`/`url`/`alt`
// leaves by default.
{ name: 'body', type: 'richText', localized: true }

// Slug field — ship as text, mark behaviour for Reversia.
{
  name: 'slug',
  type: 'text',
  localized: true,
  custom: { reversia: { behavior: 'slug' } },
}

// Blocks container — auto-detected. One entry per page keyed by `body`,
// value: `{"/0/heading":"…","/2/heading":"…"}`.
{
  name: 'body',
  type: 'blocks',
  blocks: [
    { slug: 'hero', fields: [{ name: 'heading', type: 'text', localized: true }] },
  ],
}

Documentation

Requirements

  • PayloadCMS v3.0.0+
  • Node.js 20+ or Bun
  • At least one localized: true field on a collection or global

License

MIT