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

@fabrknt/complr-core

v1.0.3

Published

AI-powered compliance engine for digital assets — regulatory intelligence, screening, and reporting

Readme

@fabrknt/complr-core

npm version npm downloads

AI-powered compliance engine for digital assets -- regulatory intelligence, transaction screening, and SAR/STR reporting across MAS, SFC, and FSA jurisdictions.

Not every DeFi protocol needs TradFi compliance -- but if yours does, you shouldn't have to rebuild from scratch. Fabrknt plugs into your existing protocol with composable SDKs and APIs. No permissioned forks, no separate deployments.

Install

npm install @fabrknt/complr-core

Quick Start

import { Complr } from "@fabrknt/complr-core";
import type { TransactionDetails, Jurisdiction } from "@fabrknt/complr-core";

const complr = new Complr({ anthropicApiKey: process.env.ANTHROPIC_API_KEY });

// Add regulatory documents to the knowledge base
complr.addDocument({ id: "mas-psa", jurisdiction: "MAS", title: "...", content: "..." });

// Query regulations in natural language
const answer = await complr.query("What is the Travel Rule threshold?", "MAS");

// Check transaction compliance across jurisdictions
const result = await complr.checkTransaction({
  transactionId: "tx_001",
  senderWallet: "0xabc...",
  recipientWallet: "0xdef...",
  amount: "10000",
  currency: "USDC",
});

Features

  • Multi-jurisdiction compliance checks (MAS, SFC, FSA) in a single call
  • Natural language regulatory queries with TF-IDF semantic search
  • Confidence scoring and citation verification to mitigate LLM hallucination
  • SAR/STR report generation in regulator-specific formats
  • Obligation extraction from regulatory documents
  • Regulatory delta analysis between document versions
  • Multi-chain wallet address support (EVM, Solana, Bitcoin) with auto-detection
  • Zero external dependencies for search, scoring, and screening logic

API

Complr Class

  • new Complr({ anthropicApiKey, model?, port?, jurisdictions? }) -- create an instance
  • addDocument(doc) -- add a regulatory document to the knowledge base
  • query(question, jurisdiction) -- natural language regulatory query
  • queryWithConfidence(question, jurisdiction) -- query with confidence scores and citations
  • checkTransaction(tx, jurisdictions?) -- compliance check across jurisdictions
  • generateReport(tx, riskIndicators, jurisdiction) -- generate SAR/STR report
  • analyzeDocument(doc) -- extract structured obligations from a document
  • analyzeDelta(oldDoc, newDoc) -- compare two regulation versions

Re-exported Modules

  • RegulatoryKnowledgeBase -- document store with TF-IDF semantic search
  • RegulatoryAnalyzer -- LLM-powered regulatory analysis
  • PolicyEngine -- multi-jurisdiction compliance engine
  • ReportGenerator -- SAR/STR report generation
  • ConfidenceScorer -- confidence scoring and hallucination detection
  • detectAddressFormat(address) -- identify chain from address format

Types

  • ComplrConfig -- engine configuration
  • Jurisdiction -- "MAS" | "SFC" | "FSA"
  • TransactionDetails -- transaction input for compliance checks
  • ComplianceCheckResult -- structured check result
  • SarReport -- generated suspicious activity report
  • RegulatoryDocument, RegulatoryObligation -- knowledge base types
  • RegulatoryQueryResult, ConfidenceFactor, Citation -- confidence-scored query types
  • RegDelta -- regulatory document diff
  • AddressFormat -- detected address chain format

Documentation

See the Complr repository README for full documentation, including server setup, admin dashboard, API endpoints, SDK integration, and deployment guides.

Related Packages

| Package | Description | |---------|-------------| | @fabrknt/complr-sdk | Standalone SDK client with retry, batch checks, and webhook handler | | @fabrknt/complr-qn-addon | QuickNode Marketplace add-on for managed compliance |

License

MIT