
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
@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,930 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.