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

@unifi-io/unifi-sdk

v0.0.34

Published

A unified Node.js SDK for cross-chain swap and bridge operations, supporting multiple providers and aggregators.

Downloads

84

Readme

Unifi Node SDK

A unified Node.js SDK for cross-chain swap and bridge operations, supporting multiple providers and aggregators.

📦 Packages

Core

Bridge Providers

Swap Providers

Utilities

🚀 Quick Start

Installation

# Install core package
pnpm add @unifi-io/core

# Install specific provider
pnpm add @unifi-io/provider-flowbridge

Usage

import { FlowBridgeProvider } from '@unifi-io/provider-flowbridge';
import { ChainId } from '@unifi-io/core';

// Initialize provider
const bridge = new FlowBridgeProvider({
  apiKey: 'your-api-key',
});

// Get quote
const quote = await bridge.quote({
  fromChainId: ChainId.ETHEREUM,
  toChainId: ChainId.BSC,
  fromToken: { /* ... */ },
  toToken: { /* ... */ },
  amount: '1000000',
  userAddress: '0x...',
});

// Execute bridge
const result = await bridge.bridge({
  quote,
  userAddress: '0x...',
});

🏗️ Architecture

This project uses the Factory Pattern to provide a consistent interface across different bridge and swap providers. See ARCHITECTURE.md for detailed design documentation.

Key benefits:

  • Extensible: Easy to add new providers
  • Consistent: Unified interface across all providers
  • Type-safe: Full TypeScript support
  • Modular: Use only what you need

📚 Documentation

🛠️ Development

Prerequisites

  • Node.js >= 20
  • pnpm >= 9

Setup

# Clone the repository
git clone https://github.com/unifi-io/unifi-node-sdk.git
cd unifi-node-sdk

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Run linter
pnpm lint

# Type check
pnpm typecheck

Project Structure

unifi-node-sdk/
├── packages/
│   ├── core/              # Core abstractions
│   ├── providers/         # Provider implementations
│   └── tx-relay/          # Transaction utilities
├── examples/              # Usage examples
└── .github/               # GitHub workflows

Adding Dependencies

# Add to specific package
pnpm add <package> --filter @unifi-io/provider-flowbridge

# Add to all providers
pnpm add <package> --filter "./packages/providers/*"

# Add to workspace root
pnpm add -D <package> -w

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Adding a New Provider

  1. Create package directory: packages/providers/new-provider/
  2. Extend BridgeProvider or SwapProvider abstract class
  3. Implement required methods
  4. Add tests and documentation
  5. Submit a pull request

See ARCHITECTURE.md for detailed steps.

📄 License

MIT

🔗 Links

🙏 Acknowledgments

This project structure is inspired by modern monorepo best practices and uses: