Open Source HotelsEarn 5% from 1.7M hotels

Get your embed code in 30 seconds

Pick your payout method. Receive an instant key + ready-to-paste snippet. We email you the verify link.

Embed anywhere your community lives — 36 ready-made integrations

It does not matter where your audience hangs out: web, messenger, social, work, point-of-sale, voice, AI assistant. Pick one or all.

See every channel live and download the snippet → swarm.impt.io/tools

HomeSelf-hosted hotel widget — zero third-party JS on your domain

Self-hosted hotel widget — zero third-party JS on your domain

Bundle the widget into your build pipeline. Zero third-party script tag on your domain. Full control of CSP, perf budget, design tokens. The API call still hits us — the front-end stays on your CDN.

What this is

self-hosted-hotel-widget addresses developers who care about CSP, third-party JS bloat, supply-chain risk. Pitch: front-end MIT-licensed source, self-host as bundled module.

Why self-host?

How to install

# npm
npm install @impt/oss-hotels-widget

# yarn
yarn add @impt/oss-hotels-widget

# Then in your bundle:
import { mountHotelsWidget } from '@impt/oss-hotels-widget';
mountHotelsWidget(document.getElementById('hotels'), { partnerKey: '...' });

What still calls home

The bundled widget still makes API calls to swarm.impt.io/api/widget/* for inventory and attribution. That endpoint accepts CORS from any origin so your domain is fine — but it is the only network dependency.

SRI & CSP

For organisations that audit JS supply chain: every npm release is signed with a Sigstore-style attestation. SHA-256 hashes published on the GitHub release page so you can pin SRI in CI.

FAQ

Can I run the widget fully offline?

No — you need the API for live inventory and attribution. But you control the front-end JS completely.

Does this affect my commission rate?

No — same 5%. Self-hosting is a deployment choice, not a tier.

What does it cost?

€0 setup, €0 monthly. We pay you 5% on every confirmed booking your link drives.

How long is the cookie?

90 days. Click today, book in 89 days — you still earn the commission.

How is commission paid?

Monthly. Stripe / Wise / IBAN / PayPal / IMPT card / IMPT token. €50 minimum payout. Live tracker at swarm.impt.io/partners/dashboard.

Do my followers pay more?

No — same price as Booking.com or direct. Plus 1 tonne UN-verified CO₂ retired on Ethereum per booking. They lose nothing; you earn 5%.

How big is the inventory?

1.7M hotels in 195 countries via the IMPT.io hotel API. Live availability and pricing.

Is the widget really open source?

Yes — MIT licensed on GitHub. Fork it, self-host the front-end, hit our API for inventory and attribution.

Can I see real-time stats?

Yes — partner dashboard at swarm.impt.io/partners/dashboard shows clicks, bookings, earned, payable.

What's the catch?

There isn't one. We share 5 percentage points of the hotel commission with you and burn 1 t CO₂. Climate-positive affiliate, no upsell, no retainer.

How it works — 3 steps

1

Sign up free

Two-minute partner sign-up at swarm.impt.io. No setup fee.

2

Paste the embed

Copy one line of HTML or pick from 36 channel adapters.

3

Earn on every booking

5% on confirmed stays. 90-day cookie. Paid monthly.