open-index/open-npm huggingface dataset:
npm package: @protonprotocol/anchor-link-browser-transport
Description: Vanilla JS browser transport for Anchor Link
Latest version: 2.1.3

# Anchor Link - Browser Transport [![Package Version](https://img.shields.io/npm/v/anchor-link-browser-transport.svg?style=flat-square)](https://www.npmjs.com/package/anchor-link-browser-transport) ![License](https://img.shields.io/npm/l/anchor-link-browser-transport.svg?style=flat-square)

A transport library for usage of [Anchor Link](https://github.com/greymass/anchor-link) within a web browser environment.

## Basic usage

A transport is required for Anchor Link to communicate with clients. In most examples we use the browser transport with no configuration, like so:

```ts
const transport = new AnchorLinkBrowserTransport()
const link = new AnchorLink({transport})
```

Parameters can be passed to the transport during construction as an object, allowing for the following optional changes:

```ts
const transport = new AnchorLinkBrowserTransport({
    /** CSS class prefix, defaults to `anchor-link` */
    classPrefix: 'my-css-prefix',
    /** Whether to inject CSS styles in the page header, defaults to true. */
    injectStyles: true,
    /** Whether to display request success and error messages, defaults to true */
    requestStatus: false,
    /** Local storage prefix, defaults to `anchor-link`. */
    storagePrefix: 'my-localstorage-prefix',
})
const link = new AnchorLink({transport})
```

## Developing

You need [Make](https://www.gnu.org/software/make/), [node.js](https://nodejs.org/en/) and [yarn](https://classic.yarnpkg.com/en/docs/install) installed.

Clone the repository and run `make` to checkout all dependencies and build the project. See the [Makefile](./Makefile) for other useful targets. Before submitting a pull request make sure to run `make lint`.

## License

[MIT](./LICENSE.md)

---

Made with ☕️ & ❤️ by [Greymass](https://greymass.com), if you find this useful please consider [supporting us](https://greymass.com/support-us).
npm package: @protonprotocol/proton-browser-transport
Description: A transport library for usage of [Proton Link](https://www.npmjs.com/package/@protonprotocol/proton-link) within a web browser environment.
Author: jafri
Latest version: 2.5.6

# Proton Browser Transport [![Package Version](https://img.shields.io/npm/v/@protonprotocol/proton-link-browser-transport.svg?style=flat-square)](https://www.npmjs.com/package/@protonprotocol/proton-link-browser-transport) ![License](https://img.shields.io/npm/l/@protonprotocol/proton-link-browser-transport.svg?style=flat-square)

A transport library for usage of [Proton Link](https://www.npmjs.com/package/@protonprotocol/proton-link) within a web browser environment.

## Basic usage

A transport is required for Proton Link to communicate with clients. In most examples we use the browser transport with no configuration, like so:

```ts
const transport = new ProtonLinkBrowserTransport()
const link = new ProtonLink({transport})
```

Parameters can be passed to the transport during construction as an object, allowing for the following optional changes:

```ts
const transport = new ProtonLinkBrowserTransport({
    /** CSS class prefix, defaults to `@protonprotocol/proton-link` */
    classPrefix: 'my-css-prefix',
    /** Whether to inject CSS styles in the page header, defaults to true. */
    injectStyles: true,
    /** Whether to display request success and error messages, defaults to true */
    requestStatus: false,
    /** Local storage prefix, defaults to `@protonprotocol/proton-link`. */
    storagePrefix: 'my-localstorage-prefix',
    /** Requesting account of the dapp (optional) */
    requestAccount: 'taskly',
    /** Wallet name e.g. proton, anchor, etc */
    walletType: 'proton'
})
const link = new ProtonLink({transport})
```

## Developing

You need [Make](https://www.gnu.org/software/make/), [node.js](https://nodejs.org/en/) and [yarn](https://classic.yarnpkg.com/en/docs/install) installed.

Clone the repository and run `make` to checkout all dependencies and build the project. See the [Makefile](./Makefile) for other useful targets. Before submitting a pull request make sure to run `make lint`.

## Implementation Details

Proton Web SDK is a cross-device authentication and signing protocol built on top of ESR (EOSIO Signing Requests / EEP-7).

More information in the [Proton Web SDK](https://github.com/ProtonProtocol/ProtonWeb)

## License

[MIT](./LICENSE.md)

---

Made with ☕️ & ❤️ by [Greymass](https://greymass.com) and [Proton](https://protonchain.com).
npm package: @protonprotocol/proton-connect
Description: Connect to Proton
Author: Proton, Greymass
Latest version: 2.2.1

# Proton Connect

Installation
```
npm i @protonprotocol/proton-connect
```

Usage
```
import { ProtonConnect } from '@protonprotocol/proton-connect'

// Initialize
const chainId = '384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0'
const endpoints = ['https://proton.greymass.com'] // Multiple for fault tolerance
const appName = 'my-app-1'
const requestAccount = 'myprotonacc' // optional

// Create Link
const link = ProtonConnect({ chainId, endpoints }, { requestAccount })

// Get Sessions
const { session } = await link.login(appName)
console.log(session.auth)

// Send Transaction
const result = await session.transact({
    { actions: [] },
    broadcast: true
})
console.log(result.processed.id) // TX ID

// Restore session after refresh
const session = await link.restoreSession(appName, { actor: 'fred', permission: 'active' })

// Remove session
await link.removeSession(appName, session.auth)
```
npm package: @protonprotocol/proton-transit-provider
Description: ## Introduction
Author: jafri
Latest version: 2.5.10

# proton-transit-proton-provider

## Introduction

This is a plugin which is intended to be used in conjunction with the EOS Transit API framework.

Website: https://www.eostransit.com/
EOS Transit, NPM: https://www.npmjs.com/package/eos-transit
EOS Transit, GitHub: https://github.com/eosnewyork/eos-transit/tree/master/packages/eos-transit

## Links To This Package

NPM: https://www.npmjs.com/package/@protonprotocol/proton-transit-provider
GitHub: https://github.com/ProtonProtocol/ProtonWeb/tree/master/packages/proton-transit-provider

## Implementation Details

Proton Web SDK is a cross-device authentication and signing protocol built on top of ESR (EOSIO Signing Requests / EEP-7).

More information in the [Proton Web SDK](https://github.com/ProtonProtocol/ProtonWeb)
npm package: @protonprotocol/proton-web-sdk
Description: Installation ``` npm i @protonprotocol/proton-web-sdk yarn add @protonprotocol/proton-web-sdk ```
Author: jafri
Latest version: 2.7.0

# Proton Web SDK

Installation
```
npm i @protonprotocol/proton-web-sdk
yarn add @protonprotocol/proton-web-sdk
```

Full Documentation:
https://docs.protonchain.com/sdk/proton-web-sdk

Usage
```javascript
import { ConnectWallet } from '@protonprotocol/proton-web-sdk'

// Constants
const appIdentifier = 'taskly'

// Pop up modal
const link = await ConnectWallet({
    linkOptions: {
        endpoints: ['https://proton.greymass.com'],
        // rpc: rpc /* Optional: if you wish to provide rpc directly instead of endpoints */
    },
    transportOptions: {
        requestAccount: 'myprotonacc', /* Optional: Your proton account */
        requestStatus: true, /* Optional: Display request success and error messages, Default true */
    },
    selectorOptions: {
        appName: 'Taskly', /* Optional: Name to show in modal, Default 'app' */
        appLogo: 'https://protondemos.com/static/media/taskly-logo.ad0bfb0f.svg', /* Optional: Logo to show in modal */
        customStyleOptions: { /* Optional: Custom style options for modal */
            modalBackgroundColor: '#F4F7FA',
            logoBackgroundColor: 'white',
            isLogoRound: true,
            optionBackgroundColor: 'white',
            optionFontColor: 'black',
            primaryFontColor: 'black',
            secondaryFontColor: '#6B727F',
            linkColor: '#752EEB'
        }
        // walletType: 'proton' /* Optional: Connect to only specified wallet (e.g. 'proton', 'anchor') */
    }
})

//Login
  const { link, session } = await ConnectWallet({
    linkOptions: { chainId: this.chainId, endpoints: this.endpoints },
    transportOptions: { requestAccount: this.requestAccount, backButton: true },
    selectorOptions: { appName: this.appName, appLogo: appLogo}
  });
  this.link = link;
  this.session = session;
  return { auth: session.auth, accountData: session.accountData[0] };

// Send Transaction
const result = await session.transact({
    transaction: {
        actions: [{
            // Token contract for XUSDT
            account: 'xtokens',
            // Action name
            name: 'transfer',
            // Action parameters
            data: {
                from: session.auth.actor,
                to: 'syed',
                quantity: '0.000001 XUSDT',
                memo: 'Tip!'
            },
            authorization: [session.auth]
        }]
    },
    broadcast: true
})
console.log('Transaction ID', result.processed.id)

// Restore session after refresh (must recreate link first with restoreSession as true)
const { link, session } = await ConnectWallet({
    linkOptions: { chainId: this.chainId, endpoints: this.endpoints, restoreSession: true},
    transportOptions: { requestAccount: this.requestAccount },
    selectorOptions: { appName: this.appName, appLogo: appLogo}
  });
  this.link = link;
  this.session = session;
      
// Logout
await link.removeSession(appIdentifier, session.auth)
session = undefined
```
npm package: @protonprotocol/transit-proton-provider
Description: ESR provider for Proton Wallet
Latest version: 4.0.10

# eos-transit-proton-provider

## Introduction

This is a plugin which is intended to be used in conjunction with the EOS Transit API framework.

Website: https://www.eostransit.com/
EOS Transit, NPM: https://www.npmjs.com/package/eos-transit
EOS Transit, GitHub: https://github.com/eosnewyork/eos-transit/tree/master/packages/eos-transit

## Links To This Package

NPM: https://www.npmjs.com/package/eos-transit-proton-provider
GitHub: https://github.com/eosnewyork/eos-transit/tree/master/packages/eos-transit-proton-provider

## Implementation Details

Proton Web SDK is a cross-device authentication and signing protocol built on top of ESR (EOSIO Signing Requests / EEP-7).

More information in the [Proton Web SDK](https://github.com/ProtonProtocol/ProtonWeb)