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

@veysiyildiz/pagebuilder

v1.0.55

Published

Magento PageBuilder components for Next.js

Readme

PageBuilder Next

A Next.js implementation of Magento PageBuilder for rendering Magento PageBuilder content in Next.js applications.

Overview

PageBuilder Next lets you seamlessly render Magento PageBuilder content in your Next.js application. It's designed to be compatible with HTML content created by Magento's PageBuilder while leveraging Next.js features like the Image component for optimized performance.

Features

  • 🔄 Compatible with Magento PageBuilder HTML: Renders the same content structure as Magento's PageBuilder
  • 📱 Responsive Design: Mobile-first approach with responsive layouts
  • 🚀 Next.js 13+ App Router Support: Fully compatible with the latest Next.js features
  • 🖼️ Optimized Images: Uses Next.js Image component for optimal performance
  • 🧩 Modular Architecture: Easily extendable to support custom content types
  • 🔧 TypeScript Support: Fully typed for better developer experience

Installation

npm install pagebuilder-next
# or
yarn add pagebuilder-next

Usage

Basic Example

import { PageBuilder } from 'pagebuilder-next';

// Component that renders Magento PageBuilder content
export default function MyPageComponent({ pageBuilderContent }) {
  return (
    <div className="my-page">
      <PageBuilder content={pageBuilderContent} />
    </div>
  );
}

Detecting PageBuilder Content

import { PageBuilder } from 'pagebuilder-next';
import { isPageBuilderContent } from 'pagebuilder-next/utils';

// Component that detects and renders PageBuilder content
export default function ContentRenderer({ content }) {
  // Check if content is PageBuilder format
  const isPBContent = isPageBuilderContent(content);
  
  if (isPBContent) {
    return <PageBuilder content={content} />;
  }
  
  // Render regular HTML for non-PageBuilder content
  return <div dangerouslySetInnerHTML={{ __html: content }} />;
}

Supported Content Types

The following Magento PageBuilder content types are supported:

  • Row
  • Column / Column Group
  • Text
  • Heading
  • Buttons
  • Image
  • Slider
  • Banner
  • Divider
  • HTML Code
  • Video
  • Map
  • Tabs
  • Block / Dynamic Block
  • Products

Custom Styling

You can customize the appearance of PageBuilder components by providing custom classes:

<PageBuilder 
  content={pageBuilderContent}
  classes={{
    root: "my-custom-pagebuilder-container"
  }}
/>

Development and Customization

Project Structure

src/
  ├── components/
  │   └── PageBuilder/
  │       ├── ContentTypes/      # Individual content type components
  │       │   ├── Row/
  │       │   ├── Column/
  │       │   ├── Text/
  │       │   └── ...
  │       ├── ContentTypeFactory.tsx  # Creates content type instances
  │       ├── ContentTypeRegistry.ts  # Manages content type registration
  │       └── PageBuilder.tsx         # Main component
  ├── hooks/                     # Custom hooks for PageBuilder
  ├── utils/                     # Utility functions
  └── config/                    # Configuration constants

Adding Custom Content Types

To add a custom content type:

  1. Create a new component in src/components/PageBuilder/ContentTypes/
  2. Add it to the registry in src/components/PageBuilder/ContentTypes/index.ts

Examples

Check out the example in app/pagebuilder-example/page.tsx for a demonstration of PageBuilder in action.

License

MIT

Credits

This project is inspired by and aims to be compatible with Magento's PWA Studio PageBuilder implementation.