Skip to main content

Installation

Quick Start

Configuration

Evaluate Options

Using a Policy Template

The simplest way to evaluate — pick a template that matches your use case:

Using Custom Gates

For full control, specify individual gates:

With Dynamic Pricing

Compute trust-based pricing for your API:

With Reputation Data

Response Types

TrustResult

The evaluate() method returns a TrustResult:

GateScoreBreakdown

Error Handling

Framework Middleware

The core SDK is used by all framework middleware packages. If you’re using Hono, Express, Next.js, or FastAPI, see the dedicated middleware guides — they handle wallet extraction, 402 challenges, and trust headers automatically.

Hono

Drop-in Hono middleware

Express

Express middleware

Next.js

Next.js edge middleware

Python

Python + FastAPI