Skip to main content

JavaScript library

As of Oct 2025

The old, deprecated c2pa-js repository is now in c2pa-js-legacy. If you need to work with C2PA metadata in the browser, use the libraries in this repository instead of the old library.

The c2pa-js repository is a monorepo containing the following libraries published for production use:

  • c2pa-web: Library for C2PA metadata in the browser. Import and use this package in browser client JavaScript code.
  • c2pa-wasm: WebAssembly bindings for c2pa-rs, built with wasm-bindgen. They power c2pa-web; most applications should use c2pa-web instead of calling the bindings directly.
  • c2pa-types: TypeScript types generated from c2pa-rs structs for use by c2pa-web and c2pa-node-v2.

For video walkthroughs on using the JavaScript SDK, see the following lessons from the Content Credentials Foundations course: