The ORE Protocol protects APIs (and other types of online resources). The libraries in this repo helps you use the ORE Protocol and protected APIs with your apps.
The server library provides an easy way for you to protect any Javascript/Node server endpoint or API.
You can just add the following Express middleware to check that all incoming requests have been approved (and paid for) via the ORE Protocol.
app.use(oreRequestValidator())
Or you can just use the checkOreAccessToken() function to check for yourself
The client library makes it easy for you to make calls to ORE-protected endpoints. You just need to know the name of the resource/API you're calling and provide the parameters to make the call.
You also need a config file that specifies your ORE account name and a few other parameters. Your ORE account will be charged a micro-payment to access the protected endpoint (unless the API is free!)
You can see how all this works by visiting the AIKON API marketplace. All the APIs available there are protected by the ORE Protocol and you access them using this client library.