open-index/open-npm huggingface dataset:
npm package: @satoshi-ltd/eslint
Description: [![npm](https://img.shields.io/npm/v/@satoshi-ltd/eslint.svg?style=flat-square)](https://www.npmjs.com/package/@satoshi-ltd/eslint)
Latest version: 0.1.2

# @satoshi-ltd/eslint

[![npm](https://img.shields.io/npm/v/@satoshi-ltd/eslint.svg?style=flat-square)](https://www.npmjs.com/package/@satoshi-ltd/eslint)

> 🍦 A naive and simple eslint configuration for all our JavaScript projects.
npm package: @satoshibits/data-segmenter
Description: `data-segmenter` is a tool that allows package consumers to define segments from their data regardless of data source like MongoDB or SQL in the backend and provide those segments to a client consumer or user in the frontend.
Author: Abe Caymo
Latest version: 4.0.4

# About

`data-segmenter` is a tool that allows package consumers to define segments from their data regardless of data source like MongoDB or SQL in the backend and provide those segments to a client consumer or user in the frontend.

[Demo](https://data-segmenter-demo.vercel.app/)

This package has 3 main APIs:

## 1. Segment Builder API

Allows you to define your segments and their corresponding query builders. A segment should be represented by a query e.g. "I want the segment of my profiles with a `{field}` containing `{value}`" could be represented as a MongoDb or SQL query returned by your `buildQuery` methods.

You would consume this in your backend.

## 2. Segment Composer API

Allow for the composition and manipulation of segments.

You would consume this in your client. It should not know anything of your implementation of the Definition API.

This API should provide only a representation of composed segments without being coupled with the backend implementation.

## 3. Query Composer API

Parses the composed segments from the Composer, and builds composed queries from it. Implementation is done by consumer.

You would consume this in the backend.

### How to use:

See `examples` folder.
npm package: @satoshicrypto/sdk
Description: 🛠 An SDK for building applications on top of satoshi.
Latest version: 0.2.1

# Pancakeswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/pancakeswap/pancakeswap-sdk/workflows/CI/badge.svg)](https://github.com/pancakeswap/pancakeswap-sdk)
[![npm version](https://img.shields.io/npm/v/@pancakeswap-lib/sdk/latest.svg)](https://www.npmjs.com/package/@pancakeswap-lib/sdk/v/latest)

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancakeswap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @satoshicrypto/sdk-pcs
Description: 🛠 An SDK for building applications on top of satoshi.
Latest version: 0.0.3

# Pancakeswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/pancakeswap/pancakeswap-sdk/workflows/CI/badge.svg)](https://github.com/pancakeswap/pancakeswap-sdk)
[![npm version](https://img.shields.io/npm/v/@pancakeswap-lib/sdk/latest.svg)](https://www.npmjs.com/package/@pancakeswap-lib/sdk/v/latest)

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancakeswap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @satoshicrypto/uikit
Description: Set of UI components for pancake projects
Latest version: 0.2.8

# 🥞 Satoshi UIkit

[![Version](https://img.shields.io/npm/v/@satoshicrypto/uikit)](https://www.npmjs.com/package/@satoshicrypto/uikit) [![Size](https://img.shields.io/bundlephobia/min/@satoshicrypto/uikit)](https://www.npmjs.com/package/@satoshicrypto/uikit)

Satoshi UIkit is a set of React components and hooks used to build pages on Satoshi's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @satoshicrypto/uikit`

## Setup

### Theme

Before using Satoshi UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@satoshicrypto/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@satoshicrypto/uikit'
...
<ResetCSS />
```
npm package: @satoshihunters/sdk
Description: 🛠 An SDK for building applications on top of satoshi.
Latest version: 0.0.2

# Pancakeswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/pancakeswap/pancakeswap-sdk/workflows/CI/badge.svg)](https://github.com/pancakeswap/pancakeswap-sdk)
[![npm version](https://img.shields.io/npm/v/@pancakeswap-lib/sdk/latest.svg)](https://www.npmjs.com/package/@pancakeswap-lib/sdk/v/latest)

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancakeswap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @satoshihunters/uikit
Description: Set of UI components for pancake projects
Latest version: 0.0.7

# 🥞 Satoshi UIkit

[![Version](https://img.shields.io/npm/v/@satoshihunters/uikit)](https://www.npmjs.com/package/@satoshihunters/uikit) [![Size](https://img.shields.io/bundlephobia/min/@satoshihunters/uikit)](https://www.npmjs.com/package/@satoshihunters/uikit)

Satoshi UIkit is a set of React components and hooks used to build pages on Satoshi's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @satoshihunters/uikit`

## Setup

### Theme

Before using Satoshi UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@satoshihunters/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@satoshihunters/uikit'
...
<ResetCSS />
```
npm package: @satoshipay/stellar-sep-10
Description: [Stellar Ecosystem Proposal 10 - "Stellar Web Authentication"](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0010.md) client SDK, allowing Stellar wallets to authenticate for a web service using an account's private key.
Author: SatoshiPay Ltd
Latest version: 0.3.0

# @satoshipay/stellar-sep-10

[Stellar Ecosystem Proposal 10 - "Stellar Web Authentication"](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0010.md) client SDK, allowing Stellar wallets to authenticate for a web service using an account's private key.

**Note: This package is still considered experimental. Breaking changes should be expected.**

## Installation

```
npm install @satoshipay/stellar-sep-10
# or with yarn:
yarn add @satoshipay/stellar-sep-10
```

## Usage

### Digest remote stellar.toml information

```ts
// Look up the stellar.toml for an issuing account, parse it, return data
import { Server } from "stellar-sdk"
import { fetchWebAuthData } from "@satoshipay/stellar-sep-10"

const horizon = new Server("https://stellar-horizon.satoshipay.io/")
const issuingAccountID =
  "GABWHTAVRYF2MCNDR5YC5SC3JTZQBGDZ3HKI4QAREV5533VU43W4HJUX"

const webauth = fetchWebAuthData(horizon, issuingAccountID)
// typeof webauth = { endpointURL: string, signingKey: string } | undefined
```

Alternatively, if you already fetched and parsed the stellar.toml file:

```ts
import {
  getServiceSigningKey,
  getWebAuthEndpointURL
} from "@satoshipay/stellar-sep-10"

const stellarToml = {
  // Parsed stellar.toml content fetched from remote...
}

const endpointURL = getWebAuthEndpointURL(stellarToml)
const signingKey = getServiceSigningKey(stellarToml)
```

### Authenticate - The simple way

```ts
import { Keypair } from "stellar-sdk"
import { authenticate } from "@satoshipay/stellar-sep-10"

// see above how to obtain `webauth`
const accountKeypair = Keypair.fromSecret("S...")

const jwt = await authenticate(
  webauth.endpointURL,
  webauth.signingKey,
  accountKeypair,
  Network.current()
)
```

You can now use `jwt` in HTTP requests for authentication. Use the `Authorization` header:

```
Authorization: Bearer ${jwt}
```

### Authenticate - The manual way

```ts
import { Keypair } from "stellar-sdk"
import { authenticate } from "@satoshipay/stellar-sep-10"

// see above how to obtain `webauth`
const accountKeypair = Keypair.fromSecret("S...")

const transaction = await fetchChallenge(
  webauth.endpointURL,
  webauth.signingKey,
  accountKeypair.publicKey()
)

transaction.sign(accountKeypair)

const jwt = await postResponse(webauth.endpointURL, transaction)
```

Use this slightly less convenient way if you want the user to review the transaction before signing it.

## License

GPL v3