This is the JavaScript implementation of the COAR Notify library, a port of the original Python library.
Install via npm:
npm i @cottagelabs/coarnotifyjsImport the main components from the package:
import {
COARNotifyClient,
COARNotifyFactory,
HttpLayer,
RequestsHttpLayer,
COARNotifyReceipt,
COARNotifyServiceBinding,
COARNotifyServerError,
COARNotifyServer,
NotifyPattern,
SummaryMixin,
NotifyTypes,
ActivityStreamsTypes,
Properties,
ValidationError,
NotifyException,a
Accept,
AnnounceEndorsement,
AnnounceRelationship,
AnnounceReview,
AnnounceServiceResult,
Reject,
RequestEndorsement,
RequestReview,
TentativelyAccept,
TentativelyReject,
UndoOffer,
UnprocessableNotification,
} from "@cottagelabs/coarnotifyjs";Run tests using:
npm testThis library implements the COAR Notify specification based on the COAR Notify Architecture.
The core functionality is implemented in the core/ directory, with notification patterns in the patterns/ directory.
Contributions are welcome. Please open issues or pull requests on the GitHub repository.
MIT License