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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mdl-newsletter-ts

v1.0.0

Published

TypeScript client SDK for the headless micro CRM Newsletter service in Minddale.

Downloads

6

Readme

Minddale

Minddale

Minddale is a headless micro CRM provided by Firecodex to help you build your brands digitally immortal!

Library

This fcx-mindale-js (v1) is a JavaScript client library for Minddale, i.e. an npm library to get your JavaScript client connected to the platform and get the services done.

Setup

This library is a very simple module added to your JavaScript project to use the service.

Install

Run cd your-app & npm i fcx-minddale-ts --save

Use

Once registered with Minddale, get your API Key generated for a particular service to connect with the platform.

Note: Make sure you keep the API Key securely in environment file or any other secure methods.

In case you are not making the request from your registered domain (website), make sure you are setting the registered client domain as well in the request header x-mdl-domain.

In order to publish either Newsletter or Contact JSON data, use the service methods as follows.


// Import Service and Models

import { ContactClient, NewsletterClient, Contact, Newsletter } from 'fcx-minddale-ts';
import dotenv from 'dotenv';

  ...

  dotenv.config();

  const apiKey = process.env.MDL_API_KEY;

  ...

  // Publish Newsletter

  public async publishNewsletter() {

    if(this.email) {

      const newsletterClient =new NewsletterClient(apiKey);

      let message = await newsletterClient.publishNewsletter({recipient: this.email, tag: "home"} as Newsletter);

      alert(message);

    }else {

      alert('Please enter valid email to subscribe!');

    }

  }

  ...

  // Publish Contact

  public async publishContact() {

    if(this.email && this.subject && this.message) {

      const contactClient =new ContactClient(apiKey);

      let status = await contactClient.publishContact({email: this.email, subject: this.subject, message: this.message, name: this.name} as Contact);

      alert(status);

    }else {

      alert('Please enter valid contact info to post!');

    }

  }

Support

We, at Firecodex, would like to support anybody with queries or suggestions. Please feel free to reach out to us:

[email protected]

Happy Coding!