Skip to content

CottageLabs/notifyjs

Repository files navigation

COAR Notify JS Library

This is the JavaScript implementation of the COAR Notify library, a port of the original Python library.

Installation

Install via npm:

npm i @cottagelabs/coarnotifyjs

Usage

Import 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";

Testing

Run tests using:

npm test

Architecture

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.

Contributing

Contributions are welcome. Please open issues or pull requests on the GitHub repository.

License

MIT License

About

Notify JS Protocol Implementation

Resources

Stars

Watchers

Forks

Packages

No packages published