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

argus-sdk-demo

v1.0.1

Published

Simple demo application for Argus SDK

Readme

Argus SDK Demo

A simple demonstration application for the Argus SDK that evaluates preset transactions against your financial control policies.

Quick Start

  1. Install dependencies:

    npm install
  2. Set up your API key:

    # Copy the example environment file
    cp .env.example .env
       
    # Edit .env and add your API key
    # ARGUS_API_KEY=argus_your_actual_key_here
  3. Run the demo:

    npm start

Usage Options

Using Environment Variables

# Set in .env file or export directly
export ARGUS_API_KEY=argus_your_key_here
npm start

Using Command Line Arguments

# Specify API key
npm start -- --api-key argus_your_key_here

# Use custom API endpoint
npm start -- --api-key argus_your_key_here --base-url http://localhost:8000

# Run multiple iterations (useful for load testing)
npm start -- --api-key argus_your_key_here --iterations 5

Command Line Options

  • --api-key, -k: Your Argus API key
  • --base-url, -u: API base URL (default: http://localhost:8000)
  • --iterations, -i: Number of times to run all transactions (default: 1)

What It Does

The demo runs 5 preset transactions with different characteristics:

  1. Morning Coffee - Small everyday purchase ($4.50)
  2. Grocery Shopping - Regular purchase ($127.83)
  3. Laptop Purchase - High-value electronics ($2,499.99)
  4. Luxury Car Down Payment - Very high amount wire transfer ($25,000)
  5. European Hotel Booking - Foreign currency transaction (€350)

Each transaction is evaluated against your active policy, and you'll see:

  • Decision outcome (Approved/Rejected/Manual Review)
  • Decision ID for tracking
  • Failed rule (if rejected)
  • Response time

Expected Results

Results will vary based on your policy configuration, but typically:

  • Small purchases are approved
  • Very large amounts may trigger manual review or rejection
  • Different payment methods may have different limits

Viewing Results in Frontend

After running the demo, you can:

  1. Open your Argus frontend dashboard
  2. Navigate to the Transactions page to see all evaluated transactions
  3. Check the Dashboard for updated metrics and charts
  4. Review which rules were triggered in the transaction details

Development

To modify the demo or add more test scenarios, edit src/index.ts and add new transactions to the transactions array.

// Run in development mode with TypeScript
npm run dev