
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
stremio-api-client
Advanced tools
Facilitates the connection between the `stremio-api` and Stremio, with extras such as user/add-on sync and persistence.
Facilitates the connection between the stremio-api and Stremio, with extras such as user/add-on sync and persistence.
Contains two main modules:
This is a stateless module to request the stremio-api
It's constructed like this:
var StremioAPIClient = require('stremio-api-client').StremioAPIClient
var API = new StremioAPIClient(options)
endpoint - URL to the API, default is https://api.strem.io
authKey - session auth key, default is null
request(method, params) - returns a promiseThis is a stateful class that, when created, would take care of persistance and sync of the user and her add-ons collection
It's constructed like this:
var StremioAPIStore = require('stremio-api-client').StremioAPIStore
var APIStore = new StremioAPIStore(options)
endpoint - URL to the API, default is https://api.strem.io
storage - a storage object with synchronous getJSON and setJSON properties
APIStore.user - User object
APIStore.addons - AddonCollection
NOTE: All the methods return promises
APIStore.login({ email, password, fbLoginToken }) - logs in; fbLoginToken is optional
APIStore.register({ email, password }) - registers a new user
APIStore.logout() - logs out
All of the above 3 methods change API.user and therefore will emit (upon success) user-change
APIStore.pushUser() - pushes the local API.user to the API; requires to be logged in
APIStore.pullUser() - pull the latest user from the API; requires to be logged in
pullUser() may emit user-change if the remote user is more recent
APIStore.pushAddonCollection() - pushes local API.addons collection to the API (via addonCollectionSet); requires to be logged in
APIStore.pullAddonCollection() - pulls the remote add-on collection (via addonCollectionGet), may emit addons-change or addons-different
user-change: emitted when the User is changed (by ID, i.e. completely different user)
addons-change: emitted when the add-on set (AddonCollection) is changed
addons-different: emitted when the add-on collection is different (compared through transportUrls)
FAQs
Facilitates the connection between the `stremio-api` and Stremio, with extras such as user/add-on sync and persistence.
The npm package stremio-api-client receives a total of 16 weekly downloads. As such, stremio-api-client popularity was classified as not popular.
We found that stremio-api-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.