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

rinflow

v1.0.4

Published

Rinflow, your LOS workflow automatic package

Readme

rinflow

A TypeScript package for managing loan application workflows with integrated risk assessment, document signing, and email notifications.

Features

  • Application data summarization with loan metrics computation
  • Risk analysis using Gemini AI API
  • Contract generation and signing via DocuSign
  • Automated email notifications through Resend

Installation

npm install rinflow

Usage

import rinflow from "rinflow";

// Initialize the package with your config
const workflow = new rinflow({
  resendConfig: {
    resendApi: "your_resend_api_key",
  },
  docusignConfig: {
    integratorKey: "your_integrator_key",
    userId: "your_user_id",
    authServer: "your_auth_server",
    basePath: "your_base_path",
    account_id: "your_account_id",
  },
  geminiConfig: {
    geminiApi: "your_gemini_api_key",
  },
});

// Example application data
const applicationData = {
  dependents: 2,
  education: "Graduate",
  selfEmployed: false,
  incomeAnnum: 75000,
  loanAmount: 200000,
  loanTerm: 24,
  cibilScore: 750,
  resedentialAssetValue: 300000,
  commercialAssetValue: 0,
  luxuryAssetValue: 50000,
  bankAssetValue: 100000,
  debt: 25000,
};

// Summarize application data
const summary = workflow.summarizeData({ applicationData });

// Analyze risk
const riskAnalysis = await workflow.analyzeRisk({ applicationData });

// Send contract for signing
await workflow.sendContract({
  loanId: "123",
  recipientEmail: "[email protected]",
  recipientName: "John Doe",
});

// Send rejection email if needed
await workflow.sendRejectionEmail({
  loanId: "123",
  email: "[email protected]",
  username: "John Doe",
});

Configuration

Required Environment Variables

  • RESEND_API_KEY: Your Resend API key
  • DOCUSIGN_INTEGRATOR_KEY: DocuSign integrator key
  • DOCUSIGN_USER_ID: DocuSign user ID
  • DOCUSIGN_AUTH_SERVER: DocuSign authentication server URL
  • DOCUSIGN_BASE_PATH: DocuSign API base path
  • DOCUSIGN_ACCOUNT_ID: DocuSign account ID
  • GEMINI_API_KEY: Your Gemini AI API key

Methods

summarizeData(applicationData)

Computes and returns loan metrics based on the provided application data.

analyzeRisk(applicationData)

Performs risk assessment using Gemini AI API and returns the analysis results.

sendContract(loanId, recipientEmail, recipientName)

Generates and sends a contract for signing via DocuSign.

sendRejectionEmail(loanId, email, username)

Sends a rejection notification email using Resend.

Types

ApplicationData

interface ApplicationData {
  dependents: number;
  education: string;
  selfEmployed: boolean;
  incomeAnnum: number;
  loanAmount: number;
  loanTerm: number;
  cibilScore: number;
  resedentialAssetValue: number;
  commercialAssetValue: number;
  luxuryAssetValue: number;
  bankAssetValue: number;
  debt: number;
}

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.