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

@mindful-web/marko-web-mindful-ads

v1.63.0

Published

Mindful Ads Marko components for Mindful Web websites.

Readme

@mindful-web/marko-web-mindful-ads

Marko components for serving Mindful ads on Mindful Web websites.

Requirements

Environment variables

| Variable | Required | Description | |---|---|---| | MINDFUL_AD_SERVER_DATA_API_KEY | Yes | API key for the Mindful ad server data API. The application will fail to start without this set. | | MINDFUL_AD_SERVER_URL_SERVER | No | Server-side ad server base URL. Defaults to https://serve.mindfulcms.com/ads. | | MINDFUL_AD_SERVER_URL_BROWSER | No | Browser-side ad server base URL used by the init component. Defaults to https://serve.mindfulcms.com/ads. |

Middleware

The p1EventsVisitorCookie middleware from @mindful-web/marko-web-p1-events must be registered before ad components can serve ads. This middleware sets the visitor tracking cookie that the ad server uses to correlate requests.

const { p1EventsVisitorCookie } = require('@mindful-web/marko-web-p1-events/middleware');

app.use(p1EventsVisitorCookie());

Usage

Initialization

Add the <marko-web-mindful-ads-init> component once in your page layout to bootstrap the browser-side ad library. The component must be rendered somewhere before the closing </@head> tag. Pass the Mindful tenant key (the org portion of your namespace, e.g. lbm).

<marko-web-mindful-ads-init tenant="lbm" />

Rendering an ad unit

Use <marko-web-mindful-ads-website-banner> to request and render a banner ad. The namespace corresponds to your Mindful workspace (e.g. lbm/default).

<marko-web-mindful-ads-website-banner
  namespace="lbm/default"
  adUnitId="1234abcde1234"
  siteId=config.website('id')
/>

| Attribute | Type | Required | Description | |---|---|---|---| | namespace | string | Yes | Mindful workspace namespace, e.g. lbm/default. | | adUnitId | string | Yes | The Mindful ad unit ID to request. | | siteId | string | Yes | The Mindful website ID. | | advertiserIds | string[] | No | Restrict results to specific advertiser IDs. | | limit | number | No | Maximum number of creatives to return. Defaults to 1. | | sizes | string[] | No | Filter by creative sizes. | | debug | boolean | No | Enable debug logging. |