Zest - Lightweight Cookie Consent Toolkit
A lightweight, zero-dependency cookie consent toolkit for GDPR/CCPA compliance
Cookie Consent Made Simple
Zest is a lightweight, zero-dependency cookie consent toolkit for GDPR/CCPA compliance. At only ~9KB gzipped, it's a modern alternative to heavier solutions like Klaro (45KB) and Tarteaucitron (80KB).
Key Features
- Lightweight - Only ~9KB gzipped with zero dependencies
- Smart Script Blocking - Automatically blocks tracking scripts until user consents
- Cookie & Storage Interception - Queues blocked operations and replays when consent is granted
- Privacy Signals - Respects Do Not Track (DNT) and Global Privacy Control (GPC)
- 12 Languages - Built-in support for EN, DE, ES, FR, IT, PT, NL, PL, UK, RU, JA, ZH
- Beautiful UI - Customizable banner, modal, and floating widget with dark mode
- Developer-Friendly - Simple API, events, and callbacks for full control
Quick Start
<script>
window.ZestConfig = {
position: 'bottom-right',
theme: 'auto',
accentColor: '#0071e3',
policyUrl: '/privacy-policy'
};
</script>
<script src="https://unpkg.com/@freshjuice/zest"></script>That's it! Zest will automatically show the consent banner and block known tracking scripts.
Documentation
Ready to get started? Check out the Getting Started guide for installation options and basic setup.
License
Zest is open source software licensed under the MIT License.
