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

consentify-migrate

v1.0.2

Published

Migrate from Cookiebot to Consentify — removes Cookiebot scripts, detects integrations, and sets up your Consentify domain automatically.

Readme

consentify-migrate

Migrate from Cookiebot to Consentify in one command. The tool scans your codebase, removes Cookiebot scripts, detects your existing tracking integrations, sets up your domain on Consentify, and updates your files automatically.

npx consentify-migrate

No installation needed.


Before you start

You need a free Consentify account. Create one at consentify.app, it only takes a minute.


What it does

Run the command from your project root and it will walk you through the following steps:

1. Detects your framework Supports Next.js, React (CRA/Vite), and vanilla HTML.

2. Finds Cookiebot in your code Scans all source files and reports exactly where Cookiebot references live.

3. Detects your tracking integrations Automatically finds Google Analytics, Google Tag Manager, Facebook Pixel, PostHog, TikTok Pixel, LinkedIn Insight Tag, Snapchat Pixel, HubSpot, Contentsquare, and Intercom — and extracts their IDs directly from your code.

4. Logs you in to Consentify You enter your email and password once. Your credentials are used only to authenticate and are never stored.

5. Creates your domain on Consentify Picks the right team, creates the domain, and configures your detected integrations automatically via the Consentify API.

6. Updates your files Removes Cookiebot script tags and inserts the Consentify script tag in the right place.

At the end you get your script tag and a link to the dashboard where you can customize your banner.


Example output

🍪 Consentify Migration Tool
──────────────────────────────────────────────────

✓ Detected Next.js project

Scanning for Cookiebot…
  • app/layout.tsx — line 12

Detecting existing tracking integrations…
  • Google Analytics (G-ABC1234DEF)
  • Google Tag Manager (GTM-XXXXXX)

──────────────────────────────────────────────────
Log in to Consentify
──────────────────────────────────────────────────
? Email: [email protected]
? Password: ••••••••

✓ Logged in as Your Name
✓ Using team: Acme Corp

? Your domain: example.com
? Privacy policy URL (optional):

  The following integrations will be configured on Consentify:
  • Google Analytics: G-ABC1234DEF
  • Google Tag Manager: GTM-XXXXXX

? Configure these integrations automatically? Yes

──────────────────────────────────────────────────
Setting up Consentify…
──────────────────────────────────────────────────
✓ Domain example.com created
✓ Integrations configured: Google Analytics, Google Tag Manager

──────────────────────────────────────────────────
Updating files…
──────────────────────────────────────────────────
✓ app/layout.tsx | Removed Cookiebot, added Consentify <Script>

✅ Migration complete!

Your Consentify script tag:

  <script src="https://consentify.app/api/gateway?token=your-token"></script>

Supported frameworks

| Framework | Entry file(s) detected | | ---------------------- | ------------------------------ | | Next.js (App Router) | app/layout.tsx | | Next.js (Pages Router) | pages/_document.tsx | | React (CRA / Vite) | public/index.html | | Vanilla HTML | index.html, any .html file |


Supported integrations

Google Analytics, Google Tag Manager, Facebook Pixel, PostHog, TikTok Pixel, LinkedIn Insight Tag, Snapchat Pixel, HubSpot, Contentsquare, Intercom.

Integrations that are detected but whose ID could not be extracted automatically will be flagged with a note to configure them manually in the dashboard.


After the migration

  • Review the file changes in your editor before deploying
  • Customize your consent banner at consentify.app/dashboard/banner
  • Deploy your site and Consentify is live

Requirements