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
Error to trace to log to deploy. One click. No SSH. Icon
Error to trace to log to deploy. One click. No SSH.

Catch the cause before the pager goes off.

AppSignal links every error to the trace, the trace to the log, the log to the deploy that shipped it.
Free 30 days.
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

13 hours ago