This is the JavaScript implementation of the COAR Notify library, a port of the original Python library.
Install via npm:
npm install coarnotifyjs
Import the main components from the package:
import {
COARNotifyClient,
COARNotifyFactory,
HttpLayer,
RequestsHttpLayer,
COARNotifyReceipt,
COARNotifyServiceBinding,
COARNotifyServerError,
COARNotifyServer,
NotifyPattern,
SummaryMixin,
NotifyTypes,
ActivityStreamsTypes,
Properties,
ValidationError,
NotifyException,
Accept,
AnnounceEndorsement,
AnnounceRelationship,
AnnounceReview,
AnnounceServiceResult,
Reject,
RequestEndorsement,
RequestReview,
TentativelyAccept,
TentativelyReject,
UndoOffer,
UnprocessableNotification,
} from 'coarnotifyjs';
Run tests using:
npm test
This 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