open-index/open-npm huggingface dataset:
npm package: @shroudedcode/hx711
Description: A native Node.js module to interface with the HX711 load cell amplifier
Author: Niklas Higi
Latest version: 0.0.4

# @shroudedcode/hx711

This is a fork of [**@dangrie**'s `hx711` package](https://github.com/dangrie158/hx711). I've ported it to the new [N-API](https://nodejs.org/api/n-api.html) and made some changes to better suit a project I'm using it in.
npm package: @shroudfi/agent-sdk
Description: AI Agent SDK for ShroudFi MEV protection — ERC-8004 compatible, works with Coinbase AgentKit and x402
Author: Astra Fintech Labs Pvt. Ltd.
Latest version: 0.1.0

# @shroudfi/agent-sdk

AI Agent SDK for ShroudFi MEV protection. Purpose-built for autonomous agents that execute DeFi transactions.

## Installation

```bash
npm install @shroudfi/agent-sdk
```

## Quick Start

```typescript
import { ShroudFiAgent } from '@shroudfi/agent-sdk';

// Initialize the agent
const agent = new ShroudFiAgent({
  apiKey: 'your-api-key',
  chainId: 1,
  walletAddress: '0x...',
});

// Execute a MEV-protected swap
const result = await agent.swap({
  tokenIn: 'WETH',
  tokenOut: 'USDC',
  amount: '1.0',
  maxSlippageBps: 50,
});

console.log('Swap executed:', result.txHash);
console.log('MEV saved:', result.mevSaved);
```

## Features

- **ERC-8004 compatible** — Works with the emerging standard for agent-to-protocol communication
- **Coinbase AgentKit integration** — Plug directly into Coinbase's Agentic Wallet framework
- **x402 protocol support** — HTTP 402-based payment flows for agent transactions
- **Autonomous execution** — Agents can submit intents, monitor settlements, and handle retries
- **Multi-chain** — Same API across 10 EVM chains + Solana

## Integration with Coinbase AgentKit

```typescript
import { ShroudFiAgent } from '@shroudfi/agent-sdk';
import { CoinbaseAgentKit } from '@coinbase/agentkit';

const agentKit = new CoinbaseAgentKit({ /* ... */ });
const shroud = new ShroudFiAgent({
  apiKey: 'your-api-key',
  chainId: 8453, // Base
  walletAddress: agentKit.walletAddress,
});

// The agent can now execute MEV-protected trades
const tools = shroud.getAgentKitTools();
// Returns tool definitions compatible with AgentKit's tool registry
```

## API Reference

### `ShroudFiAgent`

```typescript
new ShroudFiAgent({
  apiKey: string;          // Your ShroudFi API key
  chainId: number;         // Target chain ID
  walletAddress: string;   // Agent's wallet address
  rpcUrl?: string;         // Custom RPC (defaults to rpc.shroudfi.com)
})
```

### Methods

| Method | Description |
|---|---|
| `swap(params)` | Execute a MEV-protected token swap |
| `submitIntent(intent)` | Submit a raw swap intent |
| `getBalance(token)` | Get token balance for agent wallet |
| `estimateGas(tx)` | Estimate gas with MEV-aware pricing |
| `getAgentKitTools()` | Get Coinbase AgentKit-compatible tool definitions |
| `getMevReport()` | Get MEV savings report for this agent |

## Supported Chains

Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche, zkSync Era, Linea, Scroll, Solana (Beta)

## Links

- [Website](https://shroudfi.com)
- [GitHub](https://github.com/san-techie21/ShroudFi)
- [TypeScript SDK](https://www.npmjs.com/package/@shroudfi/sdk)

## License

MIT — Astra Fintech Labs Pvt. Ltd.
npm package: @shroudfi/chain-adapters
Description: Multi-chain adapters for ShroudFi MEV protection — EVM, Solana (Jito), Cosmos, Sui, Aptos
Author: Astra Fintech Labs Pvt. Ltd.
Latest version: 0.1.0

# @shroudfi/chain-adapters

Multi-chain adapters for the ShroudFi MEV protection protocol. Provides a unified interface for sending MEV-protected transactions across EVM chains, Solana, and more.

## Installation

```bash
npm install @shroudfi/chain-adapters
```

## Quick Start

```typescript
import { EthereumAdapter, SolanaAdapter } from '@shroudfi/chain-adapters';

// EVM chain — routes through Flashbots/MEV Blocker
const eth = new EthereumAdapter();
const txHash = await eth.sendProtectedTransaction(signedTx);

// Solana — routes through Jito bundles
const sol = new SolanaAdapter();
const bundleId = await sol.sendProtectedTransaction(serializedTx);
```

## Supported Chains

### EVM Chains (Full Support)

| Chain | Adapter | MEV Protection |
|---|---|---|
| Ethereum | `EthereumAdapter` | Flashbots + MEV Blocker |
| Base | `BaseAdapter` | Flashbots + MEV Blocker |
| Arbitrum | `ArbitrumAdapter` | Flashbots + MEV Blocker |
| Optimism | `OptimismAdapter` | Flashbots + MEV Blocker |
| Polygon | `PolygonAdapter` | Flashbots + MEV Blocker |
| BNB Chain | `BnbAdapter` | Flashbots + MEV Blocker |
| Avalanche | `AvalancheAdapter` | Flashbots + MEV Blocker |
| zkSync Era | `ZkSyncAdapter` | Flashbots + MEV Blocker |
| Linea | `LineaAdapter` | Flashbots + MEV Blocker |
| Scroll | `ScrollAdapter` | Flashbots + MEV Blocker |

### Non-EVM Chains

| Chain | Adapter | MEV Protection |
|---|---|---|
| Solana | `SolanaAdapter` | Jito Bundles (Beta) |
| Cosmos | `CosmosAdapter` | Skip Protocol (Phase 2) |
| Sui | `SuiAdapter` | Coming (Phase 2) |
| Aptos | `AptosAdapter` | Coming (Phase 2) |

## Architecture

All EVM adapters extend the base `EvmAdapter` class which implements a 3-tier MEV protection cascade:

1. **Flashbots Protect** — Direct builder submission (fastest, most private)
2. **MEV Blocker** — CoW Protocol's relay (backup, broader builder set)
3. **Public RPC** — Standard submission (fallback only)

The Solana adapter uses Jito's block engine for atomic bundle submission, making transactions invisible to sandwich bots.

## License

MIT — Astra Fintech Labs Pvt. Ltd.
npm package: @shroudfi/core
Description: ShroudFi core types, constants, and utilities for MEV protection across 14+ chains
Author: Astra Fintech Labs Pvt. Ltd.
Latest version: 0.1.0

# @shroudfi/core

Core types, constants, and utilities for the ShroudFi MEV protection protocol.

## Installation

```bash
npm install @shroudfi/core
```

## What's Included

- **Chain types** — `ChainId` enum for 14 supported chains (10 EVM + Solana + Cosmos + Sui + Aptos)
- **Chain configs** — RPC URLs, block times, native currencies, explorer URLs
- **DEX router registry** — Known router addresses for transaction detection across all chains
- **EIP-712 types** — Typed data structures for intent signing
- **Zod schemas** — Runtime validation for intents, API requests, and configs

## Supported Chains

| Chain | ID | Status |
|---|---|---|
| Ethereum | 1 | Live |
| Base | 8453 | Live |
| Arbitrum | 42161 | Live |
| Optimism | 10 | Live |
| Polygon | 137 | Live |
| BNB Chain | 56 | Live |
| Avalanche | 43114 | Live |
| zkSync Era | 324 | Live |
| Linea | 59144 | Live |
| Scroll | 534352 | Live |
| Solana | — | Beta |
| Cosmos | — | Coming Soon |
| Sui | — | Coming Soon |
| Aptos | — | Coming Soon |

## Usage

```typescript
import { ChainId, getChainConfig, isDexRouter } from '@shroudfi/core';

// Get chain configuration
const ethConfig = getChainConfig(ChainId.ETHEREUM);
console.log(ethConfig.rpcUrl); // https://eth.llamarpc.com

// Check if an address is a known DEX router
const isRouter = isDexRouter('0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D');
console.log(isRouter); // true (Uniswap V2 Router)
```

## License

MIT — Astra Fintech Labs Pvt. Ltd.
npm package: @shroudfi/sdk
Description: TypeScript SDK for ShroudFi MEV protection — submit intents, track settlements, manage API keys
Author: Astra Fintech Labs Pvt. Ltd.
Latest version: 0.1.0

# @shroudfi/sdk

TypeScript SDK for integrating ShroudFi MEV protection into your dApp or trading system.

## Installation

```bash
npm install @shroudfi/sdk
```

## Quick Start

```typescript
import { ShroudFiSDK } from '@shroudfi/sdk';

// Initialize with your API key
const shroud = new ShroudFiSDK({
  apiKey: 'your-api-key',
  chainId: 1, // Ethereum mainnet
  rpcUrl: 'https://rpc.shroudfi.com/rpc/1',
});

// Submit a protected swap intent
const result = await shroud.submitIntent({
  tokenIn: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', // WETH
  tokenOut: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
  amountIn: '1000000000000000000', // 1 ETH
  slippageBps: 50, // 0.5%
});

console.log('Intent ID:', result.intentId);
console.log('Status:', result.status);

// Track settlement
const settlement = await shroud.getSettlement(result.intentId);
console.log('Executed at:', settlement.executionPrice);
console.log('MEV saved:', settlement.mevSaved);
```

## Features

- **Submit intents** — Express swap intents with slippage protection
- **Track settlements** — Monitor intent execution and MEV savings
- **Threat analysis** — Get real-time MEV threat scores for transactions
- **Protected send** — Route raw transactions through private relays
- **Multi-chain** — Works across 10 EVM chains + Solana

## API Reference

### `ShroudFiSDK`

```typescript
new ShroudFiSDK({
  apiKey: string;        // Your ShroudFi API key
  chainId: number;       // Target chain ID
  rpcUrl?: string;       // Custom RPC URL (defaults to rpc.shroudfi.com)
})
```

### Methods

| Method | Description |
|---|---|
| `submitIntent(intent)` | Submit a swap intent for MEV-protected execution |
| `getSettlement(intentId)` | Get settlement details for an intent |
| `analyzeThreat(tx)` | Get AI threat analysis for a transaction |
| `sendProtected(signedTx)` | Send a signed transaction via private relay |
| `getApiKeyUsage()` | Check your API key usage and limits |

## Supported Chains

Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Avalanche, zkSync Era, Linea, Scroll, Solana (Beta)

## Links

- [Website](https://shroudfi.com)
- [GitHub](https://github.com/san-techie21/ShroudFi)
- [Dashboard](https://shroudfi.com/dashboard)

## License

MIT — Astra Fintech Labs Pvt. Ltd.