
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@obelisk/client
Advanced tools
Typescript client to interact with Obelisk on a higher level than the regular ReST API calls.
A client library written in Typescript to interact with Obelisk.
This library makes use of RxJS (Reactive Extensions for JavaScript). RxJS comes as a peer dependency.
** This client library only works for web applications that connect on behalf of users. It is meant for the browser, so node-js servers cannot use this. (For those use cases, please refer to the HTTP ReST API documented on Obelisk)**
The client helps to make authorized calls to the API. With the client you create Endpoints. These endpoints can be acted on with methods like execute()
or get()
. An endpoint takes an API uri as argument. This means that the HTTP REST api is as important to you, as this API.
npm install @obelisk/client rxjs --save
To start you need to create an ObeliskClient instance with a proper options object.
import { ClientOptions, ObeliskClient } from '@obelisk/client';
const options: ClientOptions = {
host: 'https://obelisk.ilabt.imec.be',
apiVersion: 'v1',
realm: 'idlab-iot',
clientId: 'my-client'
}
let client = new ObeliskClient(options);
Now init the client to connect to the Obelisk back-end and start using it. init() returns an Observable that completes once initialization is over.
this.client.init().subscribe({
next: _ => {
// do something with the client
}
})
If you are logged in it will handle all the tokens in the headers for you.
There is an optional angular package to use in conjunction with the client packages. More information can be found at @obelisk/ngx.
The generated @obelisk/client api can be found here
FAQs
Typescript client to interact with Obelisk on a higher level than the regular ReST API calls.
We found that @obelisk/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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.