@courseproof/provider-edx
v0.1.1
Published
[](https://opensource.org/licenses/MIT)
Downloads
304
Maintainers
Readme
@courseproof/provider-edx
Provider for verifying edX certificates. Detects and verifies certificate URLs from edX by fetching the page and extracting structured data.
Detection
The provider detects URLs matching the following patterns:
edx.org/verify/…courses.edx.org/certificate/…courses.edx.org/credentials/…
Verification
When verify(url) is called, the provider:
- Fetches the certificate page
- Extracts structured data using JSON-LD, HTML selectors, or regex patterns
- Returns a
CertificateResultwith the parsed certificate information
Usage
import { EdxProvider } from "@courseproof/provider-edx";
import { CourseProof } from "@courseproof/core";
const cp = new CourseProof();
cp.registerProvider(new EdxProvider());
const result = await cp.verify("https://edx.org/verify/…/verify/abc123");Installation
npm install @courseproof/provider-edxLicense
MIT — see LICENSE for details.
Part of the CourseProof monorepo.
