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

@splashprotocol/sdk

v1.0.71

Published

> ⚠️ **LEGACY SDK ALERT** > This is a legacy SDK currently used by the existing Splash UI. This version is maintained for compatibility with the current production interface but may not include the latest protocol features and optimizations. > > **For t

Downloads

462

Readme

Splash Protocol SDK

⚠️ LEGACY SDK ALERT
This is a legacy SDK currently used by the existing Splash UI. This version is maintained for compatibility with the current production interface but may not include the latest protocol features and optimizations.

For the latest features and improvements, please use the v2.0 branch.

Overview

The Splash Protocol SDK is a TypeScript library for interacting with the Splash Protocol on Cardano. It provides comprehensive tools for DeFi operations including liquidity provision, trading, and pool management.

Features

  • Pool Operations: Create and manage CFMM, Weighted, and Stable pools
  • Trading: Spot orders and trade execution
  • Liquidity Management: Deposit and redeem operations
  • Data Access: Real-time protocol statistics, charts, and market data
  • Wallet Integration: CIP-30 compatible wallet support
  • Transaction Building: Complete transaction construction and signing utilities

Installation

yarn add @splashprotocol/[email protected]

Quick Start

import { SplashApi, TxBuilderFactory } from '@splashprotocol/sdk';

// Initialize API
const api = new SplashApi();

// Get protocol statistics
const stats = await api.getProtocolStats();

// Initialize transaction builder
const txBuilder = new TxBuilderFactory(networkContext, protocolParams);

Core Components

API Layer

  • SplashApi: Main API interface for protocol data
  • Asset Metadata: Token information and metadata
  • Chart Data: Historical price and volume data
  • Order Book: Real-time trading data

Models

  • Pools: CFMM, Weighted, and Stable pool implementations
  • Orders: Trade and liquidity order management
  • Currencies: Multi-asset currency handling
  • Transactions: Transaction building and validation

Utilities

  • Data Conversion: CBOR, hex, and string utilities
  • Math Operations: Precision arithmetic for DeFi calculations
  • Address Handling: Cardano address utilities
  • Fee Calculation: Transaction and executor fee estimation

Pool Types

CFMM Pools

Constant Function Market Maker pools for standard trading pairs.

Weighted Pools

Multi-asset pools with configurable weight ratios.

Stable Pools

Optimized pools for stable asset pairs with minimal slippage.

Transaction Operations

  • Spot Orders: Market and limit order execution
  • Liquidity Operations: Add/remove liquidity from pools
  • Pool Creation: Deploy new trading pools
  • Cancel Operations: Cancel pending orders

Development

Build

yarn build

Test

yarn test

Watch Mode

yarn dev:code
yarn dev:test

Documentation

yarn doc

Network Support

  • Mainnet: Production Cardano network
  • Testnet: Development and testing environment

Dependencies

  • Cardano Multiplatform Library
  • CBOR encoding/decoding
  • Hash utilities
  • Mathematical operations

License

ISC

Version

Current version: 1.0.70


Migration to v2.0

For the latest SDK version and new features, please migrate to the v2.0 branch which includes:

  • Latest protocol features and optimizations
  • Improved performance and stability
  • Updated API interfaces
  • Enhanced developer experience

Check for updated releases and migration guides when transitioning from this legacy version.