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

@paulpaulstudio/strapi-render

v0.8.0

Published

React SDK für Strapi-Frontends mit onpage-edit-Support über cms.paulpaul.studio.

Downloads

94

Readme

@paulpaulstudio/strapi-render

React SDK für Strapi-Frontends mit Onpage-Editing über cms.paulpaul.studio.

Installation

npm install @paulpaulstudio/strapi-render

Peer-Deps: react@>=18, react-dom@>=18.

Setup

// app/layout.tsx (Next.js App Router) oder _app.tsx (Pages Router)
import { StrapiEditModeProvider } from "@paulpaulstudio/strapi-render";

export default function Layout({ children }) {
  return (
    <html>
      <body>
        <StrapiEditModeProvider>
          {children}
        </StrapiEditModeProvider>
      </body>
    </html>
  );
}

Der Provider liest ?__pp_edit=1&__pp_token=<jwt> aus der URL und aktiviert den Edit-Mode automatisch. Im normalen Mode rendert das SDK keinerlei zusätzliches DOM.

Komponenten

<StrapiText>

<StrapiText path="hero.title" value={page.hero.title} as="h1" />
<StrapiText path="hero.body" value={page.hero.body} fieldType="richText" as="div" />

<StrapiImage>

<StrapiImage
  path="hero.bg"
  value={page.hero.bg}
  baseUrl="https://cms.paulpaul.studio"
  className="hero-bg"
/>

<StrapiList>

<StrapiList path="features" value={page.features} renderItem={(f, fp) => (
  <div>
    <StrapiText path={`${fp}.title`} value={f.title} as="h3" />
    <StrapiImage path={`${fp}.icon`} value={f.icon} />
  </div>
)} />

<StrapiField> (Low-Level)

Für Custom-Layouts wo die High-Level-Komponenten nicht passen:

<StrapiField path="hero.gallery" type="media" value={page.hero.gallery}>
  <MyCarousel images={page.hero.gallery} />
</StrapiField>

Inline-editable Field-Types (Edit-Mode):

| type | Edit-Affordance | |---|---| | text / textarea / richText / email | contentEditable=plaintext-only, blur saved | | number | wie text, beim Blur als Number geparst | | checkbox | Click toggled den boolean Wert | | select | Click öffnet Popover mit options-Auswahl | | media | Click öffnet MediaPicker im Parent |

Boolean-Beispiel:

<StrapiField path="published" type="checkbox" value={post.published}>
  <span>{post.published ? "Live" : "Entwurf"}</span>
</StrapiField>

Select-Beispiel (Optionen sind required für die Combobox):

<StrapiField
  path="status"
  type="select"
  value={post.status}
  options={["draft", "published", "archived"]}
>
  <span>{post.status}</span>
</StrapiField>

// Mit Labels:
<StrapiField
  path="priority"
  type="select"
  value={task.priority}
  options={[
    { value: "low", label: "Niedrig" },
    { value: "high", label: "Hoch" },
  ]}
>
  <span>{task.priority}</span>
</StrapiField>

Edit-Mode

Im Edit-Mode (?__pp_edit=1):

  • Jedes Strapi-Feld bekommt einen data-pp-edit="<path>"-Attribut
  • Hover zeigt orangen Outline (P&P-Brand-Accent)
  • Click sendet pp:edit:click postMessage an den Parent (cms.paulpaul.studio)
  • Parent zeigt Editor-Popover mit dem passenden Field-Input

Im Normal-Mode: identisches HTML wie ohne SDK — kein Overhead.

Hosting & Onpage-Editor

Onpage-Editing ist Feature des P&P-Hostings. Self-hosted Sites bekommen den CMS-Editor, aber kein Onpage-Mode. Webstudio-Sites haben Onpage nativ (eigener Webstudio-Renderer-Patch).

Lizenz

UNLICENSED — internes Paul & Paul Studio Tooling.