Developer-first CMP for JavaScript: cookie banner, consent manager, preferences centre. GDPR ready with minimal setup and rich customization
npm install c15t







Developer-first CMP for JavaScript: cookie banner, consent manager, preferences centre. GDPR ready with minimal setup and rich customization
- Developer-First Design: Easy integration with minimal configuration
- Framework Agnostic: Works across JavaScript frameworks
- GDPR Compliance: Built-in support for privacy regulations
- Customizable Consent Management: Flexible consent preferences
- Server-Side Rendering Support: Compatible with SSR frameworks
- Internationalization: Built-in translation support
- JavaScript or TypeScript project
- Node.js 18.17.0 or later
- npm, pnpm, or yarn package manager
- A hosted c15t instance (free sign-up) or self-hosted deployment
Easiest setup with @c15t/cli:
``bash`Generate schema and code
pnpm dlx @c15t/cli generateAlternatives:
npx @c15t/cli generate
bunx --bun @c15t/cli generate
The CLI will:
- Install necessary packages
- Configure your c15t instance
- Set up environment variables
- Add consent management components to your app
`bash`
pnpm add c15t
To manually install, follow the guide in our docs – manual setup.
1. Import the c15t core library
2. Configure your consent preferences
3. Manage user consent across your application
4. Customize consent banners and preference centers
5. For full implementation details, see the JavaScript quickstart docs
`typescript
// Example usage
import { ConsentManager } from 'c15t'
const consentManager = new ConsentManager({
// Your configuration
})
``
For further information, guides, and examples visit the reference documentation.
- Join our Discord community
- Open an issue on our GitHub repository
- Visit consent.io and use the chat widget
- Contact our support team via email support@consent.io
- We're open to all community contributions!
- Read our Contribution Guidelines
- Review our Code of Conduct
- Fork the repository
- Create a new branch for your feature
- Submit a pull request
- All contributions, big or small, are welcome and appreciated!
If you believe you have found a security vulnerability in c15t, we encourage you to _responsibly disclose this and NOT open a public issue_. We will investigate all legitimate reports.
Our preference is that you make use of GitHub's private vulnerability reporting feature to disclose potential security vulnerabilities in our Open Source Software. To do this, please visit https://github.com/c15t/c15t/security and click the "Report a vulnerability" button.
- Please do not share security vulnerabilities in public forums, issues, or pull requests
- Provide detailed information about the potential vulnerability
- Allow reasonable time for us to address the issue before any public disclosure
- We are committed to addressing security concerns promptly and transparently
GNU General Public License v3.0
---
Built with ❤️ by the consent.io team