open-index/open-npm huggingface dataset:
npm package: @payburner/paybutton.js
Description: Payburner Button
Latest version: 0.0.15


## Using this component

To create pay buttons:
- You first need to have a Payburner Wallet (click to <a href="https://chrome.google.com/webstore/detail/ghigcfhmoaokccllienfhdhdndkfhmop/publish-accepted?authuser=3&hl=en">install</a>)
- In your Payburner Wallet, click on your profile icon, and then open `Pay Button Manager`.
- Click on the `+ shopping cart ` icon and then enter the information for your pay button.
- Once the pay button has been created, Click on the `more` icon and then select `Embed`.  You will receive instructions for installing the pay button.

### Script tag
- Put a script tag similar to this `<script src="https://www.payburner.com/payburner.js"></script>` in the head of your index.html to import payburner.       
- Put a script tag similar to this `<script src='https://unpkg.com/@payburner/paybutton.js@^0.0.13/dist/pay-button.js'></script>` in the head of your index.html to load the component
- Then you can use the element anywhere in your template, JSX, html etc
   <pay-button buttonid="7b2d5583-a178-434d-8048-516f784f8f92" ></pay-button>
npm package: @paybutton/paybutton
Description: The easiest way to accept eCash online
Latest version: 5.4.0

# @paybutton/paybutton

> The easiest way to accept eCash online

[![NPM](https://img.shields.io/npm/v/@paybutton/paybutton.svg)](https://www.npmjs.com/package/@paybutton/paybutton)

## Install

```bash
npm install --save @paybutton/paybutton
```

## Usage

```
<script src="https://unpkg.com/@paybutton/paybutton/dist/paybutton.js"></script>
<div class="paybutton"
  to="ecash:qrmm7ed0px8tydrlhgvu3putwpwzlfyr0uzfc0slxp"
  amount="5"
  currency="USD"
  text="Donate $5"
  hover-text="Send XEC"
  success-text="Thanks for your support!"
></div>
```

## Documentation

<a href="https://paybutton.org">PayButton.org</a>

## License

MIT
npm package: @paybutton/react
Description: The easiest way to accept eCash online
Author: Blockchain Ventures Corp.
Latest version: 5.4.0

# @paybutton/react

> The easiest way to accept eCash online

[![NPM](https://img.shields.io/npm/v/@paybutton/react.svg)](https://www.npmjs.com/package/@paybutton/react)

## Install

```bash

  npm install --save @paybutton/react

```
or 

```bash

  yarn add @paybutton/react

```

## Usage

```tsx

import React from 'react'

import { PayButton } from '@paybutton/react'

<PayButton to={address} />

```

## License

MIT
npm package: @paybygroup/baelish
Description: Money utility functions and formating.
Author: Pay By Group
Latest version: 1.2.0

# Baelish

> Lord Petyr Baelish, popularly called Littlefinger, was the Master of Coin
> on the Small Council under King Robert Baratheon and King Joffrey Baratheon.

This library is a simple wrap for a Money type in javascript.

# Usage

```javascript
import money, { USD, format } from '@paybygroup/baelish';

const amount = money(100, USD);
format(amount); // => "$1.00"

// or

var baelish = require('@paybygroup/baelish');
var money = baelish.default;

var amount = money(100, baelish.USD);
baelish.format(amount); // => "$1.00"
```

**We're still working on the docs, please refer to the source code for now.**

# Installing

```
npm install @paybygroup/baelish
```

# Contributing

- Issues: https://github.com/paybygroup/baelish/issues
- Repository: https://github.com/paybygroup/baelish

# License

MIT
npm package: @paybyrd/ai-agent-claude
Description: Paybyrd integration for a claude AI agent
Author: Paybyrd
Latest version: 0.3.6

# Paybyrd AI Agent for Claude

Anthropic Claude integration for Paybyrd's AI Agent Toolkit.

## Installation

```bash
npm install @paybyrd/ai-agent-claude
```

## Quick Start

This package provides a server compatible with Anthropic's Model Context Protocol (MCP).

### Running the Agent

You can use npx to start the agent server:

```bash
npx -y @paybyrd/ai-agent-claude
```

### Authentication

You can authenticate using any of these methods:

- **Environment Variable**: `PAYBYRD_API_KEY`: Your Paybyrd API key
- **Command Argument**: Pass your API key directly as an argument

```bash
# With API Key
npx -y @paybyrd/ai-agent-claude YOUR_API_KEY
```

### Full Example

```typescript
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { Anthropic } from "@anthropic-ai/sdk";

// Your Anthropic API key
const ANTHROPIC_API_KEY = process.env.ANTHROPIC_API_KEY;

// Your Paybyrd API Key
const PAYBYRD_API_KEY = process.env.PAYBYRD_API_KEY;

async function main() {
  // Initialize the Anthropic client
  const anthropic = new Anthropic({
    apiKey: ANTHROPIC_API_KEY,
  });

  const mcp = new Client({ name: "mcp-client-cli", version: "1.0.0" });

  // Start the server process
  const transport = new StdioClientTransport({
    command: "npx",
    args: ["-y", "@paybyrd/ai-agent-claude"],
    env: {
      PAYBYRD_API_KEY: PAYBYRD_API_KEY
    }
  });

  // Alternatively, you can pass the API key directly as an argument:
  // args: ["-y", "@paybyrd/ai-agent-claude", PAYBYRD_API_KEY],
  // env: {}

  mcp.connect(transport);

  const toolsResult = await mcp.listTools();
  const tools = toolsResult.tools.map((tool) => ({
    name: tool.name,
    description: tool.description,
    input_schema: tool.inputSchema,
  }));

  // Make a request to Claude with the tools
  const message = await anthropic.messages.create({
    model: "claude-3-5-sonnet-20241022",
    max_tokens: 1000,
    messages: [
      {
        role: "user",
        content: "Please retrieve the order '627f7c5c-b50b-412c-868f-bbae98c16b2e'"
      }
    ],
    tools: tools
  });
  
  console.log("Claude response:", message.content);
}

main().catch(error => {
  console.error('Client error:', error);
});
```

## License

MIT
npm package: @paybyrd/ai-agent-openai
Description: OpenAI integration for AI agent toolkit
Author: Paybyrd
Latest version: 0.3.6

# Paybyrd AI Agent for OpenAI

OpenAI integration for Paybyrd's AI Agent Toolkit.

## Installation

```bash
npm install @paybyrd/ai-agent-openai
```

## Quick Start

This package provides tools for OpenAI's function calling API.

### Setup

```typescript
import OpenAI from 'openai';
import { OpenAIAgentToolkit } from '@paybyrd/ai-agent-openai';

// Initialize OpenAI client
const openai = new OpenAI({
  apiKey: process.env.OPENAI_API_KEY,
});

// Initialize the Paybyrd toolkit
const toolkit = new OpenAIAgentToolkit({
  authToken: process.env.PAYBYRD_API_KEY,
  configuration: {
    actions: {
      paymentLinks: { create: true },
      refunds: { create: true },
      order: { read: true }
    },
  },
});
```

### Function Calling Example

```typescript
async function createPaymentLink() {
  // Get the tools for OpenAI
  const tools = toolkit.getTools();
  
  // Make a request to OpenAI with the tools
  const response = await openai.chat.completions.create({
    model: 'gpt-4o',
    messages: [
      { 
        role: 'system', 
        content: 'You are a helpful assistant that can create payment links and process refunds.' 
      },
      { 
        role: 'user', 
        content: 'Can you create a payment link for €50 for a customer named John Smith?' 
      }
    ],
    tools: tools,
  });
  
  const message = response.choices[0].message;
  
  // Handle tool calls if any were made
  if (message.tool_calls && message.tool_calls.length > 0) {
    // Process the tool calls
    const toolResults = await Promise.all(
      message.tool_calls.map(toolCall => toolkit.handleToolCall(toolCall))
    );
    
    // Continue the conversation with the results
    const finalResponse = await openai.chat.completions.create({
      model: 'gpt-4o',
      messages: [
        { 
          role: 'system', 
          content: 'You are a helpful assistant that can create payment links and process refunds.' 
        },
        { 
          role: 'user', 
          content: 'Can you create a payment link for €50 for a customer named John Smith?' 
        },
        message,
        ...toolResults,
      ],
    });
    
    return finalResponse.choices[0].message;
  }
  
  return message;
}
```

## Available Tools

The toolkit provides these tools to OpenAI:

- `create_payment_link`: Create a payment link for a customer
- `create_refund`: Process a refund for a transaction
- `retrieve_order`: Get details about an order

## License

MIT
npm package: @paybyrd/ai-agent-toolkit
Description: Toolkit for building AI agents with various models
Author: Paybyrd
Latest version: 0.3.6

# Paybyrd AI Agent Toolkit Core

A toolkit for building AI agents with Paybyrd payment processing capabilities.

## Installation

```bash
npm install @paybyrd/ai-agent-toolkit
```

## Features

- Create payment links for customers
- Process refunds for transactions
- Retrieve order details
- Tool permissions system
- Compatible with OpenAI and Claude integrations

## Integrations

This core package is used by model-specific integrations:

- Claude: `@paybyrd/ai-agent-claude`
- OpenAI: `@paybyrd/ai-agent-openai`

## API Reference

### Configuration

```typescript
// Configuration example
const configuration = {
  actions: {
    paymentLinks: { create: true },
    refunds: { create: true },
    order: { read: true }
  },
  // Optional context
  context: {
    baseUrl: "https://api.paybyrd.com/v1"
  }
};
```

### Available Tools

- `create_payment_link`: Create a payment link for a customer
- `create_refund`: Process a refund for a transaction
- `retrieve_order`: Get details about an order

## License

MIT
npm package: @paybyrd/ai-agent-toolkit-js
Description: Toolkit for building AI agents with OpenAI and Claude
Author: Paybyrd
Latest version: 0.2.4

# Paybyrd AI Agent Toolkit

A toolkit for integrating Paybyrd's payment processing capabilities with AI models like OpenAI and Anthropic Claude.

## Overview

This toolkit enables AI assistants to perform payment operations through the Paybyrd API:

- Create payment links for customers
- Process refunds
- Retrieve order information

The toolkit uses a modular architecture with support for different AI platforms.

## Repository Structure

This monorepo is organized into these packages:

- **core** (`@paybyrd/ai-agent-toolkit`): Core functionality and shared tools
- **claude** (`@paybyrd/ai-agent-claude`): Anthropic Claude integration using Model Context Protocol
- **openai** (`@paybyrd/ai-agent-openai`): OpenAI integration with function calling

## Quick Start

### Prerequisites

- Node.js 18 or higher
- Paybyrd API key
- OpenAI API key (for OpenAI integration) or Anthropic API key (for Claude integration)

### Installation

Each package can be installed separately depending on which AI platform you're using:

```bash
# For the core functionality
npm install @paybyrd/ai-agent-toolkit

# For Claude integration
npm install @paybyrd/ai-agent-claude

# For OpenAI integration
npm install @paybyrd/ai-agent-openai
```

## Examples

See the `/examples` directory for complete implementation examples:

- `/examples/openai`: Example implementation with OpenAI
- `/examples/modelcontextprotocol`: Example implementation with Claude using the Model Context Protocol

## Available Tools

The toolkit provides these payment operations:

- **Create Payment Link**: Generate payment links to send to customers
- **Create Refund**: Process refunds for transactions
- **Retrieve Order**: Get details about an existing order

## Development

```bash
# Install dependencies
npm install

# Build all packages
npm run build

# Run tests
npm test
```

## License

MIT
npm package: @paycall-402/client
Description: Client SDK for automatically handling HTTP 402 payment challenges.
Author: rohitsethii
Latest version: 0.1.1

# @paycall-402/client

Client SDK for automatically handling HTTP 402 payment challenges.

> **Important:** Currently, only **EIP-3009 tokens** are supported for end-to-end payment and settlement flows.

## Install

```bash
npm i @paycall-402/client
```

## What this package contains

- `createPaidFetch` wrapper for automatic 402 retry flow
- Axios interceptor helpers
- Wallet adapters:
  - `walletFromViemAccount`
  - `walletFromEthersSigner`
  - `walletFromBrowserProvider`
  - `walletFromGenericSigner`
- EVM payment signer helpers

## Usage

```ts
import { createPaidFetch, createEvmPaymentSigner, walletFromViemAccount } from "@paycall-402/client";
```

Examples:
- Node client: `examples/clients/node-paid-fetch`
- Browser wallet demo: `examples/clients/injected-provider`

Repository:
https://github.com/rohitsethii/paycall-402
npm package: @paycall-402/core
Description: Core framework-agnostic payment engine primitives for Paycall 402.
Author: rohitsethii
Latest version: 0.1.1

# @paycall-402/core

Core framework-agnostic payment engine primitives for Paycall 402.

> **Important:** Currently, only **EIP-3009 tokens** are supported for end-to-end payment and settlement flows.

## Install

```bash
npm i @paycall-402/core
```

## What this package contains

- `PaymentEngine` scheme registry
- Challenge creation and verification orchestration
- Shared server-side verification flow helpers

## Usage

```ts
import { PaymentEngine } from "@paycall-402/core";
```

Most users consume higher-level packages (`@paycall-402/server`, `@paycall-402/express`) instead of using `core` directly.

Repository docs:
https://github.com/rohitsethii/paycall-402
npm package: @paycall-402/evm
Description: EVM scheme implementations and typed-data builders for Paycall 402.
Author: rohitsethii
Latest version: 0.1.1

# @paycall-402/evm

EVM scheme implementations and typed-data builders for Paycall 402.

> **Important:** Currently, only **EIP-3009 tokens** are supported for end-to-end payment and settlement flows.

## Install

```bash
npm i @paycall-402/evm
```

## Exports

- `@paycall-402/evm`:
  - EIP-3009 and EIP-2612 scheme helpers
  - typed-data/message builders
- `@paycall-402/evm/browser`:
  - browser-safe helpers
- `@paycall-402/evm/abis`:
  - shared contract ABIs (including `EIP3009_TOKEN_ABI`)

## Usage

```ts
import { EIP3009_SCHEME_ID, buildEip3009TypedData } from "@paycall-402/evm";
import { EIP3009_TOKEN_ABI } from "@paycall-402/evm/abis";
```

More context and examples:
https://github.com/rohitsethii/paycall-402
npm package: @paycall-402/express
Description: Express middleware integration for Paycall 402.
Author: rohitsethii
Latest version: 0.1.1

# @paycall-402/express

Express middleware integration for Paycall 402.

> **Important:** Currently, only **EIP-3009 tokens** are supported for end-to-end payment and settlement flows.

## Install

```bash
npm i @paycall-402/express
```

## What this package contains

- `paywallCore()` middleware
- `paywall()` middleware (EIP-3009 verify + settlement path)

## Usage

```ts
import express from "express";
import { paywall } from "@paycall-402/express";
```

See the full server example and setup docs:
https://github.com/rohitsethii/paycall-402
npm package: @paycall-402/server
Description: Framework-agnostic server utilities for implementing Paycall 402 paywalls.
Author: rohitsethii
Latest version: 0.1.1

# @paycall-402/server

Framework-agnostic server utilities for implementing Paycall 402 paywalls.

> **Important:** Currently, only **EIP-3009 tokens** are supported for end-to-end payment and settlement flows.

## Install

```bash
npm i @paycall-402/server
```

## What this package contains

- `createPaywall` and EIP-3009 settlement helpers
- Nonce stores (including in-memory)
- Environment and chain config helpers
- Optional queue adapter integrations (RabbitMQ/Kafka via optional peer deps)

## Usage

```ts
import { createPaywallWithEip3009Settlement, loadServerEnv } from "@paycall-402/server";
```

For HTTP middleware integration, pair this with `@paycall-402/express`.

Full docs:
https://github.com/rohitsethii/paycall-402
npm package: @paycall-402/types
Description: Shared protocol and integration types for Paycall 402.
Author: rohitsethii
Latest version: 0.1.1

# @paycall-402/types

Shared protocol and integration types for Paycall 402.

> **Important:** Currently, only **EIP-3009 tokens** are supported for end-to-end payment and settlement flows.

## Install

```bash
npm i @paycall-402/types
```

## What this package contains

- Core HTTP 402 protocol shapes (`PaymentChallenge`, `PaymentProof`)
- Verification result/error types
- Nonce store and pricing interfaces
- Typed-data helper types used across client/server packages

## Usage

```ts
import type { PaymentChallenge, PaymentProof, VerificationResult } from "@paycall-402/types";
```

For end-to-end examples, see the repository root README:
https://github.com/rohitsethii/paycall-402
npm package: @paycall-402/utils
Description: Utility helpers shared across Paycall 402 packages.
Author: rohitsethii
Latest version: 0.1.1

# @paycall-402/utils

Utility helpers shared across Paycall 402 packages.

> **Important:** Currently, only **EIP-3009 tokens** are supported for end-to-end payment and settlement flows.

## Install

```bash
npm i @paycall-402/utils
```

## What this package contains

- Base64URL encoding/decoding helpers
- Header encode/decode helpers for `X-PAYMENT-*`
- Crypto/time helpers used by client and server flows

## Usage

```ts
import {
  PAYMENT_CHALLENGE_HEADER,
  decodeChallengeHeader,
  encodePaymentMessageHeader
} from "@paycall-402/utils";
```

For end-to-end examples, see:
https://github.com/rohitsethii/paycall-402