open-index/open-npm huggingface dataset:
npm package: @ideallabs/murmur.js
Description: A wrapper to interact with the Murmur API
Author: Ideal Labs
Latest version: 0.1.1

# Murmur.js

A [Murmur API](https://github.com/ideal-lab5/murmur-api) wrapper to enable easy usage of Murmur wallets in JavaScript projects.

Made with love by [Ideal Labs](https://github.com/ideal-lab5).

## Prerequisites

The Murmur Client depends on:

- **Axios**: For making HTTP requests to the Murmur API.
- **Polkadot-js**: For interacting with the Ideal Network.

Ensure you have these dependencies installed in your project:

```sh
npm install axios @polkadot/api
```

## Usage

### Initialization

You need to configure axios and polkadot-js instances to be injected into the Murmur Client.

### Example

```javascript
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api'
import axios from 'axios'
import { MurmurClient } from '@ideallabs/murmur.js'

/* Polkadot API initialization */
const provider = new WsProvider('ws://127.0.0.1:9944')
console.log('Provider initialized')
const api = await ApiPromise.create({ provider })
console.log('API initialized')

/* Axios initialization */
const httpClient = axios.create({
  baseURL: 'https://api.example.com',
  headers: {
    'Content-Type': 'application/json',
  },
})

/* Define the master account (optional, it falls back to `alice`) */
const keyring = new Keyring({ type: 'sr25519' })
const alice = keyring.addFromUri('//Alice')

/* MurmurClient initialization */
const murmurClient = new MurmurClient(httpClient, api, alice)
console.log('MurmurClient initialized')

// Use the MurmurClient instance to make requests
murmurClient
  .authenticate('username', 'password')
  .then((response) => {
    console.log(response)
  })
  .catch((error) => {
    console.error(error)
  })
```

## License

This project is licensed under the Apache-2.0 License
npm package: @ideallabs/timelock_wasm_wrapper
Description: Wasm bidings for the timelock encryption crate
Latest version: 0.3.0

# WASM Bindings for Timelock

This crate provides wasm compatibility for the timelock crate. It provides compatibility for both JavaScript and Python (3+).

## Build

### For JavaScript Compatibility
To compile to wasm, first build the project and them run wasm-pack

``` shell
cargo build
wasm-pack build --target web --out-dir pkg
```

### For Python Compatibility

Python compatible wasm output is generated with [PyO3](https://pyo3.rs/v0.23.2/).

First create a virtual env, then run:

``` sh
pip install maturin
# specify your python version
export PYO3_CROSS_PYTHON_VERSION="3.10"
maturin develop --features "python"
```

#### Testing

Run wasm-pack tests with `wasm-pack test --node`

#### Publish

``` sh
# Create a release build
maturin build --features "python" --release
# publish to PyPi with maturing
maturin publish --features "python"
```