open-index/open-npm huggingface dataset:
npm package: @llm-txt/sdk
Description: TypeScript SDK for the LLM-TXT API with built-in x402 payment handling
Author: iammatthias
Latest version: 0.3.2

# @llm-txt/sdk

TypeScript SDK for the LLM-TXT API with built-in x402 payment handling.

## Installation

```bash
npm install @llm-txt/sdk
```

## Quick Start

```typescript
import { LlmFidClient } from "@llm-txt/sdk";

// Initialize with optional wallet signer for payments
const client = new LlmFidClient({
  baseUrl: "https://api.llm-txt.fun",
  signer: walletClient  // viem WalletClient
});

// Get price estimate
const estimate = await client.getServerEstimate({
  username: "dwr.eth",
  limit: 100
});

// Fetch data (handles payment automatically)
const result = await client.fetch({
  username: "dwr.eth",
  limit: 100
});
```

## Available Clients

| Client | Description |
|--------|-------------|
| `LlmFidClient` | Farcaster data exports |
| `LlmBskyClient` | Bluesky data exports |
| `LlmRssClient` | RSS/Atom feed exports |
| `LlmGitClient` | Git repository exports |

## API Reference

### LlmFidClient

```typescript
interface FidParams {
  fid?: number;
  username?: string;
  limit?: number;
  all?: boolean;
  includeReplies?: boolean;
  includeParents?: boolean;
  includeReactions?: boolean;
  sortOrder?: "newest" | "oldest";
}
```

### LlmBskyClient

```typescript
interface BskyParams {
  handle?: string;
  did?: string;
  limit?: number;
  all?: boolean;
  includeReplies?: boolean;
  includeParents?: boolean;
  includeReactions?: boolean;
  sortOrder?: "newest" | "oldest";
}
```

### LlmRssClient

```typescript
interface RssParams {
  url: string;
  limit?: number;
  all?: boolean;
  includeContent?: boolean;
  sortOrder?: "newest" | "oldest";
}
```

### LlmGitClient

```typescript
interface GitParams {
  url: string;
  branch?: string;
  includeTree?: boolean;
  includeContent?: boolean;
  include?: string;
  exclude?: string;
  maxFileSize?: number;
}
```

## x402 Payments

The SDK automatically handles x402 micropayments when a wallet signer is provided. If a request requires payment:

1. The server returns a 402 Payment Required response
2. The SDK signs the payment with your wallet
3. The request is retried with the payment header
4. You receive your data

Without a signer, payment-required requests will throw an error with pricing details.

## License

MIT
npm package: @llm-usage-horizon/llm-usage-node
Description: Local-first Node.js CLI for collecting LLM coding usage and syncing to Feishu
Author: Lewis
Latest version: 0.1.3

# llm-usage-node

`llm-usage-node` 是这个仓库里的 Node.js CLI 版本，用于本地采集 LLM 编码工具用量，并可将聚合结果同步到飞书多维表格。

当前 npm 包能力：

- 本地采集与聚合
- 终端报表与 CSV 输出
- 飞书同步

当前限制：

- 本地命令运行不依赖 Python
- 远端 SSH 采集暂未在 Node 版本中实现；检测到远端配置时会提示并忽略

## 安装

```bash
npm install -g llm-usage-node
```

## 命令

```bash
llm-usage-node doctor
llm-usage-node collect --ui none
llm-usage-node sync --ui none
```

## Node 版本要求

- Node.js `>=22`

项目主页：

- https://github.com/zaxliu/agent_coding_usage