JSPM

@brij-fi/widget-sdk

0.1.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 16
    • Score
      100M100P100Q48761F
    • License MIT

    Official TypeScript SDK for BRIJ Widget - Simplifies iframe integration with automatic height updates, scroll forwarding, and type-safe wallet delegation

    Package Exports

    • @brij-fi/widget-sdk

    Readme

    BRIJ Widget SDK

    Embed crypto on/off-ramp functionality into your application with a few lines of code.

    Quick Start

    1. Add the SDK

    <script src="https://unpkg.com/@brij-fi/widget-sdk/dist/index.umd.js"></script>

    Or install via npm:

    npm install @brij-fi/widget-sdk

    2. Initialize the Widget

    <div id="brij-widget"></div>
    
    <script>
        const {BrijSDK, BrijAction} = window.BrijSDK;
    
        const sdk = BrijSDK.init('#brij-widget', {
            apiKey: 'your-api-key',
            chains: ['SOLANA'], // Optional, remove to support all chains
            mode: ['ONRAMP'], // or 'OFFRAMP', or remove to support both modes
        });
    </script>

    3. Customize Theme (Optional)

    const sdk = BrijSDK.init('#brij-widget', {
        apiKey: 'your-api-key',
        theme: {
            primaryColor: '6366F1',      // Buttons and accents (hex without #)
            secondaryColor: '4F46E5',    // CTA buttons
            surfaceColor: '0F0F23',      // Background
            logoUrl: 'https://your-site.com/logo.png',
        }
    });

    Documentation

    Full documentation: docs.brij.fi