
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@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 3,099 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.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.