open-index/open-npm huggingface dataset:
npm package: @flipeet/pay-sdk
Description: Official flipeet pay sdk
Latest version: 1.0.6

# @flipeet/pay-sdk

**FlipeetPay SDK** is a powerful tool for integrating seamless payments via the **Solana** blockchain. It allows developers to initiate transactions, track payment statuses, and manage credentials securely.

---

## Table of Contents

1. [Installation](#installation)
2. [Getting Started](#getting-started)
3. [Usage](#usage)
      - [Setting Credentials](#setting-credentials)
      - [Initiating Transactions](#initiating-transactions)

## Installation

To install the SDK, use **npm** or **yarn**:

```bash
npm install @flipeet/pay-sdk
# or
yarn add @flipeet/pay-sdk
```

## Getting Started

### 1. Import the SDK

```typescript
import FlipeetPaySDK from '@flipeet/pay-sdk';
```

### 2. Initialize the SDK

Create an instance of the SDK:

```typescript
const sdk = new FlipeetPaySDK();
```

### Setting Credentials

Before initiating any transactions, set your **client credentials** using the `setCredentials` method:

```typescript
sdk.setCredentials({
        clientKey: 'your-client-key',
        clientSecret: 'your-client-secret',
});
```

## Initiating Transactions

To initiate a transaction on the **Solana** blockchain:

```typescript
import { TransactionDto } from '@flipeet/pay-sdk/lib/src/@types';

// Define the transaction payload
const payload: TransactionDto = {
        amount: 1000,
        email: 'sender@example.com',
        currency: 'ngn',
        memo: 'test payment',
        reference: randomUUID(),
        redirectUrl: 'https://redirect.com',
};

// Initiate the transaction and listen for status updates
sdk.transaction.initiate(
        payload,
        ({ txRef, status }) => {
                switch (status) {
                        case 'completed': // show success dialog
                                break;
                        case 'expired': // show expired dialog
                                break;
                }
                sdk.transaction.stopListening();
        },
        error => {
                sdk.transaction.stopListening();
        }
);
```
npm package: @flipgive/rn-button-sdk
Description: Button sdk for bare rn
Author: flipgive
Latest version: 0.1.2

# rn-button-sdk

Button SDK for React Native https://developer.usebutton.com/

# Installation

```bash
npm install @flipgive/rn-button-sdk
```

# Configuration

## iOS

Add Button SDK App ID to `Info.plist`:

```xml
<key>ButtonSdkAppId</key>
<string>your_ios_app_id</string>
```

## Android

Add Button SDK App ID to `AndroidManifest.xml`:

```xml
<application>
  <meta-data 
    android:name="com.usebutton.sdk.app_id" 
    android:value="your_android_app_id" />
</application>
```

# API

## Basic Usage

```typescript
import {
  startPurchasePath,
  clearAllData,
  setIdentifier,
  initializeSDK,
} from "@flipgive/rn-button-sdk";

// Initialize the SDK
await initializeSDK();

// Start purchase path
startPurchasePath({
  url: "https://the.button.url", // required
  token: "my-tracking-token", // required
  headerTitle: "My Button Browser Title",
  headerSubtitle: "My Button Browser Subtitle",
  headerTitleColor: "#FFFFFF",
  headerSubtitleColor: "#FFFFFF",
  headerBackgroundColor: "#FFFFFF",
  headerTintColor: "#FFFFFF",
  footerBackgroundColor: "#FFFFFF",
  footerTintColor: "#FFFFFF",
  promotionBadgeLabel: "Deals",
  promotionListTitle: "Available Deals",
  promotionBadgeFontSize: 12
});

// User login
setIdentifier(id);

// User logout
clearAllData();
```

## Exit Confirmation Dialog

```typescript
startPurchasePath({
  url: "https://the.button.url",
  token: "my-tracking-token",
  exitConfirmation: {
    enabled: true,
    title: "Leave Shopping?",
    message: "Are you sure you want to leave?",
    stayButtonLabel: "Stay",
    leaveButtonLabel: "Leave"
  }
});
```

## Promotions

```typescript
const promotionData = {
  merchantName: "Example Store",
  rewardText: "2% Cashback",
  featuredPromotion: {
    id: "featured-1",
    description: "Special Sale - Up to 65% off 4% Cashback",
    couponCode: "SALE65",
    startsAt: "2025-07-10T09:00:00Z",
    endsAt: "2025-07-25T23:59:00Z"
  },
  promotions: [
    {
      id: "promo-1",
      description: "New Sale Styles - Up to 50% off 3% Cashback",
      couponCode: "SAVE20",
      startsAt: "2025-07-15T09:00:00Z",
      endsAt: "2025-07-30T23:59:00Z"
    }
  ]
};

const baseUrl = "https://my-itent-page.com"

startPurchasePath({
  url: "https://the.button.url",
  token: "my-tracking-token",
  promotionData: promotionData,
  closeOnPromotionClick: true,
  promotionBadgeLabel: "Deals",
  promotionListTitle: "Available Deals",
  promotionBadgeFontSize: 13,
  onPromotionClick: async (promotionId: string) => {
    console.log('Promotion clicked:', promotionId);
    
    // Async calls here.....
    
    return {
      url: `${baseUrl}&promoId=${promotionId}`,
      token: "my-tracking-token" // static
    };
  }
});
```

## License

MIT
npm package: @fliple/sdk
Description: 🛠 An SDK for building applications on top of Fliple.
Latest version: 1.0.0

# Fliple SDK

Forked from the [Uniswap SDK](https://github.com/Uniswap/uniswap-v2-sdk/commit/a88048e9c4198a5bdaea00883ca00c8c8e582605).

You can refer to the Uniswap SDK documentation [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## 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/fliple/fliple-sdk.git
```

Move into the fliple-sdk working directory

```sh
cd fliple-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: @flipos/openclaw-flipos-tools
Description: CLI installer for the openclaw-flipos plugin
Latest version: 1.0.3

# flipos-openclaw-tools

用于安装 `@flipos/openclaw-flipos` 插件的 npm CLI 包。安装器包名是 `@flipos/openclaw-flipos-tools`，它会调用 OpenClaw 把插件包 `@flipos/openclaw-flipos` 安装到 OpenClaw 插件系统里。
npm package: @flippercloud.io/expressions
Description: Library and Schema for evaluating Flipper Expressions
Latest version: 1.0.0

# Flipper Expressions

> A schema for Flipper Expressions

The structure for flipper Expressions is defined in `[`schemas/schema.json`](./schemas/schema.json) using [JSON Schema](https://json-schema.org) ([draft-07](https://json-schema.org/specification-links.html#draft-7)).

To learn more about JSON Schema, read [Understanding JSON Schema](https://json-schema.org/understanding-json-schema/) or the [Ajv JSON schema validator docs](https://ajv.js.org/json-schema.html).

## Adding a new expression

1. Describe arguments by creating a new file in [`schemas/`](schemas/) named `NewName.schema.json`. You can copy an existing function that has similar semantics to get started.
2. Add the new function in [`schemas/schema.json`](schemas/schema.json) to `$defs/function`.
3. Create a new file in [`examples/`](./examples) named `NewName.json` with valid and invalid examples for the new function. See other examples for inspiration.
4. Run `yarn test` in `packages/expressions` and ensure tests pass.
5. Implement the function in [`lib/flipper/expressions/`](../../lib/flipper/expressions/).
6. Run `rspec` to ensure tests pass.

See [this commit that adds Min/Max functions](https://github.com/jnunemaker/flipper/commit/ee46fab0cda21a32c3a921a8ed1fb94b0842b6b4) for a concrete example.
npm package: @flippercloud/flipper
Description: Flipper feature flags for TypeScript/JavaScript
Author: Jonathan Hoyt
Latest version: 1.0.1

# @flippercloud/flipper

A TypeScript/JavaScript implementation of [Flipper](https://github.com/flippercloud/flipper) - a feature flagging library for controlling features and behavior.

## Installation

```bash
bun add @flippercloud/flipper
```

## Quick usage

```typescript
import Flipper from '@flippercloud/flipper'
import { MemoryAdapter } from '@flippercloud/flipper'

const adapter = new MemoryAdapter()
const flipper = new Flipper(adapter)

// Enable a feature
await flipper.enable('new-ui')

// Check if a feature is enabled
const isEnabled = await flipper.isEnabled('new-ui')
console.log(isEnabled) // true

// Enable for specific actors
await flipper.enableActor('premium-feature', 'user-123')

// Check if enabled for a specific actor
const isPremiumEnabled = await flipper.isEnabledFor('premium-feature', 'user-123')
console.log(isPremiumEnabled) // true
```

## Docs

Looking for configuration, adapters, advanced usage, and best practices? See the full guide: [Flipper documentation](../../docs/README.md).

## License

MIT
npm package: @flippercloud/flipper-sequelize
Description: Sequelize adapter for Flipper feature flags
Author: Jonathan Hoyt
Latest version: 1.0.1

# @flippercloud/flipper-sequelize

A Sequelize adapter for [Flipper](https://github.com/flippercloud/flipper) feature flags. This adapter allows you to store feature flag data in any database supported by Sequelize (MySQL, PostgreSQL, SQLite, etc.).

## Installation

```bash
bun add @flippercloud/flipper-sequelize sequelize
```

## Quick usage

```typescript
import { Sequelize } from 'sequelize'
import Flipper from '@flippercloud/flipper'
import SequelizeAdapter, { createFlipperModels } from '@flippercloud/flipper-sequelize'

const sequelize = new Sequelize(process.env.DATABASE_URL!)
const { Feature, Gate } = createFlipperModels(sequelize)
await sequelize.sync()

const adapter = new SequelizeAdapter({ Feature, Gate })
const flipper = new Flipper(adapter)

await flipper.enable('search')
const enabled = await flipper.isFeatureEnabled('search')
```

## Docs

Looking for database setup, migrations, read-only mode, and best practices? See the full guide: [Sequelize adapter guide](../../docs/adapters/sequelize.md).

## License

MIT