# FidesJS: JavaScript SDK for Fides

FidesJS is a JavaScript SDK to integrate Fides consent into any website or app! Commonly referred to as a [Consent Management Platform (CMP)](/content/docs/consent/concepts/fundamentals#consent-management-platform-cmp/index.html), FidesJS includes all the UI components (banners, modals, etc.), state management, and utility functions you need to collect consent & enforce data privacy in your application.

For example, FidesJS is used to:

- automatically configure the current user session with the applicable default consent preferences for their location (e.g. opt-out of data sales, opt-in to analytics, etc.)
- show a consent UI component (banner, modal, etc.) to the current user with the applicable privacy notices for them to opt-in, opt-out, etc.
- store the current user's consent preferences in a first-party cookie to remember their choices in future sessions
- expose the current user's consent preferences via a simple `Fides.consent` JavaScript API to integrate consent into your own application
- dispatch events on the global `window` (e.g. `FidesUpdated`, `FidesUIShown`) to easily sync consent changes to your application in real-time based on the current user's actions
- integrate the current user's consent to other scripts via integrations with Google Tag Manager, IAB TCF, etc.
- ...and more!

See [Fides](/content/docs/privacy-center-fidesjs/fidesjs/reference/interfaces/Fides/index.html) for how to use the `window.Fides` JavaScript API, [FidesOptions](/content/docs/privacy-center-fidesjs/fidesjs/reference/interfaces/FidesOptions/index.html) for supported options to customize its behavior, and [FidesEvent](/content/docs/privacy-center-fidesjs/fidesjs/reference/interfaces/FidesEvent/index.html) for how to use `window.addEventListener(...)` to subscribe to custom Fides events for real-time updates.

## Enumerations [Permalink for this section](/content/docs/privacy-center-fidesjs/fidesjs/reference/README#enumerations/index.html)

- [PrivacyNoticeRegion](/content/docs/privacy-center-fidesjs/fidesjs/reference/enumerations/PrivacyNoticeRegion/index.html)

## Interfaces [Permalink for this section](/content/docs/privacy-center-fidesjs/fidesjs/reference/README#interfaces/index.html)

- [FidesEvent](/content/docs/privacy-center-fidesjs/fidesjs/reference/interfaces/FidesEvent/index.html)
- [FidesLocaleEvent](/content/docs/privacy-center-fidesjs/fidesjs/reference/interfaces/FidesLocaleEvent/index.html)
- [FidesExperienceConfig](/content/docs/privacy-center-fidesjs/fidesjs/reference/interfaces/FidesExperienceConfig/index.html)
- [FidesOptions](/content/docs/privacy-center-fidesjs/fidesjs/reference/interfaces/FidesOptions/index.html)
- [Fides](/content/docs/privacy-center-fidesjs/fidesjs/reference/interfaces/Fides/index.html)
