Skip to content

Releases: RomanDenysov/consentify

@consentify/core v0.1.0

07 Oct 12:14

Choose a tag to compare

@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:

📄 License

MIT © 2025 Roman Denysov


Full Changelog: https://github.com/RomanDenysov/consentify/commits/core-v0.1.0