ConsentOS — a privacy-first cookie consent management platform. Self-hosted, source-available alternative to OneTrust, Cookiebot, and CookieYes. Full standards coverage (IAB TCF v2.2, GPP v1, Google Consent Mode v2, GPC, Shopify Customer Privacy API), multi-tenant architecture with role-based access, configuration cascade (system → org → group → site → region), dark-pattern detection in the scanner, and a tamper-evident consent record audit trail. This is the initial public release. Prior development history is retained internally. See README.md for the feature list, architecture overview, and quick-start instructions. Licensed under the Elastic Licence 2.0 — self-host freely; do not resell as a managed service.
34 lines
800 B
JavaScript
34 lines
800 B
JavaScript
import typescript from '@rollup/plugin-typescript';
|
|
import terser from '@rollup/plugin-terser';
|
|
|
|
export default [
|
|
// consent-loader.js — lightweight synchronous bootstrap (~2KB gzipped)
|
|
{
|
|
input: 'src/loader.ts',
|
|
output: {
|
|
file: 'dist/consent-loader.js',
|
|
format: 'iife',
|
|
name: 'CmpLoader',
|
|
sourcemap: false,
|
|
},
|
|
plugins: [
|
|
typescript({ tsconfig: './tsconfig.json', declaration: false }),
|
|
terser(),
|
|
],
|
|
},
|
|
// consent-bundle.js — full banner + consent engine
|
|
{
|
|
input: 'src/banner.ts',
|
|
output: {
|
|
file: 'dist/consent-bundle.js',
|
|
format: 'iife',
|
|
name: 'CmpBanner',
|
|
sourcemap: true,
|
|
},
|
|
plugins: [
|
|
typescript({ tsconfig: './tsconfig.json', declaration: false }),
|
|
terser(),
|
|
],
|
|
},
|
|
];
|