open-index/open-npm huggingface dataset:
npm package: @nile-markets/sdk
Description: TypeScript ABIs and constants for the Nile Markets onchain FX protocol
Latest version: 0.3.2

# @nile-markets/sdk

TypeScript ABIs and constants for the [Nile Markets](https://nilemarkets.com) onchain FX protocol.

## Installation

```bash
npm install @nile-markets/sdk
```

## Usage

```typescript
import { positionManagerAbi, configAbi, poolVaultAbi } from "@nile-markets/sdk";
import { Side, Tenor, PAIR_IDS } from "@nile-markets/sdk/constants";

// Use ABIs with viem/wagmi
const result = await publicClient.readContract({
  address: positionManagerAddress,
  abi: positionManagerAbi,
  functionName: "getPosition",
  args: [positionId],
});

// Type-safe enums
const side = Side.LONG;
const tenor = Tenor.ONE_WEEK;

// Pair IDs
const pairId = PAIR_IDS.EUR_USD;
```

## Links

- [Documentation](https://docs.nilemarkets.com)
- [Protocol Overview](https://docs.nilemarkets.com/protocol/overview)
- [GitHub](https://github.com/nil3labs)
npm package: @niledatabase/client
Description: <p align="center">   <img width="1434" alt="Screen Shot 2024-09-18 at 9 20 04 AM" src="https://github.com/user-attachments/assets/20585883-5cdc-4f15-93d3-dc150e87bc11"> </p>
Author: jrea
Latest version: 5.3.1
npm package: @niledatabase/js
Description: ## Usage
Author: jrea
Latest version: 1.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @niledatabase/js

## Usage

A full list of functions available to the Nile object can be found in the [docs](https://docs.thenile.dev/).

## Basic example

```typescript
import Nile from "@niledatabase/js";

const nile = Nile({ apiUrl: props.apiUrl });

await nile.developer.loginDeveloper({
  loginInfo: {
    email: "dev@dev.dev",
    password: "123",
  },
});

// set the auth token for all sub classes
nile.authToken = nile.developer.authToken;

// create a user
await nile.user
  .createUser({
    loginInfo: {
      email: "anon@anon.com",
      password: "secret",
    },
  })
  .catch((error) => console.error(error));

const user = await nile.getUser({ id: 1 });
// log created user to console
console.log(user);
```

## Contributing

### Prereq

```bash
brew install yarn
```

```bash
yarn set version berry
```

### Commands

To run:

```bash
yarn build
yarn start
```

This builds to `/dist` and runs the project in watch mode so any edits you save inside `src` causes a rebuild to `/dist`.

To do a one-off build, use `npm run build` or `yarn build`.

To run tests, use `npm test` or `yarn test`.

### Configuration

Code quality is set up for you with `prettier`, `husky`, and `lint-staged`. Adjust the respective fields in `package.json` accordingly.

#### Tests

Tests are set up to run with `yarn test`.
npm package: @niledatabase/react
Description: <p align="center">   <img width="1434" alt="Screen Shot 2024-09-18 at 9 20 04 AM" src="https://github.com/user-attachments/assets/20585883-5cdc-4f15-93d3-dc150e87bc11"> </p>
Author: jrea
Latest version: 5.3.1
npm package: @niledatabase/server
Description: <p align="center">   <img width="1434" alt="Screen Shot 2024-09-18 at 9 20 04 AM" src="https://github.com/user-attachments/assets/20585883-5cdc-4f15-93d3-dc150e87bc11"> </p>
Author: jrea
Latest version: 5.3.1
npm package: @niledatabase/web
Description: <p align="center">   <img width="1434" alt="Screen Shot 2024-09-18 at 9 20 04 AM" src="https://github.com/user-attachments/assets/20585883-5cdc-4f15-93d3-dc150e87bc11"> </p>
Author: jrea
Latest version: 4.2.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm package: @nilegfx/n8n-nodes-base64
Description: n8n node to encode text to base64 and decode base64 to text
Author: nilegfx
Latest version: 0.1.1

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

# n8n-nodes-base64

This is an n8n community node that provides Base64 encoding and decoding functionality.

[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.

## Features

This node allows you to:

- Encode text to Base64
- Decode Base64 to text

## Installation

### Community Nodes (Recommended)

For users on n8n v0.187+:

1. Go to **Settings > Community Nodes**
2. Select **Install**
3. Enter `n8n-nodes-base64` in **Enter npm package name**
4. Agree to the risks of using community nodes
5. Select **Install**

### Manual Installation

To install this node manually:

```bash
cd /your-n8n-installation-folder
npm install n8n-nodes-base64
```

**Note:** n8n automatically detects all installed nodes. If you installed n8n globally, you might need to install the package globally as well (`npm install -g n8n-nodes-base64`).

## Usage

### Base64 Encode

1. Add the **Base64** node to your workflow
2. Select the **Encode** operation
3. Enter the text you want to encode in the **Text** field
4. Execute the node to get the Base64 encoded string

### Base64 Decode

1. Add the **Base64** node to your workflow
2. Select the **Decode** operation
3. Enter the Base64 string you want to decode in the **Base64** field
4. Execute the node to get the decoded text

## Resources

* [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
* [Base64 encoding explained](https://en.wikipedia.org/wiki/Base64)

## License

[MIT](LICENSE.md)