open-index/open-npm huggingface dataset:
npm package: @fastnear/repl
Description: Simple REPL to explore NEAR blockchain objects
Author: FastNear
Latest version: 0.10.4

# REPL

Run with:

    yarn repl

and try the following:

    mockTx

and see how it is displayed. and then the verbose call:

    v(mockTx)

## alpha version

The focus thus far has been of a highly technical nature, and after releasing this alpha version the devs will let their minds gestate. then this file will fill out with more meaningful info and snippets. 🙏🏼

Make sure to visit the [project-level README](https://github.com/fastnear/js-monorepo#global-near-js)
npm package: @fastnear/wallet
Description: Multi-wallet connector for NEAR dApps — MyNearWallet, HERE, Meteor, and more
Author: FastNear
Latest version: 0.10.4

# @fastnear/wallet

Multi-wallet connector for NEAR dApps. Supports MyNearWallet, HOT Wallet, Meteor, NEAR Mobile, WalletConnect, and more via [`@fastnear/near-connect`](https://www.npmjs.com/package/@fastnear/near-connect).

## Install

```bash
npm install @fastnear/wallet
```

## Usage

```js
import { connect, disconnect, sendTransaction, accountId } from "@fastnear/wallet";

// Show wallet picker and connect
const result = await connect({ network: "mainnet" });
console.log("Connected:", result.accountId);

// Send a transaction
await sendTransaction({
  receiverId: "wrap.near",
  actions: [
    { type: "FunctionCall", methodName: "near_deposit", args: {}, gas: "30000000000000", deposit: "1000000000000000000000000" }
  ],
});

// Disconnect
await disconnect();
```

## Restore session

```js
import { restore } from "@fastnear/wallet";

// On page load, restore a previously connected wallet session
const result = await restore();
if (result) {
  console.log("Restored session:", result.accountId);
}
```

## Browser (IIFE)

```html
<script src="https://cdn.jsdelivr.net/npm/@fastnear/wallet/dist/umd/browser.global.js"></script>
<script>
  // Available as window.nearWallet
  // Auto-wires with @fastnear/api if loaded
  nearWallet.connect({ network: "mainnet" });
</script>
```

WalletConnect support is excluded from the IIFE bundle to keep it small (~100 KB). Load `@walletconnect/sign-client` separately if needed.

## Part of the FastNear JS monorepo

See the [project-level README](https://github.com/fastnear/js-monorepo) for more info.
npm package: @fastnear/wallet-adapter
Description: Wallet adapter implementations for Meteor Wallet and Near Mobile
Author: FastNear
Latest version: 0.10.4

# @fastnear/wallet-adapter

Low-level wallet adapter implementations for [Meteor Wallet](https://meteorwallet.app/) and [NEAR Mobile](https://nearmobile.app/). Used internally by [`@fastnear/wallet`](https://www.npmjs.com/package/@fastnear/wallet) and [`@fastnear/near-connect`](https://www.npmjs.com/package/@fastnear/near-connect).

Most apps should use `@fastnear/wallet` directly rather than this package.

## Install

```bash
npm install @fastnear/wallet-adapter
```

## Usage

```js
import { createMeteorAdapter, createNearMobileAdapter } from "@fastnear/wallet-adapter";

const meteor = createMeteorAdapter({ network: "mainnet" });
const nearMobile = createNearMobileAdapter({ network: "mainnet" });
```

## Part of the FastNear JS monorepo

See the [project-level README](https://github.com/fastnear/js-monorepo) for more info.
npm package: @fastnloud/nest-mail
Description: Mail module for Nest that uses Nodemailer to deliver messages.
Author: jaap
Latest version: 2.0.0-rc.0

## Description

Mail module for Nest that uses Nodemailer to deliver messages.

## Installation

```bash
$ npm i --save @fastnloud/nest-mail
```

## Setup

Import module:

```ts
import { MailModule } from '@fastnloud/nest-mail';
import { Module } from '@nestjs/common';

@Module({
  imports: [MailModule],
})
export class AppModule {}
```

A sample `.env` file looks something like this:

```
MAIL_DEFAULT_FROM_ADDRESS=john.doe@example.com
MAIL_DEFAULT_FROM_NAME=John Doe
MAIL_RECIPIENTS=
MAIL_URL=smtp://localhost:1025
```

## Usage

```ts
import { SmtpTransporter } from '@fastnloud/nest-mail';
import { Injectable } from '@nestjs/common';
import { SentMessageInfo } from 'nodemailer';

@Injectable()
export class MailService {
  constructor(private readonly smtpTransporter: SmtpTransporter) {}

  async send(): Promise<void> {
    this.smtpTransporter.send(
      {
        to: 'jane.doe@example.com',
        subject: `hello`,
        text: 'world',
      },
      (error: Error | null, info: SentMessageInfo) => {
        if (error) {
          throw error;
        }

        console.log(info);
      },
    );
  }
}
```

## License

nest-mail is [MIT licensed](LICENSE).
npm package: @fastnloud/nest-template
Description: Template module for Nest that uses Handlebars to render templates.
Author: jaap
Latest version: 2.0.0-rc.0

## Description

Template module for Nest that uses Handlebars to render templates.

## Installation

```bash
$ npm i --save @fastnloud/nest-template
```

## Setup

Import module:

```ts
import { TemplateModule } from '@fastnloud/nest-template';
import { Module } from '@nestjs/common';
import * as path from 'path';

@Module({
  imports: [
    TemplateModule.forRoot(path.join(__dirname, 'path', 'to', 'templates')),
  ],
})
export class AppModule {}
```

A sample template file looks something like this:

```html
<!-- /path/to/templates/dir/template.html.handlebars -->
<!DOCTYPE html>
<html lang="en">
  <body>
    <p>{{ content }}</p>
  </body>
</html>
```

## Usage

```ts
import { HandlebarsRenderer } from '@fastnloud/nest-template';
import { Injectable } from '@nestjs/common';

@Injectable()
export class TemplateService {
  constructor(private readonly handlebarsRenderer: HandlebarsRenderer) {}

  async render(): Promise<string> {
    return this.handlebarsRenderer.render(['dir', 'template.html.handlebars'], {
      content: 'hello world',
    });
  }
}
```

## License

nest-template is [MIT licensed](LICENSE).