Skip to content

@consentify/core v0.1.0

Latest

Choose a tag to compare

@RomanDenysov RomanDenysov released this 07 Oct 12:14
· 1 commit to main since this release

@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