open-index/open-npm huggingface dataset:
npm package: @mailzeno/client
Description: Official MailZeno JavaScript SDK
Latest version: 0.3.0

# @mailzeno/client

![npm version](https://img.shields.io/npm/v/@mailzeno/client)
![npm downloads](https://img.shields.io/npm/dm/@mailzeno/client)
![license](https://img.shields.io/npm/l/@mailzeno/client)
![node](https://img.shields.io/node/v/@mailzeno/client)

Official JavaScript SDK for MailZeno — developer-first transactional email infrastructure.

Send emails through your own SMTP via MailZeno’s secure API with built-in retries, idempotency support, structured errors, and full TypeScript support.

---

## Installation

```bash
npm install @mailzeno/client
```

---

## Quick Start

```ts
import { MailZeno } from "@mailzeno/client"

const mailzeno = new MailZeno("mz_api_your_api_key")

await mailzeno.emails.send({
  smtpId: "your_smtp_id",
  from: "you@example.com",
  to: "recipient@example.com",
  subject: "Hello from MailZeno",
  html: "<h1>Hello world</h1>"
})
```

---

## Template Support

Send using a stored template:

```ts
await mailzeno.emails.send({
  smtpId: "your_smtp_id",
  from: "you@example.com",
  to: "recipient@example.com",
  templateKey: "welcome_email",
  variables: {
    name: "Harsh",
    company: "MailZeno"
  }
})
```

Templates support dynamic variables using `{{variable}}` placeholders.

---

## Idempotency

Prevent duplicate sends during retries:

```ts
await mailzeno.emails.send(
  {
    smtpId: "smtp_id",
    from: "you@example.com",
    to: "recipient@example.com",
    subject: "Payment receipt",
    html: "<h1>Thank you</h1>"
  },
  {
    idempotencyKey: "unique-request-id-123"
  }
)
```

---

## Automatic Retry Behavior

The SDK automatically retries:

- HTTP 5xx errors
- 429 rate limit responses (respects `Retry-After` header)
- Network failures
- Timeouts

Retries use exponential backoff with jitter.

---

## Configuration

```ts
const mailzeno = new MailZeno("api_key", {
  baseUrl: "https://api.mailzeno.dev", // optional
  retries: 2,                      // default: 2
  retryDelay: 500,                 // default: 500ms
  timeout: 10000                   // default: 10s
})
```

---

## Error Handling

```ts
try {
  await mailzeno.emails.send(payload)
} catch (err) {
  console.error(err)
}
```

Errors include:

- `status` (HTTP status)
- `code` (API error code)
- `requestId` (x-request-id for debugging)

---

## Requirements

- Node.js >= 18

---

## License

MIT © MailZeno
npm package: @mailzeno/core
Description: SMTP engine for MailZeno
Latest version: 0.3.1

# @mailzeno/core

SMTP engine powering MailZeno.

Low-level email sending library with:

- SMTP pooling
- Retry logic
- Exponential backoff
- Transient error detection
- React email rendering
- Timeout handling

---

## Installation

```bash
npm install @mailzeno/core
```

---

## Usage

```ts
import { sendEmail } from "@mailzeno/core"

await sendEmail(
  {
    id: "smtp_id",
    host: "smtp.example.com",
    port: 587,
    secure: false,
    user: "username",
    pass: "password"
  },
  {
    from: "you@example.com",
    to: "recipient@example.com",
    subject: "Hello",
    html: "<h1>Hello world</h1>"
  }
)
```

---

## Features

- SMTP connection pooling
- AES-safe config handling (handled by parent app)
- Automatic retries for transient failures
- React email rendering support
- Structured error mapping
- ESM + CommonJS support

---

## Requirements

- Node.js >= 18

---

## License

MIT © MailZeno
npm package: @mailzwj/web-clock
Description: ## 使用示例 * umd script方式 ```js <canvas id="web-clock"></canvas> <script src="./dist/webclock.umd.production.min.js"></script> <script> (() => {   const clock = new WebClock.default('web-clock', {     width: 480,     height: 480,     dpi: devicePixelRatio ||
Author: mailzwj
Latest version: 1.0.3

# web-clock

## 使用示例
* umd script方式
```js
<canvas id="web-clock"></canvas>
<script src="./dist/webclock.umd.production.min.js"></script>
<script>
(() => {
  const clock = new WebClock.default('web-clock', {
    width: 480,
    height: 480,
    dpi: devicePixelRatio || 2,
    showNumber: true
  });
})();
</script>
```
* ES Module
```js
import WebClock from '@mailzwj/web-clock';

// ...
```

## 参数说明
* `theme`: 可选`apple-dark`,`apple-light`和`mi`，默认`apple-dark`。
* `width`: 宽度，默认240
* `height`: 高度，默认240
* `dpi`: 像素比，默认2
* `showNumber`: 是否显示小时数字，默认false
* `userTheme`: 自定义主题配置（详见下节）

## 自定义主题
可定制范围如下：
```ts
Partial<{
  // 背景色
  backgroundColor: IColor;
  // 表面颜色
  faceColor: IColor;
  // 整点刻度颜色
  hourScaleColor: IColor;
  // 分钟刻度颜色
  minuteScaleColor: IColor;
  // 小时数字颜色
  textColor: IColor;
  // 时针颜色
  hourPointerColor: IColor;
  // 分针颜色
  minutePointerColor: IColor;
  // [毫]秒针颜色
  milliPointerColor: IColor;
  // 中心小圆颜色
  centerCircleColor: IColor;
}>;
```
**注意：** 未指定参数将继承`theme`主题的配置。

## 在线DEMO
* [Web Clock](https://mailzwj.github.io/web-clock/example.html)
npm package: @maimond123/agent-pay
Description: MCP server for provisioning paid developer services — starting with Akash compute
Latest version: 0.1.0

# agent-pay

MCP server that lets AI agents provision and pay for cloud compute on [Akash Network](https://akash.network) using USDC.

## Install

```bash
npm install -g agent-pay
```

Or from source:

```bash
git clone https://github.com/maimond123/verifiable-agents.git
cd verifiable-agents/agent-pay
npm install && npm run build
```

## Configure

Add to your Claude Code project settings (`.claude/settings.local.json`):

```json
{
  "mcpServers": {
    "agent-pay": {
      "command": "npx",
      "args": ["agent-pay"],
      "env": {
        "AGENT_PAY_GATEWAY_URL": "https://your-gateway-url.com",
        "AGENT_PAY_GATEWAY_API_KEY": "your-api-key",
        "AGENT_PAY_WALLET_KEY": "your-hex-private-key",
        "AGENT_PAY_NETWORK": "base-sepolia"
      }
    }
  }
}
```

Or for Claude Desktop (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "agent-pay": {
      "command": "npx",
      "args": ["agent-pay"],
      "env": {
        "AGENT_PAY_GATEWAY_URL": "https://your-gateway-url.com",
        "AGENT_PAY_GATEWAY_API_KEY": "your-api-key",
        "AGENT_PAY_WALLET_KEY": "your-hex-private-key",
        "AGENT_PAY_NETWORK": "base-sepolia"
      }
    }
  }
}
```

## Environment Variables

| Variable | Required | Default | Description |
|---|---|---|---|
| `AGENT_PAY_GATEWAY_URL` | Yes | `http://localhost:3000` | URL of the x402-akash-gateway |
| `AGENT_PAY_GATEWAY_API_KEY` | Yes | — | API key for gateway authentication |
| `AGENT_PAY_WALLET_KEY` | No | — | Hex private key for USDC payments. Omit for simulated mode. |
| `AGENT_PAY_NETWORK` | No | `base` | `base-sepolia` (testnet) or `base` (mainnet) |

## Wallet Setup

The wallet specified by `AGENT_PAY_WALLET_KEY` needs:

- **USDC** on the chosen network (to pay for compute)
- **ETH** on the chosen network (to pay gas for the ERC-20 transfer)

USDC contract addresses:
- Base Sepolia: `0x036CbD53842c5426634e7929541eC2318f3dCF7e`
- Base Mainnet: `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`

## Tools

| Tool | Description |
|---|---|
| `provision_compute` | Analyze task, get quotes, pay with USDC, deploy on Akash |
| `get_compute_quote` | Get pricing from multiple providers (shows wallet balance) |
| `check_deployment` | Check status of a deployment |
| `list_deployments` | List all deployments |
| `stop_deployment` | Stop a running deployment |

## License

MIT