@courseproof/core
v0.1.1
Published
[](https://opensource.org/licenses/MIT)
Maintainers
Readme
@courseproof/core
Central orchestration engine for the CourseProof certificate verification system. Ties together provider registration, certificate verification, analytics, comparison, skill extraction, and multi-format export.
Exports
CourseProof
Main class that orchestrates the entire verification workflow.
| Method | Description |
|--------|-------------|
| registerProvider(provider) | Registers a new provider |
| unregisterProvider(id) | Removes a provider |
| providers() | Returns all registered providers |
| detect(input) | Detects which provider can handle the given input |
| verify(url) | Verifies a single certificate URL |
| verifyMany(urls) | Batch verifies multiple URLs |
| validate(input) | Validates input and delegates to the appropriate method |
| compare(certificates) | Compares multiple certificates and returns a report |
| analytics(certificates) | Computes analytics from a set of certificates |
| extractSkills(certificates) | Extracts unique skills from certificates |
| export(certificates, format) | Exports certificates in the specified format |
| recommendCourses(skills, count?) | Recommends courses based on skills |
| sync(certificates) | Re-verifies a set of certificates |
Export Functions
exportJSON, exportCSV, exportMarkdown, exportHTML, exportResume, exportLinkedIn, exportPortfolio, exportOpenBadge, exportCertificates
ProviderRegistry
Manages registered providers with domain-based lookup and detection.
Usage
import { CourseProof } from "@courseproof/core";
import { CourseraProvider } from "@courseproof/provider-coursera";
const cp = new CourseProof();
cp.registerProvider(new CourseraProvider());
const result = await cp.verify("https://coursera.org/verify/abc123");
if (result.success) {
console.log(result.certificate.title);
const md = cp.export([result.certificate], "markdown");
}Installation
npm install @courseproof/coreLicense
MIT — see LICENSE for details.
Part of the CourseProof monorepo.
