open-index/open-npm huggingface dataset:
npm package: @hydra-sdk/bridge
Description: Hydra SDK - Bridge library for integrating with Hydra Layer 2 on Cardano
Latest version: 1.3.1

# @hydra-sdk/bridge

Hydra L2 bridge: Head lifecycle, real-time tx, UTxO mgmt. **See [docs/master-index.md](../docs/master-index.md)**.

[![npm](https://img.shields.io/npm/v/@hydra-sdk/bridge)](https://npmjs.com/package/@hydra-sdk/bridge)

## 🚀 Quick Start

```bash
pnpm add @hydra-sdk/bridge
```

```typescript
import { HydraBridge, HexcoreConnector } from '@hydra-sdk/bridge'

const connector = new HexcoreConnector({ socketIoUrl: 'wss://your-hydra-api.com/hydra' })
const bridge = new HydraBridge({ connector })
bridge.connect()
```

## ✨ Key Features

- 🔌 **Multiple Connections** (WebSocket, Socket.IO)
- 🌐 **Hydra Head Lifecycle** management (Init, Open, Close, Fanout)
- 📡 **Real-time Events** for network state monitoring
- 💰 **UTxO Management** with snapshot queries
- 🔄 **Commit/Decommit** operations for fund management
- 🔐 **JWT Authentication** support

## 📚 Documentation

For comprehensive guides, examples, and API reference:

**Docs:** [hydrasdk.com/docs](https://hydrasdk.com/docs) | [Technical](../docs/technical/bmm-index.md)

## 🛠️ Build Configuration

The SDK works with modern build tools. For detailed setup instructions, visit our [Configuration Guide](https://hydrasdk.com/getting-started/configuration).

## License

Apache 2.0. [Repo](https://github.com/Vtechcom/hydra-sdk) | [Issues](https://github.com/Vtechcom/hydra-sdk/issues)
npm package: @hydra-sdk/cardano-wasm
Description: Cardano-WASM library for Hydra Wallet
Latest version: 0.0.7

# @hydra-sdk/cardano-wasm

Cardano WASM bindings: Auto browser/node detection. **See [docs/master-index.md](../docs/master-index.md)**.

## Features

- **Automatic Environment Detection**: Automatically uses the browser version (`@emurgo/cardano-serialization-lib-browser`) when bundled for browsers and the Node.js version (`@emurgo/cardano-serialization-lib-nodejs`) when run in Node.js environments.
- **TypeScript Support**: Full TypeScript support with proper type definitions for both environments.
- **Multiple Module Formats**: Supports both CommonJS and ES modules.

## Installation

```bash
npm install @hydra-sdk/cardano-wasm
# or
pnpm add @hydra-sdk/cardano-wasm
```

## Usage

```typescript
import { CardanoWASM } from '@hydra-sdk/cardano-wasm'

// CardanoWASM will automatically be the browser or Node.js version
// depending on your environment
const address = CardanoWASM.Address.from_bech32('addr1...')
```

## How it Works

This package uses Node.js conditional exports to provide different entry points:

- **Browser environments**: Uses `@emurgo/cardano-serialization-lib-browser`
- **Node.js environments**: Uses `@emurgo/cardano-serialization-lib-nodejs`
- **Default fallback**: Uses the browser version

The selection happens automatically based on your bundler's environment detection or Node.js's module resolution.

## Development

```bash
# Build the package
pnpm build

# Run tests
pnpm test

# Development with watch mode
pnpm dev
```

## Build Output

The build process generates multiple files:

- `dist/index.js` / `dist/index.mjs` - Browser version (CommonJS/ESM)
- `dist/index.node.js` / `dist/index.node.mjs` - Node.js version (CommonJS/ESM)
- `dist/index.d.ts` / `dist/index.node.d.ts` - TypeScript declarations

## Docs
[hydrasdk.com/docs](https://hydrasdk.com/docs) | [Technical](../docs/technical/bmm-index.md)

Apache 2.0. [Repo](https://github.com/Vtechcom/hydra-sdk)
npm package: @hydra-sdk/core
Description: Hydra SDK - Core library for building decentralized applications on Cardano
Latest version: 1.3.2

# @hydra-sdk/core

Core Cardano wallet library: HD wallets, multi-network, TypeScript-first. **See [docs/master-index.md](../docs/master-index.md)** for full context.

[![npm](https://img.shields.io/npm/v/@hydra-sdk/core)](https://npmjs.com/package/@hydra-sdk/core)

## 🚀 Quick Start

```bash
pnpm add @hydra-sdk/core
```

```typescript
import { AppWallet, NETWORK_ID } from '@hydra-sdk/core'

const wallet = new AppWallet({
  networkId: NETWORK_ID.PREPROD,
  key: { type: 'mnemonic', words: AppWallet.brew() }
})
console.log(wallet.getAccount(0, 0).baseAddressBech32)
```

## ✨ Key Features

- 🌐 **Browser-optimized** with Vite/Rollup support
- 🔐 **HD Wallets** (BIP44) with secure key management  
- 📱 **DApp Integration** with popular wallet connectors
- 🔗 **Multi-network** support (Mainnet, Preprod, Preview)
- 💎 **TypeScript** with complete type definitions
- 🚀 **WebAssembly** powered for high performance

## 📚 Documentation

For comprehensive guides, examples, and API reference:

**Docs:** [hydrasdk.com/docs](https://hydrasdk.com/docs) | [Technical](../docs/technical/bmm-index.md) | [API Metadata](../sdk-ai-agent/sdk-api-metadata.json)

## 🛠️ Build Configuration

The SDK works with modern build tools. For detailed setup instructions, visit our [Configuration Guide](https://hydrasdk.com/getting-started/configuration).

## License

Apache 2.0. [Repo](https://github.com/Vtechcom/hydra-sdk) | [Issues](https://github.com/Vtechcom/hydra-sdk/issues)