The @theia/ovsx-client
package is used to interact with open-vsx
through its REST APIs.
The package allows clients to fetch extensions and their metadata, search the registry, and
includes the necessary logic to determine compatibility based on a provided supported API version.
Note that this client only supports a subset of the whole OpenVSX API, only what's relevant to clients like Theia applications.
This class is an OVSXClient
that can delegate requests to sub-clients based on some configuration (OVSXRouterConfig
).
{
"registries": {
// `[Alias]: URL` pairs to avoid copy pasting URLs down the config
},
"use": [
// List of aliases/URLs to use when no filtering was applied.
],
"rules": [
{
"ifRequestContains": "regex matched against various fields in requests",
"ifExtensionIdMatches": "regex matched against the extension id (without version)",
"use": [/*
List of registries to forward the request to when all the
conditions are matched.
`null` or `[]` means to not forward the request anywhere.
*/]
}
]
}
- Eclipse Public License 2.0
- 一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception
"Theia" is a trademark of the Eclipse Foundation https://www.eclipse.org/theia