open-index/open-npm huggingface dataset:
npm package: @instadapp/fluid-solana-sdk
Description: ## Usage
Latest version: 0.0.87

# @instadapp/fluid-solana-sdk

## Usage

```ts
import { Connection } from "@solana/web3.js";
import { AnchorProvider, Wallet } from "@coral-xyz/anchor";
import {
  LendingResolver,
  LiquidityResolver,
  FluidClient,
  BN,
} from "@instadapp/fluid-solana-sdk";

const connection = new Connection("https://api.devnet.solana.com");

const lendingResolver = new LendingResolver({
  cluster: "devnet",
  provider: { connection },
});
await lendingResolver.listedTokens();

const liquidityResolver = new LiquidityResolver({
  cluster: "devnet",
  provider: { connection },
});
await lendingResolver.listedTokens();

const wallet = useAnchorWallet();
const client = new FluidClient({
  cluster: "devnet",
  provider: new AnchorProvider(
    connection,
    new Wallet(...),
});

await client.lending.deposit(
  new BN("100"),
  "HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr",
);

const instruction = await client.lending.depositIx(
  new BN("100"),
  "HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr",
);

await client.vault.initPosition(
  1
);

await client.vault.deposit(
  new BN("100"),
  1,
  1
);
```
npm package: @instadapp/iga-node
Description: ## Installation
Latest version: 0.0.0-dev.3fa13c7

# Interop Node

## Installation

```bash
npm install -g @instadapp/iga-node
```

## Usage

### Show help

```bash
iga-node help
```

### Simple usage

```bash
iga-node
```

### Private key
Note: this will be required in the future.

```bash
iga-node --private-key <private key>
iga-node -pk <private key>
```

### Enable RPC

```bash
iga-node --rpc
iga-node -r
iga-node --rpc --port <port> --host <host>
iga-node -r -p <port> -h <host>
```
npm package: @instadapp/interop-node
Description: ## Installation
Latest version: 0.0.0-dev.ec03d65

# Interop Node

## Installation

```bash
npm install -g @instadapp/interop-node
```

## Usage

### Show help

```bash
interop-node help
```

### Simple usage

```bash
interop-node
```

### Private key

Note: this will be required in the future.

```bash
interop-node --private-key <private key>
interop-node -pk <private key>
```

### Enable RPC

```bash
interop-node --rpc
interop-node -r
interop-node --rpc --port <port> --host <host>
interop-node -r -p <port> -h <host>
```
npm package: @instadapp/interop-x
Description: ## Installation
Latest version: 0.0.0-dev.586798b

# Interop X

## Installation

```bash
npm install -g @instadapp/interop-x
```

## Usage

### Show help

```bash
interop-x help
```

### Simple usage

```bash
PRIVATE_KEY=abcd1234 interop-x
```
npm package: @instadapp/token-price
Description: <!-- automd:badges color=yellow -->
Latest version: 0.0.2

# @instadapp/token-price

<!-- automd:badges color=yellow -->

[![npm version](https://img.shields.io/npm/v/@instadapp/token-price?color=yellow)](https://npmjs.com/package/@instadapp/token-price)
[![npm downloads](https://img.shields.io/npm/dm/@instadapp/token-price?color=yellow)](https://npm.chart.dev/@instadapp/token-price)

<!-- /automd -->

## Usage

Install the package:

```sh
pnpm add @instadapp/token-price
```

```ts
import { createPublicClient, http } from "viem";
import { arbitrum } from "viem/chains";
import { getTokenPrice } from "@instadapp/token-price";

const client = createPublicClient({
  chain: arbitrum,
  transport: http("https://arbitrum.drpc.org"),
});

const price = await getTokenPrice(
  client,
  "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
  400_567_257n,
);

console.log(price); // 3171.84671802
```

```ts
import { createPublicClient, http } from "viem";
import { arbitrum } from "viem/chains";
import { TokenPriceActions } from "@instadapp/token-price";

const client = createPublicClient({
  chain: arbitrum,
  transport: http("https://arbitrum.drpc.org"),
}).extend(TokenPriceActions);

const price = await client.getTokenPrice(
  "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
  400_567_257n,
);

console.log(price); // 3171.84671802
```

## Development

<details>

<summary>local development</summary>

- Clone this repository
- Install latest LTS version of [Node.js](https://nodejs.org/en/)
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`
- Install dependencies using `pnpm install`
- Run interactive tests using `pnpm dev`

</details>

## License

Published under the [MIT](https://github.com/Instadapp/token-price/blob/main/LICENSE) license 💛.
npm package: @instadapp/transaction-builder
Description: [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] [![Codecov][codecov-src]][codecov-href] [![License][license-src]][license-href] [![JSDocs][jsdocs-src]][jsdo
Latest version: 0.0.12
npm package: @instadapp/vectorstore
Description: [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Github Actions][github-actions-src]][github-actions-href] [![Codecov][codecov-src]][codecov-href]
Latest version: 0.0.1

# @instadapp/vectorstore

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions][github-actions-src]][github-actions-href]
[![Codecov][codecov-src]][codecov-href]

> Package description

## Usage

Install package:

```sh
# npm
npm install @instadapp/vectorstore

# yarn
yarn add @instadapp/vectorstore

# pnpm
pnpm install @instadapp/vectorstore
```

Import:

```js
// ESM
import {} from "@instadapp/vectorstore";

// CommonJS
const {} = require("@instadapp/vectorstore");
```

Usage:

```js
// Client
import { InstadappVectorStoreClient, InstadappVectorStore} from "@instadapp/vectorstore";
const client = new InstadappVectorStoreClient({
    indexId: "XXX",
    apiKey: "YYY",
})

// LangChain
const vectorstore = new InstadappVectorStore(
    client,
    new OpenAIEmbeddings(),
)
```

## Development

- Clone this repository
- Install latest LTS version of [Node.js](https://nodejs.org/en/)
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`
- Install dependencies using `pnpm install`
- Run interactive tests using `pnpm dev`

## License

Made with 💛

Published under [MIT License](./LICENSE).

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/@instadapp/vectorstore?style=flat-square
[npm-version-href]: https://npmjs.com/package/@instadapp/vectorstore
[npm-downloads-src]: https://img.shields.io/npm/dm/@instadapp/vectorstore?style=flat-square
[npm-downloads-href]: https://npmjs.com/package/@instadapp/vectorstore
[github-actions-src]: https://img.shields.io/github/actions/workflow/status/instadapp/vectorstore-client/ci.yml?branch=main&style=flat-square
[github-actions-href]: https://github.com/instadapp/vectorstore-client/actions?query=workflow%3Aci
[codecov-src]: https://img.shields.io/codecov/c/gh/instadapp/vectorstore-client/main?style=flat-square
[codecov-href]: https://codecov.io/gh/instadapp/vectorstore-client
npm package: @instadapp/vue-web3
Description: Vue web3 composition api
Latest version: 0.11.1

# @instadapp/vue-web3

Vue 2/3 wrapper for web3 built on top of [react-web3@v6](https://github.com/NoahZinsmeister/web3-react/tree/v6).

## 🚀 Quick Start

#### Install:

```bash
# npm
npm i @instadapp/vue-web3

# yarn
yarn add @instadapp/vue-web3
```

#### Usage:

```js
import { useWeb3, setWeb3LibraryCallback } from '@instadapp/vue-web3'
import { InjectedConnector } from '@web3-react/injected-connector'
import { WalletConnectConnector } from '@web3-react/walletconnect-connector'

import Web3 from 'web3'

const injected = new InjectedConnector({
  supportedChainIds: [1, 137],
})

const walletconnect = new WalletConnectConnector({
  rpc: { 1: 'https://mainnet.infura.io/v3/YOUR_API_KEY' },
  qrcode: true,
})

// web3.js v1
setWeb3LibraryCallback((provider) => new Web3(provider))

// ethers.js v5
setWeb3LibraryCallback((provider) => new Web3Provider(provider, "any"))

// viem
setWeb3LibraryCallback((provider, _connector, account) => ({
  public: createPublicClient({
      transport: custom(provider),
  }),
  wallet: createWalletClient({
      account,
      chain: null as unknown as Chain,
      transport: custom(provider),
  }),
}))

defineComponent({
  setup() {
    const { active, activate, account, library } = useWeb3()

    const connectUsingMetamask = async () => {
      await activate(injected)
    }

    const connectUsingWalletConnect = async () => {
      await activate(walletconnect)
    }

    return {
      active,
      connect,
      connectUsingMetamask,
      connectUsingWalletConnect,
    }
  },
})
```

#### Typescript:

using generic:

```js
import Web3 from 'web3'

const { library } = useWeb3<Web3>()
```

```js
import { Web3Provider } from "@ethersproject/providers";

const { library } = useWeb3<Web3Provider>()
```

using global types:

```ts
// global.d.ts
import type Web3 from 'web3'

declare module '@instadapp/vue-web3' {
  interface IVueWeb3Library extends Web3 {}
}
```

#### Nuxt 3

```bash
yarn add @instadapp/vue-web3-nuxt -D
```

```ts
// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@instadapp/vue-web3-nuxt'],
  web3: {
    autoImport: false, // default `true`
  },
})
```

If you disabled `@instadapp/vue-web3-nuxt` auto import:

```ts
//composables/useWeb3.ts
import Web3 from 'web3'
// import { Web3Provider } from "@ethersproject/providers";
import { useWeb3 as useWeb3Generic } from '@instadapp/vue-web3'

const useWeb3 = () => useWeb3Generic<Web3>()
// const useWeb3 = () => useWeb3Generic<Web3Provider>();

export { useWeb3 }
```

## <br />

<br />

Demo (Nuxt 2): https://github.com/KABBOUCHI/nuxt-vue-web3

Demo (Nuxt 3): https://github.com/KABBOUCHI/nuxt3-vue-web3
npm package: @instadukan/gatsby-source-instadukan
Description: Gatsby source plugin for building websites using instadukan as a data source
Author: Instadukan Solutions
Latest version: 0.0.1

# gatsby-source-instadukan

Source plugin for pulling documents into Gatsby from a instadukan API.

## Install

`npm install --save gatsby-source-instadukan`

## How to use

```javascript
// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-source-instadukan`,
    options: {
      apiURL: `http://localhost:1337`,
      queryLimit: 1000, // Default to 100
      contentTypes: [`posts`],
      businessId:1,
      // Possibility to login with a instadukan user, when content types are not publically available (optional).
      loginData: {
        identifier: "",
        password: "",
      },
    },
  },
]
```

## How to query

You can query Document nodes created from your instadukan API like the following:

```graphql
{
  allInstadukanArticle {
    edges {
      node {
        id
        title
        content
      }
    }
  }
}
```

To query images you can do the following:

```graphql
{
  allInstadukanArticle {
    edges {
      node {
        id
        singleImage {
         publicURL
        }
        multipleImages {
          localFile {
            publicURL
          }
        }
      }
    }
  }
}
```
npm package: @instaffogmbh/eslint-config-instaffo
Description: The eslint config we use at Instaffo.
Author: Instaffo GmbH
Latest version: 1.2.3

﻿
<!--#echo json="package.json" key="name" underline="=" -->
@instaffogmbh/eslint-config-instaffo
====================================
<!--/#echo -->

<!--#echo json="package.json" key="description" -->
The eslint config we use at Instaffo.
<!--/#echo -->

* 📣 💼 💰 Looking for a tech job?
  Try our [reverse recruiting service](https://instaffo.com/).



Usage
-----

1. `npm install --save-dev @instaffogmbh/eslint-config-instaffo`
1. In your module's `package.json`, add

    ```json
      "eslintConfig": { "extends": "@instaffogmbh/eslint-config-instaffo" },
      "scripts": {
        "justlint": "eslint --ext .mjs,.js . && echo '+OK 👍'",
        "lint": "eslint --ext .mjs,.js --fix . && echo '+OK 👍'",
      },
    ```

    * Unfortunately, even in eslint v6.3.0, `--ext` still
      [is the only way][why--ext] to configure which extensions to scan.

1. `npm run lint`




<!--#toc stop="scan" -->


&nbsp;

  [why--ext]: https://eslint.org/docs/user-guide/configuring#specifying-file-extensions-to-lint


License
-------
<!--#echo json="package.json" key=".license" -->
MIT
<!--/#echo -->
npm package: @instaffogmbh/eslint-config-nodejs
Description: Code with style
Author: Instaffo GmbH
Latest version: 1.2.8

﻿
<!--#echo json="package.json" key="name" underline="=" -->
@instaffogmbh/eslint-config-nodejs
==================================
<!--/#echo -->

<!--#echo json="package.json" key="description" -->
Code with style
<!--/#echo -->

* 📣 💼 💰 Looking for a tech job?
  Try our [reverse recruiting service](https://instaffo.com/).



Usage
-----

1. `npm install --save-dev @instaffogmbh/eslint-config-nodejs`
1. In your module's `package.json`, add

    ```json
      "eslintConfig": { "extends": "@instaffogmbh/eslint-config-nodejs" },
      "scripts": {
        "justlint": "instaffo-lint-nodejs",
        "lint": "instaffo-lint-nodejs --fix",
      },
    ```

1. `npm run lint`


Caveats
-------

* If you manually clone this package, ⚠⚠ actually install it. ⚠⚠
  (At least on 2018-03-19 in Ubuntu Xenial,
  it seemed to require its own local eslint package.)
* If you use v1.0.x linter commands with v^1.1.0, it will complain:
  `Explicitly decide whether to use the simplified CLI! See README.md at …`.
  We recommend to update your linter commands to the current ones.
  If that's not applicable, point your rules config to `rules.js`
  to get just the rules with no update checks.




<!--#toc stop="scan" -->


&nbsp;


License
-------
<!--#echo json="package.json" key=".license" -->
MIT
<!--/#echo -->
npm package: @instaffogmbh/event-peddler
Description: Light-weight notification mechanism with 3rd party subscription, like unverified newsletters.
Author: Instaffo GmbH
Latest version: 1.0.2

﻿
<!--#echo json="package.json" key="name" underline="=" -->
@instaffogmbh/event-peddler
===========================
<!--/#echo -->

<!--#echo json="package.json" key="description" -->
Light-weight notification mechanism with 3rd party subscription, like
unverified newsletters.
<!--/#echo -->

* 📣 💼 💰 Looking for a tech job?
  Try our [reverse recruiting service](https://instaffo.com/).



API
---

This module exports one function:

### emit = makeEventPeddler()

Returns a function with a list of potential targets in its
`potentialTargets` property.
Call `emit(evName[, ...args])` to notify all targets that have a
property named `'on' + evName`.

Methods on `emit`:
* `nPot`: Returns the current number (length) of `potentialTargets`.
* `subscribeThese`: Expects an array as argument.
  Adds all objects in that array to `potentialTargets`.
  Aliases: `sub`, `meet`




<!--#toc stop="scan" -->


&nbsp;


License
-------
<!--#echo json="package.json" key=".license" -->
MIT
<!--/#echo -->
npm package: @instaffogmbh/got-tunnels
Description: Simplified proxy setup for got
Author: Instaffo GmbH
Latest version: 0.1.3

﻿
<!--#echo json="package.json" key="name" underline="=" -->
@instaffogmbh/got-tunnels
=========================
<!--/#echo -->

<!--#echo json="package.json" key="description" -->
Simplified proxy setup for got
<!--/#echo -->

* 📣 💼 💰 Looking for a tech job?
  Try our [reverse recruiting service](https://instaffo.com/).



API
---

This module exports one function:

### tuna = makeTunnelAgents(proxySpec)

Returns a value suitable for `got`'s `agent` option to make it use…

* no proxy if `proxySpec === 'direct'`,
* or the specified proxy if `proxySpec` is a string that
  [@instaffogmbh/parse-proxy-url-string][ppus] understands,
* or the specified proxy if `proxySpec` is an object with suitable
  `host` (or `hostname`) and `port` properties.


<!--#toc stop="scan" -->


&nbsp;

  [ppus]: https://www.npmjs.com/package/@instaffogmbh/parse-proxy-url-string

License
-------
<!--#echo json="package.json" key=".license" -->
MIT
<!--/#echo -->
npm package: @instaffogmbh/make-prefixed-logger
Description: Log arguments with your prefixes prefixed.
Author: Instaffo GmbH
Latest version: 0.1.1

﻿
<!--#echo json="package.json" key="name" underline="=" -->
@instaffogmbh/make-prefixed-logger
==================================
<!--/#echo -->

<!--#echo json="package.json" key="description" -->
Log arguments with your prefixes prefixed.
<!--/#echo -->

* 📣 💼 💰 Looking for a tech job?
  Try our [reverse recruiting service](https://instaffo.com/).



API
---

This module exports one function:

### const pl = makePrefixedLogger(origLogger[, ...prefixArgs])

Returns a function that concatenates all its arguments to the `prefixArgs`,
then proxies the combined arguments to `origLogger`.
Similarly, `pl` will carry proxy methods for all methods found on `origLogger`.



<!--#toc stop="scan" -->


&nbsp;


License
-------
<!--#echo json="package.json" key=".license" -->
MIT
<!--/#echo -->
npm package: @instaffogmbh/parse-proxy-url-string
Description: `http://auth@host:port` → `{ hostname: …, port: …, auth: … }`
Author: Instaffo GmbH
Latest version: 1.0.0

﻿
<!--#echo json="package.json" key="name" underline="=" -->
@instaffogmbh/parse-proxy-url-string
====================================
<!--/#echo -->

<!--#echo json="package.json" key="description" -->
`http://auth@host:port` → `{ hostname: …, port: …, auth: … }`
<!--/#echo -->

* 📣 💼 💰 Looking for a tech job?
  Try our [reverse recruiting service](https://instaffo.com/).



API
---

This module exports one function:

### parts = parseProxyUrlString(spec)

Returns an object with the proxy details found in string `spec`,
or returns `false` if no proxy details were found
(e.g. befause `spec` was false-y).




<!--#toc stop="scan" -->


&nbsp;


License
-------
<!--#echo json="package.json" key=".license" -->
MIT
<!--/#echo -->
npm package: @instaffogmbh/read-file-if-exists
Description: Try to read a file. Ignore ENOENT.
Author: Instaffo GmbH
Latest version: 1.0.1

﻿
<!--#echo json="package.json" key="name" underline="=" -->
@instaffogmbh/read-file-if-exists
=================================
<!--/#echo -->

<!--#echo json="package.json" key="description" -->
Try to read a file. Ignore ENOENT.
<!--/#echo -->

* 📣 💼 💰 Looking for a tech job?
  Try our [reverse recruiting service](https://instaffo.com/).



API
---

This module exports one function:

### readFileIfExists(path[, options])

Arguments are expected as described for
[Node's fs.readFile][nodejs-api-fs-readfile].

Returns a promise that…
* resolves to the file's contents if it the read attempt succeeded.
* resolves to `false` if error `ENOENT` (file not found) was encountered.
* rejects for all other errors.



<!--#toc stop="scan" -->


&nbsp;

[nodejs-api-fs-readfile]: https://nodejs.org/api/fs.html#fs_fs_readfile_path_options_callback



License
-------
<!--#echo json="package.json" key=".license" -->
MIT
<!--/#echo -->
npm package: @instaffogmbh/verbose-redis
Description: ioredis + logging
Author: Instaffo GmbH
Latest version: 0.1.3

﻿
<!--#echo json="package.json" key="name" underline="=" -->
@instaffogmbh/verbose-redis
===========================
<!--/#echo -->

<!--#echo json="package.json" key="description" -->
ioredis + logging
<!--/#echo -->

* 📣 💼 💰 Looking for a tech job?
  Try our [reverse recruiting service](https://instaffo.com/).



API
---

This module exports one function:

### vr = makeVerboseRedis(how)

`how` should be a config object with these keys:

* `logPrefix`: Prefix for log and error messages. Required.
* `host`, `port`: Which Redis server to use. Optional.



### vr.conn

The lower level redis connection.
Can be used to access APIs that don't have a verbose wrapper yet.


### vr.teardown()

Terminate the redis connection and clean up.
Returns a Promise for being done with cleanup.



### exSet = vr.makeExpiringSetter(expirySec[, cond])

Returns an async function `(key, val)` that sets a key in redis that
expires after `expirySec` seconds.
`cond` can be a redis set condition like `NX`.

`exSet` returns a Promise for a boolean, whether the key was set.



<!--#toc stop="scan" -->


&nbsp;



License
-------
<!--#echo json="package.json" key=".license" -->
MIT
<!--/#echo -->