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

navs-aml

v1.0.7

Published

Anti-Money Laundering (AML) services powered by NAVS - Node-Assisted Verification Service

Readme

NAVS AML - Anti-Money Laundering Services

A specialized NAVS package providing Anti-Money Laundering (AML) compliance functions powered by decentralized cryptoeconomic security.

Overview

This package provides AML compliance functions that are executed by a decentralized network of operators with economic stake backing the results. All functions are decorated with @navs annotations and leverage the NAVS (Node-Assisted Verification Service) infrastructure.

Features

  • Address Sanctions Checking: Check if Ethereum addresses appear on the OFAC Sanctions List
  • Bulk Processing: Efficiently process multiple addresses in a single call
  • Data Freshness: Get timestamps of the last OFAC list updates
  • Cryptoeconomic Security: Results backed by operator stakes and slashing penalties
  • Caching: Intelligent caching of sanctions data to minimize API calls

Functions

isAddressSanctioned(address: string): Promise<boolean>

Check if an Ethereum address appears on the OFAC Sanctions List.

import { AMLServices } from 'navs-aml';

const isSanctioned = await AMLServices.isAddressSanctioned('0x1234567890123456789012345678901234567890');
console.log(`Address is sanctioned: ${isSanctioned}`);

bulkAddressCheck(addresses: string[]): Promise<{address: string, sanctioned: boolean}[]>

Efficiently check multiple addresses for sanctions.

const addresses = [
  '0x1234567890123456789012345678901234567890',
  '0x0987654321098765432109876543210987654321'
];

const results = await AMLServices.bulkAddressCheck(addresses);
results.forEach(result => {
  console.log(`${result.address}: ${result.sanctioned ? 'SANCTIONED' : 'CLEAR'}`);
});

getLastUpdateTime(): Promise<string>

Get the timestamp of the last OFAC list update.

const lastUpdate = await AMLServices.getLastUpdateTime();
console.log(`OFAC list last updated: ${lastUpdate}`);

Installation & Setup

  1. Install dependencies:
npm install
  1. Set up environment variables:
cp .env.example .env
# Edit .env with your configuration
  1. Generate Solidity contracts:
npm run gen
  1. Build the project:
npm run build

Using in Smart Contracts

After running npm run gen, you can use the generated Solidity contracts:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./contracts/NavsReceiver.sol";

contract MyContract is NavsReceiver {
    
    function checkAddress(address addr) external returns (bytes32 taskId) {
        bytes memory addressBytes = abi.encodePacked(addr);
        return NavsAml.isAddressSanctioned(addressBytes, 0.1 ether);
    }
    
    function _onIsAddressSanctioned(
        bytes32 taskId,
        bytes memory address_param,
        bool result,
        string memory error
    ) internal virtual override {
        if (bytes(error).length > 0) {
            // Handle error
            return;
        }
        
        // Handle result
        if (result) {
            // Address is sanctioned - take appropriate action
        }
    }
}

Data Source

This package uses the official OFAC (Office of Foreign Assets Control) SDN Enhanced XML file:

  • Source: U.S. Treasury Department
  • URL: https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN_ENHANCED.XML
  • Update Frequency: Regular updates by OFAC

Security & Compliance

  • Cryptoeconomic Security: Results are backed by operator stakes
  • Slashing Protection: Operators are penalized for providing incorrect results
  • Data Integrity: Multiple operators independently verify results
  • Real-time Data: Always uses the latest OFAC sanctions list

License

MIT License - see LICENSE file for details.