@consentify/core v0.1.0 π
Initial release of @consentify/core - A minimal, headless cookie consent SDK for modern web applications.
β¨ Features
- π― Headless Architecture - Complete control over your UI
- π TypeScript-First - Full type safety with excellent IntelliSense
- π SSR-Safe - Server and client APIs for Next.js, Remix, etc.
- π¦ Zero Dependencies - Only 6.3 KB gzipped
- π Policy Versioning - Automatic snapshot invalidation on policy changes
- πΎ Flexible Storage - Cookie-based with optional localStorage mirror
- β GDPR & CCPA Ready - Built for compliance
- π¨ Custom Categories - Define your own consent categories
π₯ Installation
npm install @consentify/core
# or
pnpm add @consentify/core
# or
yarn add @consentify/coreπ Quick Start
import { createConsentify, defaultCategories } from '@consentify/core';
const manager = createConsentify({
policy: {
identifier: 'policy-v1',
categories: defaultCategories,
},
});
// Client-side
manager.client.set({ analytics: true });
const canAnalytics = manager.client.get('analytics');
// Server-side (SSR)
const state = manager.server.get(request.headers.get('cookie'));π Documentation
π Support
If you find this project useful:
- β Star this repository
- GitHub Sponsors
- Ko-fi
π License
MIT Β© 2025 Roman Denysov
Full Changelog: https://github.com/RomanDenysov/consentify/commits/core-v0.1.0