Version 0.1.0
Initial release of Zest cookie consent toolkit
The first public release of Zest - a lightweight, zero-dependency cookie consent toolkit.
Features
Core Functionality
- Intelligent Script Blocking - Automatically detect and block tracking scripts
- Cookie Interception - Intercept
document.cookieoperations - Storage Interception - Proxy
localStorageandsessionStorage - Consent Management - Track user consent across four categories
Blocking Modes
manual- Only block explicitly tagged scriptssafe- Block known major trackers (Google Analytics, Facebook, GTM)strict- Extended tracker blocking (Hotjar, Mixpanel, Segment, etc.)doomsday- Block all third-party scripts
Privacy Controls
- Respect Do Not Track (DNT) browser signal
- Respect Global Privacy Control (GPC)
- Configurable DNT behavior (reject, preselect, ignore)
UI Components
- Consent banner with customizable position
- Settings modal with per-category toggles
- Floating widget for reopening settings
- Light/Dark/Auto theme support
- Accent color customization
Internationalization
- 12 built-in languages (EN, DE, ES, FR, IT, PT, NL, PL, UK, RU, JA, ZH)
- Auto-detection from HTML lang attribute
- Custom label overrides
Developer Experience
- Simple configuration via
window.ZestConfigor data attributes - Comprehensive event system
- Callback support for consent lifecycle
- Programmatic API for full control
Installation
npm install @freshjuice/zestOr via CDN:
<script src="https://unpkg.com/@freshjuice/zest"></script>Bundle Size
- Full bundle (all languages): ~14KB gzipped
- Single language: ~9KB gzipped
