Powered by PhonePe Pulse · CDLA-Permissive-2.0

India's payments data,
beautiful by default.

Drop pulsekit.js into any project. Get transaction charts, growth trends and state rankings from real PhonePe Pulse data — zero backend, zero setup.

🪶 Zero dependencies 📡 Fetches live from GitHub 🇮🇳 All 36 states 📅 2018 – 2023 MIT License

Quick Start

Two ways to use pulsekit.js — no npm, no build step required.

🌐 Via CDN (recommended)
<!-- 1. Add the script --> <script src="https://cdn.jsdelivr.net/gh/gorupa/pulsekit.js/pulsekit.js"></script> <!-- 2. Add a container --> <div id="chart"></div> <!-- 3. Call the component --> <script> PulseKit.CategoryChart('#chart', { state: 'delhi', year: 2023, quarter: 1 }); </script>
📦 Self-hosted
# Download the file curl -O https://raw.githubusercontent.com/ gorupa/pulsekit.js/main/pulsekit.js # Then in your HTML <script src="pulsekit.js"></script> <script> PulseKit.GrowthChart('#el', { state: 'maharashtra', metric: 'count' }); </script>

Live Demo

All charts fetch real data from the PhonePe Pulse GitHub repo.

Options

Code


                    

API Reference

Three components, consistent options.

📊 PulseKit.CategoryChart(selector, options)

Horizontal bar chart showing transaction categories for a state in a given quarter.

OptionTypeDefaultDescription
statestring'delhi'State slug e.g. 'maharashtra'
yearnumber20232018 – 2023
quarternumber11, 2, 3 or 4
metricstring'count''count' or 'amount'
📈 PulseKit.GrowthChart(selector, options)

Line chart showing transaction growth across all available quarters for a state.

OptionTypeDefaultDescription
statestring'delhi'State slug
metricstring'count''count' or 'amount'
🏆 PulseKit.StateRanking(selector, options)

Ranked bar chart comparing all Indian states for a given quarter.

OptionTypeDefaultDescription
yearnumber20232018 – 2023
quarternumber11, 2, 3 or 4
metricstring'count''count' or 'amount'
topnumber10How many states to show