Skip to main content

JavaScript examples

Warning

This is documentation for the deprecated legacy JavaScript library, c2pa-js-legacy. This library will no longer be updated or supported.

The new JavaScript web library is in the https://github.com/contentauth/c2pa-js repository. If you're starting a new application, use the new library instead.

JavaScript examples are in contentauth/c2pa-js-examples. The examples are mirrored from the examples directory in the contentauth/c2pa-js repository.

note

The JavaScript library uses a number of modern JavaScript technologies such as WebAssembly (Wasm) and Web Workers. To understand the JavaScript examples, you should be familiar with these technologies, TypeScript and at least one bundler tool such as Webpack, Rollup, or Vite.

Additionally, the JavaScript examples use TypeScript for type safety. |