open-index/open-npm huggingface dataset:
npm package: @marswap-exchange/widget
Description: The `@marswap-exchange/widget` package is an [npm package](https://www.npmjs.com/package/@marswap-exchange/widget) of React components used to provide subsets of the Marswap Protocol functionality in a small and configurable user interface element.
Author: The Martian
Latest version: 1.0.28

# Marswap Widgets

The `@marswap-exchange/widget` package is an [npm package](https://www.npmjs.com/package/@marswap-exchange/widget) of React components used to provide subsets of the Marswap Protocol functionality in a small and configurable user interface element.

# Marswap Widget

Marswap widget provides users of your website with a handy tool for swap tokens at the best rate.

![swap widget screenshot](https://docs.kyberswap.com/assets/images/widget_powered_by_kyberswap-c8e301050927f11aac9f414ded1c88b6.gif)

You can customize the theme (colors, fonts, border radius, and more) to match the style of your application. You can also configure your own default token list and optionally set a convenience fee on swaps executed through the widget on your site.

## Installation

Install the widgets library via `npm` or `yarn`.

```js
yarn add @marswap-exchange/widget
```

```js
npm i --save @marswap-exchange/widget
```

## Documentation

- [overview](https://docs.kyberswap.com/Aggregator/swap-widget/getting-started)

## Example Apps

- [NextJS](https://github.com/KyberNetwork/kyberswap-widgets/tree/main/examples/nextjs-demo)
- [Vite React App](https://github.com/KyberNetwork/kyberswap-widgets/tree/main/examples/react-demo)
npm package: @marswave/coli
Description: A CLI for the Cola
Latest version: 0.0.16

# coli

Core library for Cola. Provides essential capabilities commonly used by agents.

## CLI Usage

```sh
npm install -g @marswave/coli
```

```
Usage
  $ coli <command> [options]

Commands
  asr         Transcribe an audio file using speech recognition
  tts         Speak text using text-to-speech (macOS only)
  cloud-tts   Generate speech using ListenHub OpenAPI

Examples
  $ coli asr recording.m4a
  $ coli asr -j recording.m4a
  $ coli tts "Hello world"
  $ coli tts -v Samantha -r 200 "Hello world"
  $ coli cloud-tts --language en "Hello world"
  $ coli cloud-tts --voice cozy-man-english "Hello world"
```

## API Usage

```sh
npm install @marswave/coli
```

```js
import {ensureModels, runAsr, streamAsr, runTts} from '@marswave/coli';

// ASR
await ensureModels();
await runAsr('recording.m4a', {json: false, model: 'sensevoice'});

// Streaming ASR (see docs/asr.md for details)
await streamAsr(audioSource, {
	onResult(result) {
		console.log(result.text, result.isFinal ? '(final)' : '(partial)');
	},
});

// TTS (macOS only)
await runTts('Hello world', {voice: 'Samantha', rate: 200});
```

## Documentation

- [ASR](docs/asr.md) — Automatic speech recognition
- [TTS](docs/tts.md) — Text-to-speech synthesis (macOS only)
- [Cloud TTS](docs/cloud-tts.md) — Cloud-based TTS via ListenHub OpenAPI
- [ListenHub OpenAPI](docs/listenhub-openapi.md) — ListenHub OpenAPI client
- [Deprecations](docs/deprecations.md) — Deprecated APIs

## License

MIT