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.
Categories
Web Development FrameworksLicense
MIT LicenseFollow Neiki's Cookie Banner
Other Useful Business Software
Our Free Plans just got better! | Auth0
You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Neiki's Cookie Banner!