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

payfade

v1.0.5

Published

Payfade is an open source application for developers to make sure your client pays for your work. It's an improved and web-based version of [Client Did Not Pay](https://github.com/kleampa/not-paid) js file. This project extends the mentioned repo's idea a

Readme

💫 PayFade

Payfade is an open source application for developers to make sure your client pays for your work. It's an improved and web-based version of Client Did Not Pay js file. This project extends the mentioned repo's idea and gives complete credits of this creativity to the original inventors of this idea.

Supports:

  • Next.js (Server and Client Components)
  • React.js, Vanilla JS , and other frameworks
  • Basically , any JavaScript environment 😊

✨ Install

npm install payfade
# or
yarn add payfade

Variables & Configuration

  • apiKey: Your website apiKey (required)
  • delay: Optional delay in milliseconds before applying the opacity value (default value: 2000)

📦 Usage

For Next.Js

There are two ways to add it:

  1. If you want to keep your Next.Js app server -side rendered, add the following to the root layout
import { PayFade } from "payfade";

<PayFade apiKey="YOUR _API_KEY" />
  1. If you want to use client-side rendering, add the following to the root layout.
import { PayFadeClient } from "payfade";

  useEffect(() => {
    PayFadeClient({ apiKey: "API_KEY" });
  }, []);

For React.Js

Add this code inside any component, rest the package will handle 😊.

import { PayFadeClient } from "payfade";

  useEffect(() => {
    PayFadeClient({ apiKey: "API_KEY" });
  }, []);

For Vanilla Js / other frameworks

import { PayFadeClient } from "payfade";

PayFadeClient({ apiKey: "API_KEY" });

Examples

Keeping the Next.Js app server-side rendered

import type { Metadata } from "next";
import "./globals.css";
import { PayFade } from "payfade";

export const metadata: Metadata = {
  title: "Create Next App",
  description: "Generated by create next app",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body className="antialiased">
        {children}
        <PayFade apiKey="API_KEY" />
      </body>
    </html>
  );
}

Keeping Next.Js app client-side rendered

"use client";

import "./globals.css";
import { PayFadeClient } from "payfade";
import { useEffect } from "react";

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  useEffect(() => {
    PayFadeClient({ apiKey: "API_KEY" });
  }, []);

  return (
    <html lang="en">
      <body className="antialiased">{children}</body>
    </html>
  );
}

React JS

import { PayFadeClient } from "payfade";
import { useEffect } from "react";

export default function AnyComponent() {

  // Add this code to your component - changes opacity
  useEffect(() => {
    PayFadeClient({ apiKey: "API_KEY" });
  }, []);

  return (
    <div>Some component</div>
  );
}

Vanilla Js

import { PayFadeClient } from "payfade";

PayFadeClient({ apiKey: "API_KEY" });

Contribution and Reporting

While we always test the package before releasing a new version, if you encounter any issues, please report them to us. You can do this by creating an issue on the github