SafeBanner is an open-source cookie consent banner for indie developers and agencies. Free gives you the banner and Google Consent Mode v2. Pro stops marked analytics and marketing scripts from running before the visitor says yes.
One script tag. No account. No hosted consent database. MIT licensed.
<script src="https://cdn.jsdelivr.net/npm/safebanner/dist/safebanner.js"></script>Using SafeBanner on a client or production site?
Pro stops marked analytics and marketing scripts from running before consent.
Convinced? Get the license key for production and client sites.
Get my license key — $15/moIt shows a cookie banner, stores the visitor's choice in their browser, and sends Google Consent Mode v2 signals automatically. If you upgrade, SafeBanner can also hold marked analytics and marketing scripts until consent is granted.
No build step. Works with any stack.
Colors, position, text. Or use defaults.
Consent stored. Google signals sent automatically.
Audit the code yourself. No black boxes.
Under 10kb gzipped. No external dependencies.
Opt-in by default for non-essential categories. Consent persists. Google gets the signal. Pro can stop marked scripts before approval.
Free tier runs entirely client-side.
Founder note
“I built SafeBanner because the choices were either bloated enterprise CMPs or abandoned cookie banners. This gives you the small, understandable version that developers actually want to ship.”
Open source code, live demo, and docs are all public before you pay.
SafeBanner handles consent UI and script blocking. It doesn't:
SafeBanner manages consent on the site itself. No hosted consent records, no data processor relationship, no subprocessor complexity.
You stay in control. SafeBanner exposes consent state via API. Check hasConsentFor('analytics') before loading your trackers, or use Pro script blocking to activate marked scripts after consent.
Built for indie developers and agencies who want OneTrust-level enforcement without the OneTrust bill. Free gives you a working banner with Google Consent Mode v2. Pro adds actual script blocking, consent expiry, and cookie cleanup.
$0
$15/mo
SafeBanner helps you capture consent choices and send Google Consent Mode v2 signals, but it is not legal advice and it does not act as your hosted system of record. Consent stays on the site itself, not in a SafeBanner dashboard.
Yes. Free gives you a working consent banner with Google Consent Mode v2 — no limits, no account. Pro ($15/mo) can block marked analytics and marketing scripts until approval, re-prompt after expiry, remove branding, and customize everything. Nothing in Free stops working if you never upgrade.
No code changes are required for Free beyond adding the SafeBanner script before your Google tags. For Pro script blocking, you only mark the scripts you want SafeBanner to hold until consent.
Yes. MIT license. Run it on your own infra.
Yes. It's a single script tag. Works everywhere.
Your subscription stops renewing. SafeBanner Free still works as the banner and consent-signaling layer. Pro-only features like license-gated script blocking and branding removal require an active subscription.
Consent is stored in the user's browser. SafeBanner does not store hosted consent records or act as a compliance system of record — that keeps your setup simple and your liability low. If you need server-side audit trails, your own backend is the right place to capture and own that data.
Start with the live demo if you're comparing options. Install Free if you just need the banner. Upgrade when you need actual script blocking.