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

strapi-layout-plugin

v1.0.18

Published

Strapi layout engine plugin for Sitecore-like routing

Readme

Strapi Layout Plugin (JD Layout System)

The Strapi Layout Plugin is a custom Headless CMS extension designed to provide dynamic, layout-based routing and a component orchestration API out-of-the-box. Paired with the react-layout-sdk, it acts as a headless Layout Service—similar to enterprise systems like Sitecore.

Installation

Install the plugin inside your Strapi project:

npm install strapi-layout-plugin

Setup & Initialization

After installing the plugin, ensure you have enabled it in your Strapi config/plugins.js or config/plugins.ts file:

module.exports = {
  // ...
  'layout': {
    enabled: true,
    resolve: './node_modules/strapi-layout-plugin' // Optional depending on Strapi version mapping
  },
  // ...
}

Once you restart your Strapi backend, the plugin will automatically scaffold:

  1. Core Components: Automatically injects base components (core.header, core.footer, core.link, etc.) into your Strapi components folder.
  2. Page Collection Type: Generates a generic Page content type to act as the route tree for your layout.
  3. Global Layout Single Type: Generates a Global Layout content type to control persistent layout features across your app.

API Reference

The plugin exposes a public layout retrieval endpoint:

GET /api/layout/:slug

Fetches the structured JSON layout data representing the matched route, fully populated with dynamic zones (header, main, and footer).

Response Structure (JD Layout Schema):

{
  "strapi": {
    "context": {
      "pageEditing": false,
      "site": {
        "name": "JD"
      },
      "language": "en"
    },
    "route": {
      "name": "home",
      "displayName": "Home Page",
      "placeholders": {
        "header": [
          {
            "__component": "core.header",
            "title": "Welcome"
          }
        ],
        "main": [],
        "footer": []
      }
    }
  }
}

Next Steps

To consume this data effortlessly on the frontend, install the companion package in your React / Next.js application:

npm install react-layout-sdk