Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@moonbase.sh/api

Latest version: v0.0.0-next-20261123173308

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: tobbentm
131 Versions
15.4K Downloads

Scan summary

@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.

  • Releases: 131 versions; the latest 5 were published within 4 days (20–23 Nov 2026).
  • Findings: No rules fired in version 0.0.0-next-20261123173308.
  • Downloads: 15,401 downloads.

Versions

131 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.0.0-next-20261123173308

Findings

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.

README

The publisher’s own README, as collected from the registry.

@moonbase.sh/api

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/

Install

pnpm add @moonbase.sh/api

Create a client

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.

Common usage

Query products with pagination
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)
}
Prepare an order for checkout
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)
Manage licenses
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.

Publish a release

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.
  • A file larger than 64 MiB is sent in parts, four at a time, and a part that fails is retried. Pass 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.
  • An upload that fails for good does not resume, so start it again. The parts it had sent are discarded after 7 days.
  • The version is a 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')

Available endpoint groups

client.activationRequests, client.coupons, client.customers, client.downloads, client.licenses, client.orders, client.products, client.subscriptions, client.trials, client.vouchers.

Error handling

Most non-2xx responses are thrown as typed errors:

  • MoonbaseError
  • NotAuthenticatedError
  • NotAuthorizedError
  • NotFoundError
  • ConflictError
import { 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
  }
}

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @moonbase.sh/api

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229