open-index/open-npm huggingface dataset:
npm package: @hyperverse/evm-nft-game
Description: <p align="center"> <img src="https://drive.google.com/uc?export=view&id=1UFpBzZRnOBIZhIcaAWui1FIe9OSfJTKx" width="256" alt="Hyperverse logo" /> </p>
Latest version: 0.0.4


<p align="center">
<img src="https://drive.google.com/uc?export=view&id=1UFpBzZRnOBIZhIcaAWui1FIe9OSfJTKx" width="256" alt="Hyperverse logo" />
</p>

# Hyperverse NFT Game Module

## Documentation
For more information and learn about Hyperverse checkout the resources below

- [Hyperverse Documentation](https://docs.hyperverse.dev/)
- [Decentology YouTube Channel](https://www.youtube.com/c/Decentology)
npm package: @hypervisual/pullsync
Description: pullsync ========
Author: Toby Marsden
Latest version: 0.0.1

pullsync
========



[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/pullsync.svg)](https://npmjs.org/package/pullsync)
[![Downloads/week](https://img.shields.io/npm/dw/pullsync.svg)](https://npmjs.org/package/pullsync)
[![License](https://img.shields.io/npm/l/pullsync.svg)](https://github.com/botanicastudios/pullsync/blob/master/package.json)

<!-- toc -->
# Usage
<!-- usage -->
# Commands
<!-- commands -->
npm package: @hyperware-ai/hw-protocol-watcher
Description: Event listener for hw:// protocol links that communicates with parent frames
Author: Hyperware AI
Latest version: 1.0.1

# @hyperware-ai/hw-protocol-watcher

Event listener for `hw://` protocol links that communicates with parent frames via postMessage.

## Installation

```bash
npm install @hyperware-ai/hw-protocol-watcher
```

## Usage

### Auto-start (Default)

The watcher automatically starts when the module is loaded:

```javascript
import '@hyperware-ai/hw-protocol-watcher';

// Now any hw:// links will be handled automatically
```

### Manual Control

```javascript
import { startWatching, stopWatching, HWProtocolWatcher } from '@hyperware-ai/hw-protocol-watcher';

// Start watching
startWatching();

// Stop watching
stopWatching();

// Or use the class directly for more control
const watcher = new HWProtocolWatcher();
watcher.start();
watcher.stop();
```

## How it Works

1. **Link Detection**: Listens for clicks on anchor tags (`<a>`) with `href` attributes starting with `hw://`
2. **Iframe Check**: Only processes links when running inside an iframe (`window.parent !== window`)
3. **Message Format**: Sends a postMessage to the parent window with:
   ```javascript
   {
     type: 'HW_LINK_CLICKED',
     url: '/some-app-name:some-publisher.os/optional-path/etcetc'
   }
   ```

## Example

Given a link like:
```html
<a href="hw://some-app-name:some-publisher.os/optional-path/etcetc">Open App</a>
```

When clicked inside an iframe, it will send:
```javascript
{
  type: 'HW_LINK_CLICKED',
  url: '/some-app-name:some-publisher.os/optional-path/etcetc'
}
```

## TypeScript Support

Full TypeScript support included with type definitions for the message format:

```typescript
interface HWLinkMessage {
  type: 'HW_LINK_CLICKED';
  url: string;
}
```

## License

MIT