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

adversity-global-blog-cms-react

v1.0.12

Published

Reusable Adversity Global Blog CMS React UI for client websites.

Readme

Adversity Global Blog CMS React

Reusable React UI package for client websites using Adversity Global Blog CMS.

Install

npm install adversity-global-blog-cms-react

Usage

import { GlobalBlogCMS } from 'adversity-global-blog-cms-react';
import 'adversity-global-blog-cms-react/styles.css';

export default function BlogPage() {
  return (
    <GlobalBlogCMS
      apiUrl="https://global-blog-cms-api.onrender.com/api"
      apiKey="CLIENT_API_KEY"
    />
  );
}

Props

| Prop | Type | Required | Description | | --- | --- | --- | --- | | apiUrl | string | Yes | Global Blog CMS API base URL. The package safely adds /api if missing. | | apiKey | string | Yes | Website API key generated in the CMS. | | theme | 'light' \| 'dark' | No | Built-in color theme. Default is light. | | pageSize | number | No | Blogs per page. Default is 9. | | showSubmitForm | boolean | No | Show or hide the write blog form. Default is true. | | title | string | No | Blog page title. | | description | string | No | Blog page intro text. | | emptyMessage | string | No | Message shown when there are no published blogs. | | className | string | No | Extra wrapper class. |

What It Includes

  • Published blog list
  • Blog detail view
  • Write blog form
  • Optional featured image upload
  • Pagination
  • Loading state
  • Error state
  • Empty state
  • API key header handling

The package only calls public CMS endpoints. It never uses admin JWTs.

SEO Helpers

The same package also includes an optional SEO helper export for client websites that want real /blog and /blog/:slug pages.

import {
  getPublishedBlogs,
  getPublishedBlogBySlug,
  generateBlogMeta,
  generateBlogJsonLd,
  generateBlogSitemapUrls
} from 'adversity-global-blog-cms-react/seo';

Example:

const blogs = await getPublishedBlogs({
  apiUrl: 'https://global-blog-cms-api.onrender.com/api',
  apiKey: 'CLIENT_API_KEY'
});

const blog = await getPublishedBlogBySlug({
  apiUrl: 'https://global-blog-cms-api.onrender.com/api',
  apiKey: 'CLIENT_API_KEY',
  slug: 'my-blog-post'
});

const meta = generateBlogMeta({
  blog,
  siteName: 'Client Website',
  siteUrl: 'https://clientwebsite.com'
});

Use the React component for fast widget integration. Use /seo helpers when the client website is building real SEO pages.

Theme Colors

The package inherits the client website font, text color, and common brand variables automatically. It reads these variables when they exist:

--accent-color
--primary-color
--theme-primary
--color-primary

Client websites can tune the package with CMS-specific CSS variables on any parent element only when needed:

.blog-page {
  --gbcms-client-primary: #0f766e;
  --gbcms-client-primary-contrast: #ffffff;
  --gbcms-client-surface: #ffffff;
  --gbcms-client-soft: #f3f7f6;
  --gbcms-client-text: #10201d;
  --gbcms-client-muted: #60716d;
  --gbcms-client-border: #d9e5e2;
}

Local Preview

npm run dev

Set these values for preview:

VITE_CMS_API_BASE_URL=http://127.0.0.1:5000/api
VITE_CMS_API_KEY=CLIENT_API_KEY