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

@fayz-ai/plugin-marketing

v0.1.3

Published

Fayz SDK — marketing campaigns & broadcasts plugin

Readme

@fayz-ai/plugin-marketing

One acquisition & conversion engine — every channel, every vertical.

npm license

Marketing analytics are always the same shape — channels, campaigns, a funnel, landing-page CVR — but what counts as a "conversion" changes per business. A salon converts a booking, a store converts an order, an agency converts a lead. plugin-marketing is one plugin that adapts to all of them: pick a domain preset (or pass an explicit conversion model + channels) and the funnel, channel performance, and cost-per-acquisition are computed generically on top of it.

It ships a vertical-flavored mock today so the surface is real from the first install. Real attribution arrives through clean DI seams — an AttributionBridge to read conversions from CRM/agenda/orders, and a SitesPerformanceBridge to read landing-page numbers from your sites — so you wire reality in without rewriting the plugin. Campaigns and channels are first-class, and the whole thing exposes AI tools so your assistant can answer "which channel converts best?" out loud.

What's inside

  • A /marketing workspace: overview, channels (list + detail), campaigns (list + composer), funnel, and landing pages
  • domain presets that set the conversion model + acquisition channels per vertical (defaults to agency)
  • Generic channel performance (reach, conversions, CVR, spend, CPA), funnel, and campaign CVR
  • DI seams: attributionBridge and sitesBridge to feed real data when it's ready
  • Domain events: marketing.conversion.tracked, campaign.created, campaign.updated, channel.synced
  • AI tools: channelPerformance, topChannels, campaignCvr, and createCampaign
  • Dashboard widgets, a central Settings tab, currency formatting, and full i18n
  • Exported MARKETING_PRESETS and a mock provider for local development

Install

npm install @fayz-ai/plugin-marketing

Peer deps: @fayz-ai/core, @fayz-ai/ui, @fayz-ai/saas, plus react / react-dom.

Usage

import { defineSaas } from '@fayz-ai/saas'
import { createMarketingPlugin } from '@fayz-ai/plugin-marketing'

export const app = defineSaas({
  // ...
  plugins: [
    createMarketingPlugin({
      domain: 'beauty',            // conversion model + channels from the preset
      currency: { code: 'BRL' },
      // attributionBridge / sitesBridge wire real data in later
    }),
  ],
})

Part of the Fayz SDK

The acquisition half of growth. Pairs with plugin-crm (the leads and deals it converts into), plugin-conversations (broadcast replies land in the inbox), and plugin-reputation (social proof that lifts CVR).

Roadmap & contributing

Built and evolving in the open. See the Fayz SDK roadmap for current gaps, missing features, and good first issues.