explaingit

reyrinbaf/splitpay

Analysis updated 2026-05-18

0JavaScriptAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

A backend-free JavaScript SDK that adds a bill-splitting button to Indian apps, encoding UPI split details entirely inside a shareable link.

Mindmap

mindmap
  root((SplitPay))
    What it does
      Split bill button
      Generates shareable link
      Friends pay via UPI apps
      No backend needed
    Tech stack
      JavaScript
      React
      UPI
    Use cases
      Add split payment to a checkout page
      Split group order bills over WhatsApp
      Generate UPI split links from server code
    Audience
      Developers building India-focused apps
      Vibe coders
    Limitations
      INR only
      Max 8 people per split
      No automatic payment confirmation

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add a one-tap bill split button to a checkout or order confirmation page.

USE CASE 2

Let friends pay their share of a group order directly through their UPI app.

USE CASE 3

Generate or decode split payment links from custom or server-side code with zero React dependency.

What is it built with?

JavaScriptReactUPI

How does it compare?

reyrinbaf/splitpay00kaku/gallery-slider-block0xkinno/vellum
Stars00
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-05-19
MaintenanceDormant
Setup difficultyeasyeasyhard
Complexity2/52/54/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Only supports Indian UPI payments in rupees, capped at 8 people per split.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

SplitPay is a small software kit that lets developers add a bill splitting button to Indian consumer apps, such as checkout pages or group order screens, so users can ask friends to pay their share through UPI, India's popular instant payment system. The unusual part is that it needs no backend server, no database, and no API keys at all. All the information about a split, like the amount, who is collecting it, and the description, is packed directly into the web link itself, so nothing has to be stored anywhere. The flow works like this: someone taps a split payment button on a checkout page, enters their own UPI ID, and chooses how many people to split the bill with. This generates one shareable link they can send over WhatsApp or any messaging app. Each friend who opens the link sees their share of the amount and pays it directly through an app like GPay, PhonePe, or Paytm. The money moves straight from friend to friend, this project never touches or routes any of the payment itself. Technically, the split details are encoded as a small chunk of text appended after a hash symbol in the URL. Browsers never send that part of a URL to any server, so the information stays private between the person who created the link and the person who opens it. Integration for developers is meant to be simple: one component to trigger the split flow, and one page in their app that automatically reads and displays the split details from the link. The kit also exposes plain functions, with no dependencies on React or a browser, for anyone who wants to generate or read these links from custom code, including on a server. For teams who want an optional way to track who has paid, there is a separate server template they can deploy themselves. The documented limits are that it only supports Indian rupees, splits are capped at eight people, and there is no automatic way to confirm a friend actually paid, since it relies on the UPI app's own notification. The project is released under the MIT license.

Copy-paste prompts

Prompt 1
Show me how to add the SplitPayTrigger component to my checkout page with a custom theme.
Prompt 2
Help me set up the SplitPayRecipientPage route in my app so split links work.
Prompt 3
Explain how SplitPay encodes payment split data into a URL without using a server.
Prompt 4
Walk me through using the core encodeSplitUrl and decodeSplitUrl functions outside of React.

Frequently asked questions

What is splitpay?

A backend-free JavaScript SDK that adds a bill-splitting button to Indian apps, encoding UPI split details entirely inside a shareable link.

What language is splitpay written in?

Mainly JavaScript. The stack also includes JavaScript, React, UPI.

What license does splitpay use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is splitpay to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is splitpay for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.