How to disable telemetry for various open source tools and libraries

Posted . Visible to the public.

If you're lucky DO_NOT_TRACK=1 opts you out Show archive.org snapshot of CLI telemetry - it's not widely adopted. When you're using any of the libraries below, I'd rather opt out explicitly:

Yarn

https://yarnpkg.com/advanced/telemetry Show archive.org snapshot (Since: Version 2.2 Show archive.org snapshot )

Disable for a project:

# .yarnrc.yml
---
enableTelemetry: false # Relevant from yarn v2.2

Disable on your machine:

yarn config set --home enableTelemetry 0

Next.js

https://nextjs.org/telemetry Show archive.org snapshot

export NEXT_TELEMETRY_DISABLED=1

Prisma

https://www.prisma.io/docs/orm/tools/prisma-cli#telemetry Show archive.org snapshot

export CHECKPOINT_DISABLE=1

Angular

https://angular.io/cli/analytics Show archive.org snapshot

Note: The default here is off, they are collecting data only after you opt into that.

ng analytics --global disable

Storybook

https://storybook.js.org/docs/configure/telemetry Show archive.org snapshot

npm run storybook -- --disable-telemetry
npm run storybook -- --disable-crash-reports

export STORYBOOK_DISABLE_TELEMETRY=1
export STORYBOOK_ENABLE_CRASH_REPORTS=0

Turborepo (turbo)

https://turbo.build/repo/docs/telemetry Show archive.org snapshot

turbo telemetry disable
export TURBO_TELEMETRY_DISABLED=1
export DO_NOT_TRACK=1

Nuxt

https://github.com/nuxt/telemetry Show archive.org snapshot

// nuxt.config
export default {
  telemetry: false
}
npx @nuxt/telemetry disable --global
export NUXT_TELEMETRY_DISABLED=1

Gatsby

https://www.gatsbyjs.com/docs/telemetry/ Show archive.org snapshot

gatsby telemetry --disable
export GATSBY_TELEMETRY_DISABLED=1

Astro

https://astro.build/telemetry/ Show archive.org snapshot

npx astro telemetry disable
export ASTRO_TELEMETRY_DISABLED=1
Michael Leimstädtner
Last edit
Dominik Schöler
License
Source code in this card is licensed under the MIT License.
Posted by Michael Leimstädtner to makandra dev (2025-01-31 07:22)