open-index/open-npm huggingface dataset:
npm package: @qwed-ai/finance
Description: TypeScript wrapper for QWED-Finance - Deterministic verification for banking AI
Author: QWED-AI
Latest version: 1.0.0

# @qwed-ai/finance

TypeScript SDK for QWED-Finance - Deterministic verification for banking AI.

## Installation

```bash
npm install @qwed-ai/finance
```

**Prerequisite:** Python 3.11+ with `qwed-finance` installed:

```bash
pip install qwed-finance
```

## Usage

```typescript
import { FinanceVerifier, ComplianceGuard, UCPVerifier } from '@qwed-ai/finance';

// Verify NPV calculation
const verifier = new FinanceVerifier();
const npvResult = await verifier.verifyNPV([-1000, 300, 400, 500], 0.1, "$180");
console.log(npvResult.verified);  // true
console.log(npvResult.computed_value);  // "$180.42"

// Check AML compliance
const compliance = new ComplianceGuard();
const amlResult = await compliance.checkAML(15000, "US");
console.log(amlResult.needs_flagging);  // true (over $10k threshold)

// Verify payment token
const ucp = new UCPVerifier();
const paymentResult = await ucp.verifyPaymentToken({
  amount: 5000,
  currency: "USD",
  customer_country: "US",
  kyc_verified: true
});
console.log(paymentResult.can_proceed);  // true
```

## API

### FinanceVerifier

- `verifyNPV(cashflows, rate, llmOutput)` - Verify NPV calculation
- `verifyLoanPayment(principal, annualRate, months)` - Verify loan payment

### ComplianceGuard

- `checkAML(amount, countryCode)` - Check AML compliance

### UCPVerifier

- `verifyPaymentToken(tokenData)` - Verify payment token

## License

Apache 2.0
npm package: @qwed-ai/legal
Description: TypeScript wrapper for QWED-Legal - Verification guards for legal contracts
Author: QWED-AI
Latest version: 1.0.0

# @qwed-ai/legal

TypeScript wrapper for **QWED-Legal** - Verification guards for legal contracts.

[![npm version](https://img.shields.io/npm/v/@qwed-ai/legal?color=red)](https://www.npmjs.com/package/@qwed-ai/legal)
[![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](LICENSE)

## Installation

```bash
npm install @qwed-ai/legal
```

**Prerequisites:** Python 3.10+ with `qwed-legal` installed:
```bash
pip install qwed-legal
```

## Quick Start

```typescript
import { DeadlineVerifier, JurisdictionVerifier, StatuteVerifier } from '@qwed-ai/legal';

// Verify contract deadlines
const deadline = new DeadlineVerifier();
const result = await deadline.verify("2026-01-15", "30 business days", "2026-02-27");
console.log(result.verified);  // true/false

// Check jurisdiction conflicts
const jurisdiction = new JurisdictionVerifier();
const jurisdictionResult = await jurisdiction.verifyChoiceOfLaw(
    ["US", "UK"],
    "Delaware",
    "London"
);
console.log(jurisdictionResult.conflicts);  // Array of conflicts

// Verify statute of limitations
const statute = new StatuteVerifier();
const statuteResult = await statute.verify(
    "breach_of_contract",
    "California",
    "2022-01-15",
    "2026-06-01"
);
console.log(statuteResult.verified);  // true - within 4 year limit
```

## Available Verifiers

| Verifier | Description |
|----------|-------------|
| `DeadlineVerifier` | Verify date calculations (business days, calendar days, holidays) |
| `LiabilityVerifier` | Verify liability cap calculations |
| `ClauseVerifier` | Detect contradictory clauses |
| `CitationVerifier` | Validate Bluebook legal citations |
| `JurisdictionVerifier` | Verify choice of law and forum selection |
| `StatuteVerifier` | Check statute of limitations periods |
| `LegalGuard` | All-in-one wrapper for all verifiers |

## All-in-One Guard

```typescript
import { LegalGuard } from '@qwed-ai/legal';

const guard = new LegalGuard();

// Access all verifiers
const deadline = await guard.deadline.verify(...);
const jurisdiction = await guard.jurisdiction.verifyChoiceOfLaw(...);
const statute = await guard.statute.verify(...);
```

## License

Apache 2.0 - Part of the [QWED Ecosystem](https://github.com/QWED-AI)