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/accredit-core

v1.0.3

Published

Shared KYC/AML compliance type definitions

Readme

@fabrknt/accredit-core

npm version npm downloads

Chain-agnostic KYC/AML compliance types and logic. Zero chain-specific dependencies.

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/accredit-core

Quick Start

import {
  KycLevel,
  Jurisdiction,
  isJurisdictionAllowed,
  KYC_TRADE_LIMITS,
} from "@fabrknt/accredit-core";
import type { WhitelistEntry, ComplianceCheckResult } from "@fabrknt/accredit-core";

// Check if a jurisdiction is allowed in a bitmask
const allowed = isJurisdictionAllowed(Jurisdiction.Japan, bitmask);

// Look up per-level trade limits
const limit = KYC_TRADE_LIMITS[KycLevel.Standard]; // 10,000,000

// All address fields are plain strings (base58 or hex) -- no PublicKey dependency
const entry: WhitelistEntry = {
  address: "So11111111111111111111111111111112",
  kycLevel: KycLevel.Enhanced,
  jurisdiction: Jurisdiction.Singapore,
  expiresAt: Date.now() + 86400_000,
};

Features

  • Chain-agnostic types -- all addresses are string, not PublicKey or Address
  • KYC level definitions (Basic, Standard, Enhanced, Institutional) with trade limits
  • Jurisdiction model with bitmask-based allow/block logic
  • Whitelist/blacklist entry types for on-chain enforcement
  • Pool compliance and route verification types for DEX routing
  • Compliant asset wrapper types (wrap/unwrap requests and config)
  • Zero-knowledge compliance proof type definitions
  • String conversion helpers for KYC levels and jurisdictions

API

Enums

  • KycLevel -- Basic, Standard, Enhanced, Institutional
  • Jurisdiction -- Japan, Singapore, HongKong, EU, USA, Other
  • PoolStatus -- Active, Suspended, Revoked

Functions

  • isJurisdictionAllowed(jurisdiction, bitmask) -- check jurisdiction against a bitmask
  • isJurisdictionInBitmask(jurisdiction, bitmask) -- test bitmask membership
  • kycLevelToString(level) / kycLevelFromString(str) -- enum-string conversion
  • jurisdictionToString(j) / jurisdictionFromString(str) -- enum-string conversion

Constants

  • KYC_TRADE_LIMITS -- per-level transaction size limits

Types

  • WhitelistEntry, BlacklistEntry, KycRegistry -- identity registry
  • ComplianceCheckResult -- transfer validation result
  • Chain -- "solana" | "evm"
  • PoolComplianceEntry, RouteComplianceResult, ComplianceRouterConfig -- DEX routing
  • CompliantQuoteResult, QuoteRequest, QuoteResponse -- quote types
  • SwapRoute, SwapParams, SwapResponse -- swap execution types
  • ZkComplianceProof -- zero-knowledge proof structure
  • WrapperConfig, WrapRequest, UnwrapRequest, WrapResult -- asset wrapping

Documentation

See the Accredit repository README for full documentation, including Solana program references, SDK guides, router integration, and KYC provider setup.

Related Packages

| Package | Description | |---------|-------------| | @fabrknt/accredit-sdk | Solana PDA derivation, KycClient, RegistryClient, WrapperClient | | @fabrknt/accredit-router | Compliance-aware DEX routing with Jupiter integration | | @fabrknt/accredit-kyc-providers | Multi-provider KYC integration (Civic, World ID) |

License

MIT