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

@nurtureflow/site

v1.1.1

Published

Nurtureflow site-integratie voor Astro-klantsites: visual-edit bridge, analytics, lead-capture en scheduler-booking als herbruikbare componenten.

Downloads

419

Readme

@nurtureflow/site

De integratie-laag tussen een Astro-klantsite en het Nurtureflow-platform, als herbruikbare componenten. Vervangt de ~200 regels JavaScript die nu per site met de hand in BaseLayout.astro worden geplakt.

Identiek-eerst: v1 reproduceert het bestaande gedrag exact — zelfde visual-edit-contract, zelfde lead-payload, zelfde booking-widget. Geen gedragswijziging t.o.v. de inline-snippets.

Installeren

npm install @nurtureflow/site

Componenten

NurtureflowBridge — visueel bewerken

De brug waarmee het CMS de site in een iframe kan bewerken. Inert voor normale bezoekers (alleen actief bij ?nf-edit + handshake van een toegestane CMS-origin). Geen props.

Plaats één keer onderin elke layout, net vóór </body>:

---
import { NurtureflowBridge } from "@nurtureflow/site";
---
<!-- ... -->
<NurtureflowBridge />
</body>

Per-document bewerken (data-nf-doc)

Sinds v1.1.0 kan een pagina aangeven welk content-document 'm voedt, zodat het CMS per pagina/sectie het júíste bestand bewerkt. Zet data-nf-doc op een voorouder (meestal <body>):

<body data-nf-doc="homepage">          <!-- singleton: "<collection>" -->
<body data-nf-doc={`adLandings/${slug}`}>  <!-- collectie-document: "<collection>/<doc>" -->

Globale chrome (header/footer) mag een eigen data-nf-doc krijgen (bv. siteSettings); een veld erft het document van zijn dichtstbijzijnde [data-nf-doc]-voorouder. Geen data-nf-doc → het CMS valt terug op "site" — één-bestand-sites blijven dus ongewijzigd werken en hoeven niet te updaten.

NurtureflowAnalytics — first-party Umami

---
import { NurtureflowAnalytics } from "@nurtureflow/site";
---
<head>
  <NurtureflowAnalytics websiteId="431cd890-5a84-4cbf-89d2-5c96623afcdd" />
</head>

websiteId = de per-site Umami-website-UUID. Optioneel: src (standaard /stats.js).

NurtureflowLeadCapture — aanvragen naar de inbox

---
import { NurtureflowLeadCapture } from "@nurtureflow/site";
---
<NurtureflowLeadCapture slug="studio-tempel" />

Annoteer elk aanvraagformulier met data-nf-lead="<label>" (het label wordt de herkomst in de inbox). Optioneel: endpoint (standaard https://platform.nurtureflow.agency/api/public/leads/<slug>/submit).

De annotaties (data-nf-lead, en de data-nf-field-labels voor de visuele editor) blijven per-site handwerk — dat is inhoud, geen herbruikbare code.

NurtureflowBooking — scheduler-widget

---
import { NurtureflowBooking } from "@nurtureflow/site";
---
<NurtureflowBooking projectSlug="gen-i-us" />

Props: projectSlug (verplicht), apiUrl (standaard het platform-scheduler-endpoint), heading, intro, serviceSlug, enabled. Widget-JS en -CSS worden meegebundeld — er hoeft niets naar public/ gekopieerd te worden.

Versiebeleid

  • patch/minor = veilige verbeteringen, achterwaarts compatibel met het platform-contract.
  • Sites pinnen hun versie en updaten bewust (npm update) — geen automatische upgrades, zodat één release nooit alle sites tegelijk kan raken.

Migratie vanaf inline-snippets

Per site: vervang het inline visual-edit-<script>, de Umami-<script>, de LeadCapture.astro en de Booking.astro/booking-widget.js door de bovenstaande imports. Verifieer met een live editor-smoke-test (klik een veld, bewerk, sla op) vóór je naar de volgende site gaat.