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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@xmrd-labs/switch

v0.2.2

Published

Interledger wallet enabling lightning-fast crypto swaps and complete self-custody of assets

Downloads

3

Readme

Switch swap screen cropped

GitHub release GitHub All Releases GitHub Discourse users Twitter Follow

Switch is an Interledger wallet enabling lightning-fast crypto swaps and complete self-custody of assets.

Load funds onto "cards," swap between them, and withdraw at your leisure. Only you have access to these funds, even while trading!

Get Started

1. Download Switch

» Mac | Windows | Linux «

Switch will prompt you whether you want to use testnet mode or mainnet mode. To get started, we suggest selecting testnet (you can always switch to mainnet mode later).

2. Add cards

Add and deposit to a minimum of two cards to enable swapping. To get started on testnet, ETH, DAI or XRP are the simplest.

  • ETH, DAI: Add an Ethereum card using a private key. You can generate a private key and address here. Then, load the address with testnet ether from the Kovan testnet faucet.
  • XRP: Add an XRP card using a XRP secret. If you don't have a testnet account, generate a prefunded account and secret from the XRP testnet faucet.
  • BTC: To add a Lightning card, follow these instructions.

Switch will prompt you to securely deposit funds onto your cards as you add them. Only you have access to these funds.

3. Swap!

Select a card to send, then click "Swap" and choose a card to receive. Enter the desired amount, and exchange crypto in seconds!

Demo of XRP to ETH swap

How It Works

Fast, non-custodial trading

When trading between assets, Switch will first send a very small amount of the source asset, the equivalent of $0.10, to the exchange party known as the connector. Then, the connector sends some amount of the destination asset. If the connector upholds its side of the bargain and the exchange rate it provides is decent, we repeat the process. And again. And again; many times per second.

This is the model of streaming micropayments: moving value bit-by-bit until the entire payment or trade is complete.

If at any point the connector stops sending or sends us too little of the destination asset, we halt the exchange. This enables non-custodial trading, since the counterparty risk is merely a few cents, and comparable to that of atomic swaps.

Payment channels enable these payments to be cheap and very fast.

For this beta release, Switch uses a connector operated by Kava. But coming soon, we'll roll out support for user-defined connectors, and all the tools, infrastructure, and docs necessary to operate one yourself.

FAQs

How to setup swaps on Lightning

What is layer 2? What are payment channels?

What is Interledger?

Developer Installation

> git clone https://github.com/kgcdream2019/switch
> cd switch
> npm install
> npm run serve

Roadmap

  • [x] Integration of the top three cryptocurrencies
  • [x] Mainnet
  • [x] Cards for ERC-20 tokens, such as DAI
  • [ ] Custom connectors
  • [ ] Peer-to-peer payments

License

Copyright © Kava Labs, Inc. All rights reserved.

Licensed under the Apache v2 License.