npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@busha/ramp-web-sdk

v0.1.2

Published

Official Busha Ramp Web SDK for integrating cryptocurrency on-ramp functionality into web applications

Readme

@busha/ramp-web-sdk

Official Busha Ramp Web SDK for integrating cryptocurrency on-ramp functionality into web applications.

npm version License: MIT

🚀 Features

  • Easy Integration: Simple API for adding crypto on-ramp to your web app
  • TypeScript Support: Full TypeScript definitions included
  • Framework Agnostic: Works with React, Vue, Angular, or vanilla JavaScript
  • Customizable: Flexible configuration options
  • Secure: Built with security best practices

📦 Installation

NPM/Yarn

# Using npm
npm install @busha/ramp-web-sdk

# Using yarn
yarn add @busha/ramp-web-sdk

CDN

<script src="https://cdn.jsdelivr.net/npm/@busha/ramp-web-sdk/dist/index.umd.js"></script>

📦 Build Formats

The SDK is available in multiple formats:

  • ES Module (dist/index.es.js): For modern bundlers and ES modules
  • UMD (dist/index.umd.js): For CDN usage and older environments

The package.json exports are configured to automatically use the appropriate format based on your build environment.

🛠️ Usage

Basic Usage

import { BushaRampWidget } from '@busha/ramp-web-sdk';

const ramp = new BushaRampWidget({
  publicKey: 'your_public_key_here',
  side: 'buy', // 'buy' or 'sell'
  onSuccess: (transaction) => {
    console.log('Transaction successful:', transaction);
  },
  onClose: () => {
    console.log('Widget closed');
  },
});

// Show the widget
ramp.show();

React Component

import React from 'react';
import { BushaRampWidget } from '@busha/ramp-web-sdk';

function App() {
  const handleShowWidget = () => {
    const ramp = new BushaRampWidget({
      publicKey: 'your_public_key_here',
      side: 'buy',
      onSuccess: (transaction) => {
        console.log('Success:', transaction);
      },
      onClose: () => {
        console.log('Widget closed');
      },
    });
    ramp.show();
  };

  return (
    <div>
      <h1>My Crypto App</h1>
      <button onClick={handleShowWidget}>
        Buy Crypto
      </button>
    </div>
  );
}

CDN Usage

<!DOCTYPE html>
<html>
<head>
  <title>Crypto App</title>
</head>
<body>
  <button id="buyCrypto">Buy Crypto</button>

  <script src="https://cdn.jsdelivr.net/npm/@busha/ramp-web-sdk/dist/index.umd.js"></script>
  <script>
    const { BushaRampWidget } = window.BushaRampWeb;

    const ramp = new BushaRampWidget({
      publicKey: 'your_public_key_here',
      side: 'buy',
      onSuccess: (transaction) => {
        console.log('Success:', transaction);
      },
      onClose: () => {
        console.log('Widget closed');
      },
    });

    document.getElementById('buyCrypto').addEventListener('click', () => {
      ramp.show();
    });
  </script>
</body>
</html>

⚙️ Configuration

BushaRampWidget Options

| Option | Type | Required | Description | |--------|------|----------|-------------| | publicKey | string | ✅ | Your Busha public key | | side | 'buy' \| 'sell' | ✅ | Transaction type | | onSuccess | function | ❌ | Callback when transaction succeeds | | onClose | function | ❌ | Callback when widget closes | | onError | function | ❌ | Callback when an error occurs | | amount | number | ❌ | Pre-filled amount | | currency | string | ❌ | Default currency (e.g., 'USD') | | cryptoCurrency | string | ❌ | Default crypto currency (e.g., 'BTC') |

Methods

| Method | Description | |--------|-------------| | show() | Display the widget | | close() | Close the widget and trigger onClose callback |

🔧 Development

Prerequisites

  • Node.js 18+
  • Yarn or npm

Setup

# Clone the repository
git clone https://github.com/busha-labs/busha-ramp-web-sdk.git
cd busha-ramp-web-sdk

# Install dependencies
yarn install

# Start development server
yarn dev

# Run tests
yarn test

# Build for production
yarn build

Testing

# Run tests
yarn test

# Run tests in watch mode
yarn test:watch

# Run tests with UI
yarn test:ui

🚀 Releasing

Automated Release

# Patch release (bug fixes)
./scripts/release.sh patch

# Minor release (new features)
./scripts/release.sh minor

# Major release (breaking changes)
./scripts/release.sh major

Manual Release

# Update version in package.json
# Create and push tag
git tag v1.0.0
git push origin v1.0.0

The GitHub Actions workflow will automatically:

  1. Run tests
  2. Build the package
  3. Publish to npm

📄 License

MIT License - see LICENSE file for details.

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📞 Support

🔗 Links