open-index/open-npm huggingface dataset:
npm package: @navinoxx/navi-ui
Description: This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Latest version: 0.0.5

# React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
npm package: @naviocean/koa-generic-session-mongo
Description: MongoDB store for koa-generic-session middleware backed by node-mongodb-native.
Author: Pavel Vlasov
Latest version: 0.4.5

# koa-generic-session-mongo

MongoDB store for [koa-generic-session](https://github.com/koajs/generic-session) middleware backed by [node-mongodb-native](https://github.com/mongodb/node-mongodb-native).
Fork of [connect-to-mongo](https://github.com/2do2go/connect-to-mongo) store.

## Installation

```sh
  npm install koa-generic-session koa-generic-session-mongo --save
```

## Usage

### Example
```js
var koa = require('koa');
var session = require('koa-generic-session');
var MongoStore = require('koa-generic-session-mongo');

var app = koa();
app.keys = ['keys', 'keykeys'];
app.use(session({
  store: new MongoStore({
    host: '127.0.0.1'
  }) // options
}));

app.use(function *() {
  switch (this.path) {
  case '/get':
    get.call(this);
    break;
  case '/remove':
    remove.call(this);
    break;
  }
});

function get() {
  var session = this.session;
  session.count = session.count || 0;
  session.count++;
  this.body = session.count;
}

function remove() {
  this.session = null;
  this.body = 0;
}

app.listen(8080);
```

## Options

  - `url` mongodb connection url (full connection string. host, port, db, ssl options will be ignored)
  - `db` mongodb-native database object or database name (`test` by default)
  - `collection` collection name (`sessions` by default)
  - `host` db hostname (`127.0.0.1` by default)
  - `port` db port (`27017` by default)
  - `ttl` ttl in milliseconds (if set it overrides cookie `maxAge`)
  - `user` user for MongoDB
  - `password` password for MongoDB authentication
  - `ssl` use SSL to connect to MongoDB (`false` by default)

## License 
MIT
npm package: @naviprotocol/astros-aggregator-sdk
Description: NAVI Astros Aggregator SDK
Author: NAVI
Latest version: 1.14.0

# @naviprotocol/astros-aggregator-sdk

[![npm version](https://badge.fury.io/js/%40naviprotocol%2Fastros-aggregator-sdk.svg)](https://badge.fury.io/js/%40naviprotocol%2Fastros-aggregator-sdk)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

The Astros DEX Aggregator is a core part of the NAVI Ecosystem, providing seamless integration for high-performance decentralized trading with optimized execution, security, and a smooth user experience

## Documentation

For SDK documentation visit http://sdk.naviprotocol.io/swap

## Features

1. **High-Performance Trading**:<br/>
The Astros DEX Aggregator offers fast and low-latency trading through optimized smart contracts and algorithms, ensuring stable and efficient transactions even during peak trading periods.
2. **Order Splitting**:<br/>
For large trades, the Astros 
DEX Aggregator automatically splits orders across multiple liquidity pools, helping users achieve the best prices for their transactions.
3. **Multi-Hop Trading**:<br/> 
To further optimize trading costs and liquidity, the aggregator supports multi-hop trades, finding the best transaction paths across multiple routes to maximize value for users.
4. **Security and Reliability**:<br/> 
Security is Astros's top priority. The DEX Aggregator employs multi-layered security protocols to ensure user funds are safe and trades execute smoothly.
5. **Zero Fee**:<br/> 
The Astros DEX Aggregator charges **no fees**, providing users with a cost-effective and seamless trading experience.
6. **Performance**:<br/> 
Built to meet the demands of high-volume trading, the Astros DEX Aggregator operates on powerful, redundant servers capable of horizontal scaling. This infrastructure allows us to seamlessly handle increasing traffic and growing trading activity without compromising speed or efficiency.


## Supported Exchanges

- Aftermath
- Bluefin
- Cetus
- DeepBook V3
- Magma
- Momentum
- Turbos
- Flow X (Upcoming)

## Installation

```npm
npm install @naviprotocol/astros-aggregator-sdk
```

## Support

- Issues: [GitHub Issues](https://github.com/naviprotocol/naviprotocol-monorepo/issues)
npm package: @naviprotocol/astros-bridge-sdk
Description: NAVI Astros Aggregator SDK
Author: NAVI
Latest version: 1.2.0

# @naviprotocol/astros-bridge-sdk

[![npm version](https://badge.fury.io/js/%40naviprotocol%2Fastros-bridge-sdk.svg)](https://badge.fury.io/js/%40naviprotocol%2Fastros-bridge-sdk)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

NAVI Astros Bridge SDK is a cross-chain bridge SDK designed for the Sui blockchain. It supports token transfers between different blockchain networks, currently mainly supporting cross-chain operations through bridge providers like Mayan.

## Documentation

For SDK documentation visit http://sdk.naviprotocol.io/bridge

## Features

- 🌉 **Cross-chain Bridging**: Supports token transfers between multiple blockchain networks
- 🔄 **Multi-chain Support**: Supports mainstream blockchains like Sui, Ethereum, Solana
- 💰 **Optimal Paths**: Automatically finds the best cross-chain paths
- 📊 **Real-time Quotes**: Provides real-time cross-chain swap quotes
- 📱 **Easy Integration**: Clean API design, easy to integrate into various applications

## Supported Blockchains

- Sui
- Solana
- Ethereum
- Polygon
- Avalanche
- Arbitrum
- More chains support coming soon...

## Installation

```npm
npm install @naviprotocol/astros-bridge-sdk
```


## Support

- Issues: [GitHub Issues](https://github.com/naviprotocol/naviprotocol-monorepo/issues)
npm package: @naviprotocol/swap
Description: NAVI Swap - Internal swap wrapper with swap-core integration for projects.
Author: NAVI Protocol
Latest version: 0.1.0-beta.15

# @naviprotocol/swap

Internal swap wrapper with dapp-kit integration for NAVI Protocol projects.

## Installation

```bash
pnpm add @naviprotocol/swap
```

## Usage

### Basic Usage with dapp-kit

```tsx
import { SwapProviderWithDappKit, SwapCard } from '@naviprotocol/swap';
import { QueryClientProvider } from '@tanstack/react-query';
import { SuiClientProvider, WalletProvider } from '@mysten/dapp-kit';

function SwapPage() {
  return (
    <QueryClientProvider client={queryClient}>
      <SuiClientProvider networks={networkConfig}>
        <WalletProvider>
          <SwapProviderWithDappKit
            config={{ apiHost: 'https://api.naviprotocol.io' }}
          >
            <SwapCard />
          </SwapProviderWithDappKit>
        </WalletProvider>
      </SuiClientProvider>
    </QueryClientProvider>
  );
}
```

### Sidebar Usage

```tsx
import { SwapSidebarClient } from '@naviprotocol/swap';

// Initialize
const client = SwapSidebarClient.getInstance({
  theme: 'dark',
  suiClient: suiClient,
  onSignTransaction: async (tx) => {
    // Sign transaction
    return { signature: '...', bytes: '...' };
  },
  config: { apiHost: 'https://api.naviprotocol.io' },
});

// Show sidebar
client.show('0x2::sui::SUI', '0x5d87c5447b476053c3fa1f8b0122c1b8b8e5c5c5', userAddress);

// Hide sidebar
client.hide();
```

## Features

- Automatic dapp-kit integration
- Sidebar component for global swap panel
- Event-driven API
- Full swap functionality
npm package: @naviprotocol/uikit
Description: NAVI UI Components
Author: jimmy
Latest version: 0.0.28

ack# @naviprotocol/uikit

NAVI Protocol UI component library for Sui blockchain applications.

## Features

- 🔗 **Wallet Connection**: Connect to various Sui wallets
- 📋 **Transaction Preview**: Preview and validate transactions before execution
- 🎨 **Modern UI**: Beautiful, responsive components
- 📱 **Mobile Ready**: Optimized for mobile and desktop
- 🌐 **TypeScript**: Full TypeScript support

## Installation

```bash
pnpm add @naviprotocol/uikit
```

## Usage

### Wallet Connect

```tsx
import { ConnectWalletProvider, ConnectModal } from 'sui-wallets-connect';
import {
  createNetworkConfig,
  SuiClientProvider,
  WalletProvider,
} from "@mysten/dapp-kit";

<ConnectWalletProvider>
  <SuiClientProvider>
    <WalletProvider>
       <ConnectModal trigger={null} open={true} onOpenChange={(isOpen) => {}} />
    </WalletProvider>
  </SuiClientProvider>
</ConnectWalletProvider>
```

## Change theme

```css
:root {
  --navi-connect-modal-background: #191919; // background color
  --navi-connect-modal-text: #0d0d0d; // text color
  --navi-connect-modal-primary-color: #FF782F; // primary color
  --navi-connect-modal-btn-text-color: #000000; // button text color
  --navi-connect-modal-dot-color: #0DC3A4; // dot color
}
```

### Transaction Preview

```tsx
import { transactionPreviewService } from '@naviprotocol/uikit';

useEffect(() => {
    transactionPreviewService.showTransactionPreview({
      transactionBlock: sampleTransaction.transaction,
      sender: sampleTransaction.sender,

      onConfirm: () => {
        console.log('✅ Transaction confirmed by user')
      },
      onCancel: () => {
        console.log('❌ Transaction cancelled by user')
      }
    })
  }, [])
```

## Main Components

### Wallet Connect
- `ConnectModal` - Wallet connection modal
- `ConnectWalletProvider` - Context provider
- `useConnectWallets` - Wallet management hook

### Transaction Preview
- `TransactionPreview` - Transaction preview component
- `TransactionPreviewModal` - Transaction preview modal
- `useTransactionPreview` - Transaction preview hook
- `transactionPreviewService` - Transaction preview service

## Development

```bash
# Install dependencies
pnpm install

# Start development server
pnpm run start

# Build package
pnpm run build


# Start Storybook
pnpm run storybook
```

## License

MIT
npm package: @navishanop/ishan-translator
Description: Google translate free library for node js
Author: NavIshanOp
Latest version: 1.0.2

# Ishan Translator

Simple nodejs library for talking to Google's Translate API.

## Usage

Install package

```node
npm i @navishanop/ishan-translator
```

### Import module

```js
const ishanTranslator = require("@navishanop/ishan-translator");
```

#### Example

```js
(async () => {
  try {
    const source = "es";
    const target = "en";
    const text = "buenos días";
    const translation = await ishanTranslator.translate(source, target, text);
    console.log(translation);
  } catch (error) {
    console.error(error);
  }
})();
```