Menu

Explorer & Settings

Tempo Explorer Submit Project
Back to all projects
B

bejibun-x402

by Bejibun-Framework · Updated Jul 3, 2026

x402 for Bejibun Framework

7
Stars
0
Forks
TypeScript
Language
Nov 13, 2025
Created

In the AI payments ecosystem

bejibun-x402 is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on middleware, x402, x402-payment. It currently has 7 GitHub stars and 0 forks, and sits alongside related tools like X402-audio-to-audio, sample-agentcore-cloudfront-x402-payments, spritz.

README.md View on GitHub →
Bejibun

GitHub top language NPM Downloads GitHub issues GitHub GitHub release (latest by date including pre-releases)

x402 for Bejibun

x402 for Bejibun Framework.

Usage

Installation

Install the package.

# Using Bun
bun add @bejibun/x402

# Using Bejibun
bun ace install @bejibun/x402

Configuration

The configuration file automatically executed if you are using ace.

Or

Add x402.ts inside config directory on your project if doesn't exist.

config/x402.ts
import type {TFacilitator, TNetwork, TPrice, TScheme} from "@bejibun/x402/types";
import {facilitator} from "@coinbase/x402";

const config: Record<string, any> = {
    scheme: "exact" as TScheme,
    price: "$1" as TPrice,
    networks: [
        {
            network: "eip155:8453" as TNetwork,
            payTo: "0xdABe8750061410D35cE52EB2a418c8cB004788B3"
        },
        {
            network: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" as TNetwork,
            payTo: "GAnoyvy9p3QFyxikWDh9hA3fmSk2uiPLNWyQ579cckMn"
        }
    ],
    facilitator: facilitator as TFacilitator
};

export default config;

You can pass the value with environment variables.

How to Use

How to use tha package.

import type {TFacilitator, TRoutePaymentConfig} from "@bejibun/x402/types";
import X402 from "@bejibun/x402";

/**
 * setFacilitator(config?: TFacilitator)
 * 
 * setRoutePayment(config?: TRoutePaymentConfig)
 * 
 * setRequest(request: Bun.BunRequest) // Mandatory for request headers
 */
return await X402
    .setFacilitator()
    .setRoutePayment()
    .setRequest(request)
    .middleware(async () => {
        // your paid resource here
    });

☕ Support / Donate

If you find this project helpful and want to support it:

Donate

Or you can buy this $BJBN (Bejibun) tokens here.

All SDKs & Clients SDKs →