npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@synapxlab/cookie-consent

v2.1.3

Published

Cookie Consent GDPR — Free, Multilingual & Integrations (Pure JavaScript, Zero Dependencies)

Downloads

104

Readme

🍪 Cookie Consent

npm version License: MIT Downloads

Bannière de consentement aux cookies conforme RGPD/CNIL, open source et gratuite.

Alternative européenne open-source, sans dépendance aux GAFA, à Cookiebot® et Axeptio® (non affiliée).

🎮 Voir la démo en direct

✨ Fonctionnalités

  • Conformité RGPD native - Articles 6, 7, 13 respectés
  • Blocage automatique - Détecte et bloque les scripts tiers
  • 16 services pré-configurés - GA, Facebook Pixel, Hotjar...
  • Logging des consentements - Preuve juridique (Art. 7.1)
  • 7 langues - FR, EN, ES, DE, IT, NL, PT
  • 0 dépendance - ( Vanilla JS ≈ 66 Ko minifié) (~21 Ko gzippé)
  • Thèmes personnalisables - CSS variables
  • Made in France 🇫🇷

🚀 Installation rapide

Via npm

npm install @synapxlab/cookie-consent
import '@synapxlab/cookie-consent';

window.CookieConsent.init({
  statistics: {
    google_analytics_key: 'G-XXXXXXXXX'
  }
});

Via CDN

<script src="https://unpkg.com/@synapxlab/cookie-consent/dist/cookie.js"></script>

📖 Documentation

📚 Documentation complète

Guides rapides :

Intégrations :

🎯 Exemple complet

window.CookieConsent.init({
  logger: {
    enabled: true,
    apiKey: 'sk-live-xxxxx'
  },
  statistics: {
    google_analytics_key: 'G-XXXXXXXXX'
  },
  marketing: {
    facebook_pixel: {
      key: 'YOUR-PIXEL-ID',
      track: 'PageView'
    }
  }
});

🛡️ Conformité RGPD/CNIL

✅ Consentement préalable
✅ Refus aussi simple que l'acceptation
✅ Information claire par finalité
✅ Preuve horodatée (logging)
✅ Révocable à tout moment
✅ Expiration 6 mois (recommandation CNIL)

📋 Documentation conformité complète

🔑 Espace membre & Multi-sites

💼 Solution multi-clients : Idéale pour les agences web et développeurs freelances.

Connectez-vous sur https://synapx.fr/sdk/cookie_consent/ pour :

  • Gérer plusieurs sites depuis un seul compte
  • Générer des clés API dédiées par client/domaine
  • Auto-configurer le code JavaScript pour chaque projet
    • Services pré-configurés (Analytics, Pixels, Chat...)
    • Configuration complète exportable
    • Gestion centralisée des logs de consentement

Chaque site client dispose de sa propre configuration isolée et sécurisée.

💰 Tarification

| Volume/mois | 0 - 300 | 301 - 10K | 10K - 100K | 100K - 500K | 500K - 1.5M | 1.5M+ | |-------------|----------------|-------------|--------------|--------------|--------------|------------------| | Prix | GRATUIT 🎁 | 10€ | 25€ | 54€ | 99€ | Nous contacter |

La bannière est gratuite. Seul le logging est payant au-delà de 300/mois.

🌍 Langues supportées

| Langue | Code | Statut | |--------|------|--------| | 🇫🇷 Français | fr | ✅ | | 🇬🇧 English | en | ✅ | | 🇪🇸 Español | es | ✅ | | 🇩🇪 Deutsch | de | ✅ | | 🇮🇹 Italiano | it | ✅ | | 🇳🇱 Nederlands | nl | ✅ | | 🇵🇹 Português | pt | ✅ |

📖 Guide i18n

🔧 API JavaScript

// Ouvrir la bannière
window.CookieConsent.open();

// Réinitialiser
window.CookieConsent.reset();

// Récupérer les préférences
const prefs = window.CookieConsent.getPreferences();

// Vérifier un consentement
const hasStats = window.CookieConsent.hasConsent('statistics');

// Écouter les changements
document.addEventListener('cookieConsentChanged', (event) => {
  console.log(event.detail.preferences);
});

🤝 Contribuer

Les contributions sont les bienvenues !

📝 Licence

MIT © SynapxLab

🔗 Liens

📧 Support


🇪🇺 Solution européenne open source | 🇫🇷 Développé en France