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

@trap_stevo/credit-live

v0.0.2

Published

A real-time credit management system built for seamless financial automation. Automate transactions, enforce tier-based rewards, and execute event-driven credit flows with precision scheduling and AI-driven rewards. Effortlessly manage subscription billin

Downloads

15

Readme

CreditLive - The Ultimate Solution for Real-Time Credit Management

Designed for seamless, high-performance financial transactions, this system automates credit handling with precision-based execution. Process credits instantly, enforce tier-based rewards, and create dynamic credit flows for businesses and individuals. Handle multi-tenant credit structures, automate loyalty programs, and enable real-time deductions with cutting-edge event-driven architecture.

Effortlessly power subscription-based platforms, in-game economies, and enterprise credit systems. Automate milestone-based bonuses, configure scheduled deductions, and manage credit transactions across millions of users without performance bottlenecks.

Create loyalty programs that grant bonus credits based on spending habits. Manage subscription-based services that automatically deduct credits at scheduled intervals. Implement real-time event triggers to notify users when balances update. Integrate with any database or authentication system to track and maintain financial records efficiently.

Enable real-time financial automation with precision scheduling, AI-driven rewards, and event-based credit flows. Optimize efficiency, eliminate manual processes, and scale seamlessly across millions of users.

Features:

Multi-Tenant & Individual User Support – Effortlessly manage credits for businesses, organizations, and individual users in a single API. ✅ Real-Time Event Handling – Instantly respond to transactions with live event-driven architecture. ✅ Automated Credit Rules – Define tier-based rewards, milestone bonuses, and subscription-based deductions with precise execution intervals. ✅ Optimized Caching & Cleanup – Handle millions of users efficiently with memory-friendly caching and automatic cleanup. ✅ Flexible Interval Scheduling – Run credit rules every second, minute, hour, or day with precision timing. ✅ Fail-Safe Execution – Protects against race conditions and ensures transactions never get skipped. ✅ Effortless Integration – Works with any database or authentication system for smooth implementation.

Ideal For:

🔹 Loyalty & Rewards Programs – Automatically reward users based on activity, purchases, or engagement. 🔹 Subscription-Based Platforms – Seamlessly manage recurring credit deductions for premium services. 🔹 Gaming & Virtual Economies – Power virtual currency transactions and player reward systems. 🔹 Enterprise Credit Systems – Handle real-time credit distribution across business networks.

Installation

npm install @trap_stevo/credit-live

Quick Start

const CreditLive = require("@trap_stevo/credit-live");

const creditManager = new CreditLive({
    getBalance: async (tenantID, userID) => await fetchBalanceFromDB(tenantID, userID),
    saveTransaction: async (transaction) => await saveTransactionToDB(transaction),
    automatedRules: [
        {
            tenantID: "businessA",
            interval: "1 minute",
            action: async (creditLive, tenantID) => {
                await creditLive.issueCredits(tenantID, "user123", 100, { reason: "Loyalty Reward" });
            }
        }
    ]
});

Event Listeners

creditManager.on("CREDITS-ISSUED", (data) => console.log("🔥 Credits Issued:", data));
creditManager.on("CREDITS-DEDUCTED", (data) => console.log("💳 Credits Deducted:", data));
creditManager.on("INSUFFICIENT-CREDITS", (data) => console.log(⚠️ Insufficient Credits:", data));

Start Managing Credits Like a Pro!

With CreditLive, you get a cutting-edge, event-driven credit system that scales effortlessly, keeps transactions lightning-fast, and offers seamless automation.

Power up your credit transactions and make your credits go live today!