open-index/open-npm huggingface dataset:
npm package: @moltrust/mpp
Description: MolTrust trust score middleware for MPP (Machine Payments Protocol) endpoints
Author: Lars Kroehl
Latest version: 1.0.3

# @moltrust/mpp

Trust score middleware for MPP (Machine Payments Protocol) endpoints.
Works alongside `mppx` — one line of code.

## Install
```
npm install @moltrust/mpp
```

## Usage
```javascript
const { requireScore } = require('@moltrust/mpp');
const { Mppx, tempo } = require('mppx/server');

// Add MolTrust trust check before MPP payment middleware
app.use(requireScore({ minScore: 60 }));
app.use(mppx.charge({ amount: '0.01' }));
```

## How it works
1. Extracts paying wallet from MPP Authorization credential header
2. Looks up MolTrust trust score for that wallet (5-min cache)
3. Allows or denies based on configurable minScore threshold
4. Attaches `req.moltrust = { wallet, score, protocol: 'mpp' }` for downstream use

## Companion packages
- [@moltrust/x402](https://www.npmjs.com/package/@moltrust/x402) — same API for x402 endpoints

## Links
- MolTrust: https://moltrust.ch
- MPP Protocol: https://mpp.dev
- Wallet profile: https://moltrust.ch/wallet/{address}

## License
MIT — Copyright (c) 2026 CryptoKRI GmbH, Zurich (MolTrust)
npm package: @moltrust/x402
Description: MolTrust trust verification middleware for x402 payments — integrates MoltGuard agent scoring into Hono/Express servers
Author: Lars Kroehl
Latest version: 1.0.1

# @moltrust/x402

MolTrust trust verification middleware for [x402](https://www.x402.org/) payments. Checks the paying agent's [MoltGuard](https://moltrust.ch/moltguard.html) reputation score before allowing payment flow.

## Install

```bash
npm install @moltrust/x402
```

## Hono

```ts
import { Hono } from "hono";
import { moltrustGuard } from "@moltrust/x402";

const app = new Hono();
app.use(moltrustGuard({ minScore: 50 }));
```

## Express

```ts
import express from "express";
import { moltrustGuard } from "@moltrust/x402/express";

const app = express();
app.use(moltrustGuard({ minScore: 50 }));
```

## How it works

1. Extracts wallet address from the `X-PAYMENT` header
2. Calls MoltGuard's free agent scoring endpoint
3. Returns `403` if score is below `minScore`
4. Passes through if score is OK
5. **Fails open** if MoltGuard is unreachable (never blocks payments on downtime)

## Options

| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `minScore` | `number` | `50` | Minimum score (0–100) to allow |
| `apiUrl` | `string` | `https://api.moltrust.ch/guard` | MoltGuard API base URL |
| `timeout` | `number` | `3000` | Timeout in ms |

## License

MIT — [moltrust.ch](https://moltrust.ch)
npm package: @moltspeak1/sdk
Description: MoltSpeak Protocol SDK - Secure agent-to-agent communication
Author: MoltSpeak Contributors
Latest version: 0.1.0

# MoltSpeak JavaScript SDK

TypeScript-first SDK for MoltSpeak protocol.

## Installation

```bash
npm install @moltspeak/sdk
```

See [moltspeak.js](moltspeak.js) for full implementation.
npm package: @moltwall/sdk
Description: MoltWall — AI agent security firewall TypeScript SDK.
Latest version: 0.1.0

# @moltwall/sdk

Production-grade TypeScript SDK for **MoltWall** (AI Agent Security Firewall).

## Install

```bash
npm i @moltwall/sdk
```

## Quick Start

```ts
import { MoltWall, type MoltWallConfig } from "@moltwall/sdk";

const config: MoltWallConfig = {
  apiKey: process.env.MOLTWALL_API_KEY ?? "",
  // Example: https://www.moltwall.xyz
  baseUrl: process.env.MOLTWALL_BASE_URL ?? "http://localhost:3000"
};

const wall = new MoltWall(config);

const decision = await wall.check({
  agent_id: "agent_123",
  tool_id: "tool_search_web",
  action: "search",
  args: { query: "moltwall firewall" },
  // Optional provenance
  source: "external"
});

console.log(decision.decision);
```

## Configuration

`MoltWall` accepts a `MoltWallConfig`:

- `apiKey` (string): Your MoltWall API key.
- `baseUrl` (string): Your MoltWall API base URL.

Environment suggestions:

- `MOLTWALL_API_KEY`
- `MOLTWALL_BASE_URL`

## Decisions

The core firewall endpoint returns one of:

- `allow`
- `deny`
- `require_confirmation`
- `sandbox`

## Notes

- This SDK is designed to be used from Node.js or the browser.
- For full API semantics, see the MoltWall dashboard and docs.