
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@openmeter/sdk
Advanced tools
Client for OpenMeter: Real-Time and Scalable Usage Metering
npm install --save @openmeter/sdk
To use the OpenMeter SDK on your backend, you need to configure baseUrl
and apiKey
for OpenMeter Cloud:
import { OpenMeter } from '@openmeter/sdk'
const openmeter = new OpenMeter({
baseUrl: 'https://openmeter.cloud',
apiKey: 'om_...',
})
To use the OpenMeter Portal SDK on your frontend, you need to configure it use a portal token in your configuration:
import { OpenMeter } from '@openmeter/sdk/portal'
const openmeter = new OpenMeter({
baseUrl: 'https://openmeter.cloud',
portalToken: 'om_portal_...',
})
To use the OpenMeter React SDK for the portal API, you need to configure a Portal Client and a React Context:
import {
OpenMeter,
OpenMeterProvider,
useOpenMeter,
} from '@openmeter/sdk/react'
function App() {
// get portal token from your backend
const openmeter = new OpenMeter({
baseUrl: 'https://openmeter.cloud',
portalToken,
})
return (
<OpenMeterProvider value={openmeter}>
<UsageComponent />
{/* ... */}
</OpenMeterProvider>
)
}
function UsageComponent() {
// get openmeter client from context
const openmeter = useOpenMeter()
// ...
}
FAQs
Client for OpenMeter: Real-Time and Scalable Usage Metering
The npm package @openmeter/sdk receives a total of 5,532 weekly downloads. As such, @openmeter/sdk popularity was classified as popular.
We found that @openmeter/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.