New
Apps 6,415Makers 6,394This week 12
Promote your app−30%
frostbanner screenshot 1
4views in
the last 30 days

frostbanner

Beautiful cookie consent banner: blocks trackers, YouTube and Maps until consent

Built with Claude Code

by automatept-ai-pt · Unclaimed · from PTPortugal · added Oct 29, 2026
no ratings0 comments

FrostBanner logo

FrostBanner

Beautiful cookie consent banners that block trackers until visitors agree.
Website · Dashboard · Install · API

Try all 14 styles on a live banner

This repository contains the source code of the FrostBanner widget: the script that shows the banner on your website, blocks scripts and embeds until consent and sends Google Consent Mode v2 signals. It is open so that anyone can check what it does on a visitor's device.

The hosted service at frostbanner.com adds the dashboard (style editor, texts, publishing without touching your site), the consent log with CSV export and domain verification. It has a free plan.

Features

  • 14 styles, 6 shapes (corner card, bottom bar, centred window, pill, chat message, card with image), light, dark and tinted themes, your own colour
  • Blocks scripts until consent: Google Analytics, Meta Pixel and anything else you mark with a category
  • Blocks YouTube, Google Maps and other iframes until consent, with an "Allow and show" placeholder
  • Google Consent Mode v2: ad_storage, ad_user_data, ad_personalization, analytics_storage, functionality_storage, personalization_storage
  • Equal "Accept all" and "Reject all" buttons, granular categories, a floating button to change the choice at any time
  • Removes known analytics and marketing cookies when consent is withdrawn
  • Built-in texts in English and Portuguese, all texts can be replaced
  • No dependencies, about 25 KB minified, Shadow DOM (does not touch your site's CSS)
  • Asks again when the set of categories changes or after maxAgeDays

Install

Create a free account at app.frostbanner.com, add your site and paste one line into your <head>, before any other script:

<script src="https://app.frostbanner.com/v1/fb.js" data-site="YOUR_SITE_ID"></script>

Style, texts, categories and language are set in the dashboard and published without touching your site again. Every decision is stored in your consent log.

Block scripts until consent

Change the script type to text/plain and add its category. FrostBanner runs it only after the visitor accepts that category.

<script type="text/plain" data-category="analytics"
        src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX" async></script>

Inline scripts work the same way.

Block videos and maps until consent

Rename src to data-src and add the category:


https://www.youtube-nocookie.com/embed/VIDEO_ID

Until the visitor accepts, a placeholder with an "Allow and show" button is shown and nothing is loaded from the third party. The category must be listed in categories.

JavaScript API

FrostBanner.open();          // open the preferences
FrostBanner.getConsent();    // { necessary: true, analytics: false, ... } or null
FrostBanner.on('change', function (e) { console.log(e.choices, e.source); });
FrostBanner.reset();         // forget the choice (testing)

Events: change, consentmode, script, embed, log, shown, skip. They are also dispatched on window as frostbanner:<name>.

A link to reopen the preferences, for your footer:

<a href="#" onclick="FrostBanner.open(); return false;">Cookie settings</a>

What is stored on the visitor's device

One first-party cookie and the same value in local storage, both named fb_consent: a random consent ID, the choices, the banner version and the date. With the hosted service a cached copy of the published settings is kept in local storage (fb_cfg_<site>).

When the hosted service is used, each decision is sent to the consent log with the site ID, consent ID, choices, banner version and page address. The server stores the country and a salted hash of the IP address, never the IP itself. Details: Privacy Policy and DPA.

Compliance

FrostBanner helps you stay GDPR-compliant: consent before tracking, equal reject option, granular categories and a record of each decision. You remain responsible for listing the cookies your site uses and for your cookie policy. FrostBanner is not legal advice and is not an IAB TCF / Google-certified CMP, so it is not suitable for sites that show Google AdSense or Ad Manager ads to visitors in the EEA, the UK or Switzerland.

Security

Found a vulnerability? Please email support@frostbanner.com instead of opening a public report. See SECURITY.md.

Build

npx terser src/fb.js -c -m --comments '/^!/' -o dist/fb.min.js

License

The widget is released under the MIT License. The FrostBanner hosted service, dashboard and API are not part of this repository.

Made in Porto by Artem Galyeyev. Questions: support@frostbanner.com

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#cookie-consent · #gdpr