Scan your whole stack
From OX Research Newsroom
Are you using @moonbase.sh/api?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.0.0-next-20261123173308
@moonbase.sh/api was last scanned on 23 Nov 2026 at version 0.0.0-next-20261123173308. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.0.0-next-20261123173308 LATEST | 23 Nov 2026 | No rules fired |
| 2.21.0 | 23 Nov 2026 | No rules fired |
| 0.0.0-next-20261122113354 | 22 Nov 2026 | No rules fired |
| 2.20.0 | 20 Nov 2026 | Not shown |
| 0.0.0-next-20261120112855 | 20 Nov 2026 | Not shown |
Findings for v0.0.0-next-20261123173308. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.0.0-next-20261123173308; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Server-side Moonbase SDK for managing products, orders, subscriptions, licenses, trials, vouchers, customers, and activation requests.
This is a wrapper around our core API, with official documentation here: https://moonbase.sh/docs/api/
pnpm add @moonbase.sh/api
import { MoonbaseClient } from '@moonbase.sh/api'
const client = new MoonbaseClient({
endpoint: process.env.MOONBASE_ENDPOINT!,
apiKey: process.env.MOONBASE_API_KEY!,
})
endpoint is your Moonbase account URL (for example https://demo.moonbase.sh).apiKey is a secret and should only be used from your backend.const firstPage = await client.products.query({
activeOnly: true,
pageSize: 20,
})
console.log(firstPage.items)
if (firstPage.hasMore) {
const secondPage = await firstPage.getNext()
console.log(secondPage.items)
}
const order = await client.orders.prepare(
{
currency: 'EUR',
items: [
{
type: 'Product',
productId: 'moon-terminal',
quantity: 1,
},
],
},
'https://your-app.example/checkout-complete',
)
console.log(order.id, order.status)
const page = await client.licenses.query({ pageSize: 10 })
const provisioned = await client.licenses.provision({
customer: {
name: 'Jane Doe',
email: 'jane@example.com',
},
requests: [
{
productId: 'moon-terminal',
quantity: 1,
},
],
})
await client.licenses.revoke(provisioned[0].id)
A perpetual license can cover only some releases of its product, like 12 months of updates or every
version up to 2.x. license.releaseAccess says which (updatesUntil, upToMajor, and
upToVersion once its updates have ended), and is left out for a license that covers every release.
provision and import take releaseAccess: { updatesUntil, upToMajor } to set it. A pricing
variation that sells such licenses carries the limit in entitlement.releaseAccess.
To sell the upgrade or renewal of one of the customer's licenses, name it as targetLicenseId on an
orders.prepare item with a quantity of 1, one item per license. Any other purchase issues new
licenses. The order line carries the same targetLicenseId, and its license fulfillment lists the
licenses it extended in extendedLicenseIds.
Upload each file, then create the release with the keys the uploads resolve to. To do this from a CI
job without writing code, use @moonbase.sh/cli
instead: npx @moonbase.sh/cli release <product-id> <version> <file...>.
import { openAsBlob } from 'node:fs'
import { Architecture, Platform } from '@moonbase.sh/api'
const { key } = await client.downloads.upload(
await openAsBlob('dist/Moon Terminal.dmg'),
{ contentType: 'application/x-apple-diskimage' },
)
const release = await client.products.createRelease('moon-terminal', {
version: '1.4.0',
description: 'Split panes and a faster startup.',
downloads: [
{ name: 'Moon Terminal.dmg', platform: Platform.Mac, arch: Architecture.Universal, key },
],
}, { publishImmediately: true })
upload takes a Blob or a Uint8Array. fs.openAsBlob (Node 20 and later) reads the file
as it is sent rather than all at once.partSize (5 MiB to 5 GiB) or concurrency to change that, and onProgress to follow it:
it is called with { uploadedBytes, totalBytes } as each part is stored. Each part being sent is
held in memory, so the default needs about 256 MiB.MAJOR.MINOR.PATCH string. A Git tag like v1.4.0 needs its v removed first.Without publishImmediately the release stays unpublished, so you can add the other platforms'
files before customers see it:
await client.products.addReleaseDownload('moon-terminal', '1.4.0', {
name: 'Moon Terminal Setup.exe',
platform: Platform.Windows,
arch: Architecture.X64,
key: windowsKey,
})
await client.products.publishRelease('moon-terminal', '1.4.0')
updateRelease replaces a release's description and its whole list of downloads. A download can
carry an install manifest there and in addReleaseDownload, but not in createRelease.
A release is dated when it is published. To bring over releases that came out before, pass
publishedAt (a Date or a string like 2025-03-14) to createRelease with publishImmediately,
or to publishRelease. setReleaseDate changes the date of a published release. A release dated
before the current one is published without taking its place.
await client.products.publishRelease('moon-terminal', '1.2.0', { publishedAt: '2025-03-14' })
await client.products.setReleaseDate('moon-terminal', '1.3.0', new Date('2025-06-02T09:00:00Z'))
A publishedAt more than five minutes ahead schedules the release instead. It stays unpublished,
with scheduledAt set to that time, and Moonbase publishes it within a few minutes of it: the
release becomes the current one and the "release published" webhook goes out then.
setReleaseDate or publishRelease with another time moves it, publishRelease without one
publishes it now, and unscheduleRelease takes it off the schedule.
await client.products.publishRelease('moon-terminal', '2.0.0', { publishedAt: '2026-11-03T09:00:00Z' })
await client.products.unscheduleRelease('moon-terminal', '2.0.0')
client.activationRequests, client.coupons, client.customers, client.downloads, client.licenses, client.orders, client.products, client.subscriptions, client.trials, client.vouchers.
Most non-2xx responses are thrown as typed errors:
MoonbaseErrorNotAuthenticatedErrorNotAuthorizedErrorNotFoundErrorConflictErrorimport { MoonbaseError, NotFoundError } from '@moonbase.sh/api'
try {
await client.products.get('unknown-product')
}
catch (error) {
if (error instanceof NotFoundError) {
// handle missing entity
}
else if (error instanceof MoonbaseError) {
// generic Moonbase API failure
}
else {
throw error
}
} Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.