Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This table summarizes the content that this script fetches from other repos.
| `c2pa-cpp` | [c2pa-cpp](https://github.com/contentauth/c2pa-cpp) | C++ library docs. |
| `c2pa-swift` | [c2pa-swift](https://github.com/contentauth/c2pa-swift) | Mobile iOS/Swift library docs. |
| `c2pa-android` | [c2pa-android](https://github.com/contentauth/c2pa-android) | Android library docs. |
| `c2pa-node-v2` | [c2pa-node](https://github.com/contentauth/c2pa-js/tree/main/packages/c2pa-node) | Node library docs (packages/c2pa-node in c2pa-js monorepo). |
| `c2pa-node` | [c2pa-node](https://github.com/contentauth/c2pa-js/tree/main/packages/c2pa-node) | Node library docs (packages/c2pa-node in c2pa-js monorepo). |
| `c2pa-node-example` | [c2pa-node-example](https://github.com/contentauth/c2pa-node-example) | Node example app.|
| `c2pa-python` | [c2pa-python](https://github.com/contentauth/c2pa-python) | Python library docs. |
| `c2pa-python example` | [c2pa-python-example](https://github.com/contentauth/c2pa-python-example) | Python example app. |
Expand Down
File renamed without changes.
Empty file removed docs/c2pa-node/.gitkeep
Empty file.
20 changes: 2 additions & 18 deletions docs/js-landing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,6 @@ id: js-landing
title: JavaScript library
---

:::warning As of Oct 2025
The old, deprecated `c2pa-js` repository is now in [c2pa-js-legacy](https://github.com/contentauth/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](c2pa-js/README.md) repository is a monorepo containing the following libraries published for production use:


- [**c2pa-web**](c2pa-js/packages/c2pa-web/README.md): Library for C2PA metadata in the browser. Import and use this package in browser client JavaScript code.
- [**c2pa-wasm**](c2pa-js/packages/c2pa-wasm/README.md): 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**](c2pa-js/packages/c2pa-types/README.md): TypeScript types generated from c2pa-rs structs for use by c2pa-web and c2pa-node.


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

- [Reading and validating C2PA data with Javascript in the browser](https://learn.contentauthenticity.org/reading-and-validating-content-credentials)
- [Formatting C2PA data for L1 - L3 disclosures](https://learn.contentauthenticity.org/formatting-c2pa-data-for-display)


import Readme from './c2pa-js/README.md';

<Readme components={{ h1: () => null }} />
2 changes: 1 addition & 1 deletion docs/nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Node.js library
custom_edit_path: c2pa-js/edit/main/packages/c2pa-node/README.md
---

import Readme from './c2pa-node-v2/readme.md';
import Readme from './c2pa-js/packages/c2pa-node/README.md';

:::note
The `c2pa-node-v2` repo has been merged into the [c2pa-js](https://github.com/contentauth/c2pa-js) repo.
Expand Down
9 changes: 2 additions & 7 deletions remote-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -421,17 +421,12 @@
{
"repo": "contentauth/c2pa-js",
"path": "packages/c2pa-node/README.md",
"dest": "docs/c2pa-node-v2/readme.md"
"dest": "docs/c2pa-js/packages/c2pa-node/README.md"
},
{
"repo": "contentauth/c2pa-rs",
"path": "docs/supported-formats.md",
"dest": "docs/c2pa-node-v2/supported-formats.md",
"sidebar": {
"category": "c2pa-node",
"label": "Supported media formats",
"order": 1
}
"dest": "docs/c2pa-js/supported-formats.md"
},

{ "_comment": "Mobile libraries - iOS (Swift)" },
Expand Down
24 changes: 21 additions & 3 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,26 @@ const sidebars = {
link: { type: 'doc', id: 'js-landing' },
collapsed: true,
items: [
...getRemoteSidebarItems('c2pa-js'),
{
type: 'doc',
id: 'c2pa-js/packages/c2pa-web/README',
label: 'c2pa-web',
},
{
type: 'doc',
id: 'c2pa-js/packages/c2pa-types/README',
label: 'c2pa-types',
},
{
type: 'doc',
id: 'c2pa-js/packages/c2pa-wasm/README',
label: 'c2pa-wasm',
},
{
type: 'doc',
id: 'c2pa-js/supported-formats',
label: 'Supported media formats',
},
{
type: 'link',
label: 'API documentation',
Expand All @@ -287,10 +306,9 @@ const sidebars = {
{
type: 'category',
label: 'Node.js library',
link: { type: 'doc', id: 'node-landing' },
link: { type: 'doc', id: 'c2pa-js/packages/c2pa-node/README' },
collapsed: true,
items: [
...getRemoteSidebarItems('c2pa-node'),
{
type: 'link',
label: 'API documentation',
Expand Down
7 changes: 7 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,13 @@ main .row:not(:has(.theme-doc-toc-desktop)) > .col {
width: 170px;
}

.packages-table th:nth-child(1),
.packages-table td:nth-child(1),
.packages-table th:nth-child(3),
.packages-table td:nth-child(3) {
white-space: nowrap;
}

/* For content to be displayed only in GitHub. Typically this will be used in imported markdown files. */

.github-only {
Expand Down
Loading