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

@truthlocks/sdk-antifraud

v1.1.1

Published

TypeScript SDK for Truthlocks Anti-Fraud Identity Firewall API

Readme

@truthlocks/sdk-antifraud

TypeScript SDK for the Truthlocks Anti-Fraud Identity Firewall. Real-time risk evaluation, deepfake detection, account takeover prevention, and velocity scoring.

Install

npm install @truthlocks/sdk-antifraud

Get an API Key (Free — 10 Seconds, No Website)

# Option 1: Via CLI
npx @truthlocks/protect register --email [email protected]

# Option 2: Via SDK
import { TruthlockClient } from '@truthlocks/sdk';
const { apiKey } = await TruthlockClient.register({ email: '[email protected]' });

# Option 3: Via MCP (Claude/ChatGPT)
# Call tool: truthlocks_register { email: "[email protected]" }

# Option 4: Via VS Code
# Command Palette → "MAIP: Register Developer"

# Option 5: Via cURL
curl -X POST https://sandbox-api.truthlocks.com/v1/developers/register \
  -H "Content-Type: application/json" \
  -d '{"email":"[email protected]","source":"curl"}'

Free tier: 1,000 risk evaluations/month. No credit card required.

Quick Start

import { AntifraudClient } from '@truthlocks/sdk-antifraud';

const client = new AntifraudClient({ apiKey: 'tl_test_your_key' });

// Evaluate risk for a transaction
const decision = await client.evaluate({
  subject_id: 'user-123',
  event_type: 'payment',
  amount: 5000,
  currency: 'USD',
  ip_address: '203.0.113.1',
  device_fingerprint: 'fp_abc123',
});

console.log(decision.risk_level); // "low" | "medium" | "high" | "critical"
console.log(decision.action);     // "allow" | "challenge" | "block"

Features

Risk Evaluation

const result = await client.evaluate({ subject_id, event_type, signals });

Deepfake Detection

const scan = await client.deepfake.scan({ media_url: 'https://...' });

Account Takeover Detection

const ato = await client.ato.evaluate({ user_id, login_context });

Velocity Scoring

const velocity = await client.velocity.record({ subject_id, action: 'purchase' });

Block / Challenge / Quarantine

await client.block({ subject_id, reason: 'suspicious_pattern' });
await client.challenge({ subject_id, challenge_type: 'sms_otp' });

10 Signing Algorithms

All cryptographic receipts support: Ed25519, ES256, ES384, ES512, RS256, RS384, RS512, PS256, PS384, PS512

Free Tier (No Credit Card)

| Resource | Limit | |----------|-------| | Risk evaluations | 1,000/month | | Deepfake scans | 10/month | | Velocity scoring | Unlimited | | Algorithms | All 10 |

Upgrade at console.truthlocks.com/upgrade

Documentation

License

MIT