open-index/open-npm huggingface dataset:
npm package: @mexty/block
Description: React components for MEXT federation modules
Author: MEXT Team
Latest version: 1.4.0

# @mexty/block

React components for MEXT federation modules with author namespace support.

## Installation

```bash
npm install @mexty/block @mexty/cli
mext sync
```

## Quick Start


### Author-Specific

```tsx
// Import specific components from different authors
import { Fps, GameEngine } from '@mexty/block/fabiensabatie';
import { Chart as JohnChart } from '@mexty/block/johnsmith';
import { Dashboard } from '@mexty/block/alicejohnson';

function MyApp() {
  return (
    <div>
      <Fps config={fpsConfig} />
      <GameEngine settings={gameSettings} />
      <JohnChart data={chartData} />
      <Dashboard metrics={dashboardData} />
    </div>
  );
}
```


## How It Works

1. **Federation Loading**: Components are loaded as federated modules from the MEXT server
2. **Author Namespaces**: Each user gets a unique namespace for their components
3. **Direct Imports**: Import components directly using `@mexty/block/authorname`
4. **Type Safety**: Full TypeScript support with proper type definitions

## CLI Integration

Use `mexty sync` to update available components:

```bash
npx @mexty/cli sync
```

This generates:
- Global namespace exports in the main package
- Author-specific entry files for direct imports
- TypeScript definitions for all components

## Available Import Patterns

```tsx
// Global namespace (backward compatible)
import { Chart } from '@mexty/block';

// Author-specific named imports
import { Fps, Chart as FabienChart } from '@mexty/block/fabiensabatie';

// Author-specific default import
import fabiensabatieComponents from '@mexty/block/fabiensabatie';
```

## Benefits

- **No Naming Conflicts**: Multiple authors can create components with the same name
- **Author Attribution**: Clear visibility of who created each component
- **Trusted Sources**: Use components from specific authors you trust
- **Tree Shaking**: Import only the components you need
- **Type Safety**: Full TypeScript support across all patterns

## Learn More

- [Author Namespaces Guide](./AUTHOR_NAMESPACES.md)
- [MEXT Documentation](https://mext.app/documentation)

## License

MIT
npm package: @mey-sdk-js/client
Description: Javascript client for MeyCoin Framework
Author: Wesoha
Latest version: 0.3.12

# @mey-sdk-js/client

- [Documentation](https://mey-sdk-js.readthedocs.io/)
- [Changelog](./CHANGELOG.md)

This package includes the API client and common classes and utils.

This package supports both Node.js and Web platforms. Please refer to the documentation how to select the platform.

## Quick start

```console
npm install @mey-sdk-js/client
```

You can import the module both as CommonJS (require) and ES module (import).

```javascript
import MeyCoinClient from '@mey-sdk-js/client';
let mey = new MeyCoinClient();
mey.blockchain().then(result => {
    console.log('Current state', result);
});
```

Note that this by default imports the Node.js version which is not compatible with browsers. If you target web browsers, either `import MeyCoinClient from '@mey-sdk-js/client/dist/mey-sdk-js.js';` or create an alias in your bundler configuration. Many bundlers like Webpack automatically pick the browser version, so you don't need to configure anything.

You can also directly import the pre-built bundle in HTML using `<script src="mey-sdk-js/dist/mey-sdk-js.min.js"></script>` and use the global `mey-sdk-js` variable.

## Contribute

### Setup

Clone this repository and run

```console
npm install
```

### Scripts

Run tests (requires a local meysvr node running in `--testmode`, listening on port `7845`).

```console
npm run test
```

Regenerate GRPC type definitions

```console
npm run grpc
```

Development build with auto-update

```console
npm run dev
```

Build all targets for distribution

```console
npm run build
```
npm package: @mey-sdk-js/crypto
Description: Cryptography tools for MeyCoin Platform
Author: Wesoha
Latest version: 0.3.12

# Multi-purpose javascript crypto library for mey

[![npm](https://img.shields.io/npm/v/@mey-sdk-js/crypto.svg)](https://www.npmjs.com/package/@mey-sdk-js/crypto) [![readthedocs](https://readthedocs.org/projects/mey-sdk-js/badge/)](https://mey-sdk-js.readthedocs.io/)

- [Documentation](https://mey-sdk-js.readthedocs.io/)

It is used by MeyCoin dApps to manage keys and sign transactions offline.

Features:

- Key generation and importing
- Hashing
- Signing
- Simple AES-GCM encryption


## How to use

```shell
npm install --save @mey-sdk-js/crypto
```

### Transaction signing

```js
import { createIdentity, signTransaction, hashTransaction } from '@mey-sdk-js/crypto';

async () => {
    const identity = createIdentity();
    const tx = {
        nonce: 1,
        from: identity.address,
        to: identity.address,
        amount: '100 gas',
        payload: '',
    };
    tx.sign = await signTransaction(tx, identity.keyPair);
    tx.hash = await hashTransaction(tx);
    console.log(JSON.stringify(tx));
}()
```

### Arbitrary message signing

```js
import { createIdentity, signMessage, verifySignature, publicKeyFromAddress } from '@mey-sdk-js/crypto';

async () => {
    const identity = createIdentity();
    const msg = Buffer.from('hello');
    const signature = await signMessage(msg, identity.keyPair);
    const pubkey = publicKeyFromAddress(identity.address);
    const check = await verifySignature(msg, pubkey, signature);
    console.log(check);
}()
```
npm package: @mey-sdk-js/mey-ledger-app
Description: MeyCoin Ledger App
Author: Wesoha
Latest version: 0.3.12

#MeyCoin Ledger App JavaScript bindings

[![npm](https://img.shields.io/npm/v/@mey-sdk-js/mey-ledger-app.svg)](https://www.npmjs.com/package/@mey-sdk-js/mey-ledger-app)

## How to use

```shell
npm install --save @mey-sdk-js/mey-pedger-app
```

### Getting address and signing transaction

```js
import MeyCoinLedgerApp from '@mey-sdk-js/mey-ledger-app';
// Pick a transport. See https://github.com/LedgerHQ/ledgerjs
import Transport from '@ledgerhq/hw-transport-node-hid';
import MeyCoinClient, { Tx } from '@mey-sdk-js/client';

async () => {
    const mey = new MeyCoinClient();
    const transport = await Transport.create(3000, 1500);
    const app = new MeyCoinLedgerApp(transport);
    const path = "m/44'/441'/0'/0/" + i;
    const address = await app.getWalletAddress(path);
    const tx = {
        from: address,
        to: address,
        chainIdHash: await mey.getChainIdHash(),
        type: Tx.Type.TRANSFER,
        nonce: await mey.getNonce(address) + 1,
        limit: 100000,
        nonce: 1,
    };
    const result = await app.signTransaction(tx); // { hash, signature }
    tx.sign = result.signature;
    tx.hash = await hashTransaction(tx, 'bytes');
    const txHash = await mey.sendSignedTransaction(tx);
    const txReceipt = await mey.waitForTransactionReceipt(txHash); // { status: 'SUCCESS', blockno: number, ... }
}()
```
npm package: @mey-sdk-js/wallet
Description: SDK for making MeyCoin Wallet applications
Author: Wesoha
Latest version: 0.3.12

# MeyCoin Wallet SDK

- [Documentation](https://mey-wallet.readthedocs.io/)

This package includes everything you need to build a wallet application on MeyCoin Platform.
It is useful for other kinds of dapps, too.

Features:

- Manage keys
- Easy to use interface for sending transactions
- Track accounts for new transactions (using a full node or other external APIs)
- Sign and verify
- Integrates with storages (supported out of the box: IndexedDB (for browsers), LevelDB (for Node.js), and in-memory storage)

In contrary to @mey-sdk-js/client, which includes just the API client and useful classes and helpers,
@mey-sdk-js/wallet includes managers that can keep, coordinate, and optionally persist state.

**Work in progress, please check back later for release**

## Getting started

Work in progress

## Development

Based on https://github.com/graup/rollup-typescript-babel

### Building the repo

```shell
npm run build
```

### Building only types

```shell
npm run build:types
```

### Type-Checking the repo

```shell
npm run type-check
```

And to run in --watch mode:

```shell
npm run type-check:watch
```