Neiki's Cookie Banner is a lightweight, drop-in cookie consent solution for any website that needs to comply with GDPR, ePrivacy, and similar privacy regulations — without dragging in a heavy third-party SDK or tying your site to a paid SaaS.

It is built from the ground up in vanilla JavaScript with zero dependencies, so it works on any stack — from a static HTML page to a WordPress theme, Laravel app, Next.js site, or anything in between. Drop in one file and you have a fully functional, accessible, themeable consent banner in under a minute.

Features

  • 🍪 GDPR-friendly — granular per-category consent, versioned and timestamped.
  • 🧩 Three layouts — bottom/top Bar, corner Box, or centered Modal.
  • 🎨 Three themes — Light, Dark, or Auto (follows the OS).
  • ⚙️ Custom categories — add, remove, rename, lock, or pre-toggle anything.
  • ⏱ Auto-accept countdown — optional timer with progress bar.
  • 🔌 Lifecycle callbacks — onAccept, onReject, onReady, onChange, onScriptsUnlock.
  • 🧱 Web Component — <neiki-cookie-banner> with full data-* config.
  • 🔁 Versioned consent — bump consentVersion to re-prompt users.
  • ♿ Accessible — ARIA roles, focus trap, keyboard navigation, reduced motion.
  • 🔒 XSS-safe — every user string is escaped before injection.
  • 🪶 Lightweight — vanilla JS, zero dependencies, ~700 lines of CSS.

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Neiki's Cookie Banner

Neiki's Cookie Banner Web Site

Other Useful Business Software
$300 Free Credits to Build on Google Cloud Icon
$300 Free Credits to Build on Google Cloud

New customers can spin up VMs, build with AI, and query data at no cost.

Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Neiki's Cookie Banner!

Additional Project Details

Languages

English

Intended Audience

Developers, End Users/Desktop

User Interface

Web-based

Programming Language

JavaScript

Related Categories

JavaScript Web Development Frameworks

Registered

2026-06-09