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

@djangocfg/ext-newsletter

v1.0.27

Published

Newsletter and subscription management extension for DjangoCFG

Readme

DjangoCFG Extension Preview

📦 View in Marketplace📖 Documentation⭐ GitHub

@djangocfg/ext-newsletter

Newsletter subscription and campaign management extension for DjangoCFG.

Part of DjangoCFG — modern Django framework for production-ready SaaS applications.

Features

  • 📧 Email Campaigns - Create, manage, and send email campaigns
  • 📝 Subscription Management - Handle newsletter subscriptions
  • 📊 Campaign Analytics - Track opens, clicks, and conversions
  • 🎯 Audience Segmentation - Target specific subscriber groups
  • 📋 List Management - Organize subscribers into lists
  • 🚀 Automated Sending - Schedule and automate campaign delivery

Install

pnpm add @djangocfg/ext-newsletter

Usage

Provider Setup

import { NewsletterProvider } from '@djangocfg/ext-newsletter/hooks';

export default function RootLayout({ children }) {
  return (
    <NewsletterProvider>
      {children}
    </NewsletterProvider>
  );
}

Managing Campaigns

import { useNewsletterContext } from '@djangocfg/ext-newsletter/hooks';

function CampaignsPage() {
  const {
    campaigns,
    isLoadingCampaigns,
    createCampaign,
    sendCampaign,
  } = useNewsletterContext();

  const handleCreate = async () => {
    await createCampaign({
      subject: 'Monthly Newsletter',
      content: '<h1>Hello!</h1>',
      scheduled_at: new Date().toISOString(),
    });
  };

  return (
    <div>
      <button onClick={handleCreate}>Create Campaign</button>
      {campaigns.map(campaign => (
        <div key={campaign.id}>
          <h3>{campaign.subject}</h3>
          <button onClick={() => sendCampaign(campaign.id)}>
            Send Now
          </button>
        </div>
      ))}
    </div>
  );
}

Newsletter Subscription Form

import { Hero } from '@djangocfg/ext-newsletter';
import { useNewsletterContext } from '@djangocfg/ext-newsletter/hooks';

function HomePage() {
  const { subscribe } = useNewsletterContext();

  return (
    <Hero
      title="Subscribe to our newsletter"
      description="Get weekly updates delivered to your inbox"
      showNewsletter={true}
      onNewsletterSubmit={async (email) => {
        await subscribe({ email });
      }}
    />
  );
}

Components

Hero

Landing page hero section with integrated newsletter subscription form.

<Hero
  title="Welcome to our platform"
  description="Join thousands of subscribers"
  primaryAction={{
    label: 'Get Started',
    href: '/signup',
  }}
  secondaryAction={{
    label: 'Learn More',
    href: '/about',
  }}
  showNewsletter={true}
  onNewsletterSubmit={(email) => subscribe({ email })}
/>

API Reference

Context Methods

  • campaigns - List of all campaigns
  • createCampaign(data) - Create new campaign
  • updateCampaign(id, data) - Update campaign
  • deleteCampaign(id) - Delete campaign
  • sendCampaign(id) - Send campaign immediately
  • subscribe(data) - Subscribe email to newsletter
  • unsubscribe(data) - Unsubscribe email from newsletter
  • subscriptions - List of all subscriptions

License

MIT

Links