Stripe affiliate tracking without the MRR tax

First-party 2 KB attribution script, verified Stripe webhooks, exact integer-cent commission math, automatic refund clawbacks, and a live partner ledger

First-party installshair.js · 2.1 KB
<!-- 1. Drop into <head> -->
<script
  src="/shair.js"
  data-program="pulseflow"
  async
></script>

// 2. Pass referral to Stripe Checkout
const params = window.Shair.getCheckoutParams();
Self-hosted $0 · Cloud Pro $29/mo/shair.js
Stripe commission ledgerBigInt integer cents · HMAC-SHA256
invoice.paid?via=sarah
Signature verified · idempotent event · clean fraud check
+$89.70
30% of $299.00
charge.refunded?via=elena
33.3% partial refund · proportional clawback applied
−$30.00
$60.00 net due
self_referral_email?via=kyle
Canonicalized +alias email match rejected before accrual
$0.00
Blocked

Interactive pipeline preview

Four deterministic steps from click to payout

Run live in webhook simulator
Step 01·?via=sarah

Visitor lands via ?via=sarah

The 2.1 KB first-party script validates the referral handle against strict alphanumeric rules to prevent cookie injection, then records the click.

GET https://yourapp.com/?via=sarah
-> <script src="https://shair.yourapp.com/shair.js" data-program="pulseflow">
-> POST /api/track/click  { code: "sarah", visitorId: "vis_8k39a2" }
<- 201 Created  { attributed: true, cookieWindowDays: 60 }
Select any step to inspect exact HTTP and ledger payloads

Live savings calculator

Stop paying a tier penalty when affiliates perform

Rewardful, Tolt, and FirstPromoter move you from $49/mo to $199/mo as affiliate MRR grows. Shair costs $0 self-hosted or a flat $29/mo on Cloud Pro at any volume.

$18,000/mo
$2k$15k$30k$60k
30%
10%20%30%40%
Monthly partner commissions$5,400/mo
Net founder revenue kept$12,600/mo
Shair platform cut$0/mo (0%)
Annual savings, self-hosted vs Tolt
$1,188/yr
vs Rewardful: $1,788/yr saved
Annual savings, Cloud Pro vs Tolt
$840/yr
Flat $29/mo with no MRR tier caps
PlatformMonthlyAnnualSelf-hostable
Shair Community$0$0Yes (Docker)
Shair Cloud Pro$29$348Managed / EE
Rewardful$149$1,788No
Tolt$99$1,188No
FirstPromoter$149$1,788No

Integer-cent precision

BigInt half-up rounding in cents with proportional refund clawbacks and zero floating-point drift.

HMAC and replay defense

Constant-time stripe-signature verification, 5-minute timestamp tolerance, and atomic event deduplication.

Built-in anti-fraud

Blocks +alias self-referrals, flags same-company corporate domains, and catches IP click velocity spikes.

One-click payout CSV

Settle affiliate payout batches atomically and export formula-safe CSVs for Wise, PayPal, and Stripe Connect.

Open-core pricing

Self-host for $0 or run managed for $29/mo

Self-hosted communityAGPL-3.0
$0per month · 0% revenue cut

Deploy with SQLite or PostgreSQL via Docker Compose in under a minute.

  • Unlimited programs, affiliates, clicks, and conversions
  • 2 KB first-party /shair.js attribution script
  • Stripe HMAC webhooks and proportional refund clawbacks
  • Self-referral, corporate domain, and IP spike anti-fraud
  • Partner portal (/portal) and public signup (/join)
  • Wise, PayPal, and Stripe CSV payout export
Open local workspace
Shair Cloud Pro0% revenue cut
$29per month flat · any MRR volume

Managed PostgreSQL hosting plus commercial ee/ modules for scaling SaaS teams.

  • Everything in Self-hosted community
  • White-label partner portal without Shair footer
  • Custom partner domain (partners.yourapp.com)
  • Automated Stripe Connect and Wise payouts
  • Multi-program team roles for Owner and Finance
  • Managed backups, audit log, and priority support
Inspect Pro and self-host setup