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

@medalbot/render

Latest version: v0.1.7

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: flo4604
0 Stars
0 Forks
7 Versions
562 Downloads
C# Repo language

Scan summary

@medalbot/render was last scanned on 23 Nov 2026 at version 0.1.7. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest was published on 23 Nov 2026.
  • Findings: No rules fired in version 0.1.7.
  • Downloads: 562 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.7 LATEST 23 Nov 2026 No rules fired
0.1.6 21 Oct 2026 No rules fired
0.1.5 21 Oct 2026 No rules fired
0.1.4 13 Oct 2026 Not shown
0.1.3 13 Oct 2026 Not shown

No rules fired in 0.1.7

Findings

Findings for v0.1.7. 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.1.7; other versions have their own rules, not their own score.

README

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

TypeScript client

Await client.render() to get image URLs. Cache hits and new renders return the same image map. The SDK submits the request, waits for completion and handles transient transport retries.

npm install @medalbot/render
import { RenderClient } from '@medalbot/render';

const client = new RenderClient({ apiKey });
const images = await client.render({ inspectUrl });

console.log(images.preview);
console.log(images.front);
console.log(images.back);

The default API URL is https://render.medalbot.cc. Supply baseUrl for local development. The package includes its public protocol types and has no private workspace dependencies.

Telemetry

The client reports how long each call took on your side, so slow renders can be traced to the network, polling, retries or the calling process. Turn it off when you create the client:

const client = new RenderClient({ apiKey, telemetry: false });

telemetry: { sampleRate: 0.1 } keeps it on and reports a tenth of fast, successful calls; the default is a quarter. Failed calls and calls of three seconds or more are always reported. Setting MEDALBOT_TELEMETRY=0 in the environment turns it off for every client in the process.

Each report covers one call: time to first byte, total time, the API's own Server-Timing, retries and their backoff, polls and the time between them, the error code, and the server's request ID. It never contains your inspect link, API key or image URLs. Reports go to POST /v1/telemetry/sdk on the same API with your key, in batches every ten seconds, and a failed report is dropped without affecting the call. Serverless handlers can await client.flushTelemetry() before they return.

Every request also names the SDK in User-Agent and X-Medalbot-SDK and carries a W3C traceparent, whether telemetry is on or off, so a support request can quote one call's trace.

For a StatTrak weapon, await client.render({ inspectUrl, statTrak: 1337 }) overrides the kill counter in the image. The integer range is 0 to 999999; zero is an explicit override. Omit statTrak to preserve the inspected counter. This only changes the render, never the Steam item. A weapon without StatTrak returns stat_trak_unavailable.

Render appearance

appearance is optional. Omit it or send "default" to preserve the original lighting. Use "pattern" for the alternative lighting:

const images = await client.render({
  inspectUrl,
  appearance: "pattern",
});

The API supports pattern appearance for AK-47 preview, front, and back images. Omit views to request all three, or provide a subset. Pattern appearance preserves the original preview lighting. Unsupported items return HTTP 422 with code unsupported_appearance. The server determines availability; the SDK forwards your requested views without changing them.

Waiting and retries

The initial HTTP request asks the server to wait up to ten seconds. A ready result returns immediately. For longer jobs, the SDK polls automatically, starting at 500 milliseconds and backing off to two seconds. The caller's promise resolves only when the requested images are ready.

const images = await client.render(
  { inspectUrl, views: ['front'], format: 'webp' },
  {
    idempotencyKey: 'listing-123-front-v1',
    timeoutMs: 120_000,
    signal: abortController.signal,
  },
);

The default timeout is two minutes for submission and polling together. Cancelling or timing out stops this caller's wait; shared GPU work continues. A timeout from render() throws a RenderError with code wait_timeout, the admitted renderId when known and the idempotencyKey. Resume with client.renders.wait(error.renderId), or retry client.render() with that idempotency key if submission timed out before an ID arrived.

client.renders.create/get/wait/batch/lookup are lower-level operations for callers that need to persist request IDs or manage background work. Normal callers only need render().

Transport choice

Replicate's JavaScript client exposes an awaited result and uses a bounded blocking request with a polling fallback. fal's client also exposes an awaited call that returns generated images. Our SDK uses the same caller-facing pattern over HTTP and JSON.

The result is a set of complete image files. It has no token stream to consume. SSE could add optional progress events later; it is not required to await completion. gRPC is unnecessary for this public HTTP API.

Post the link early

A bot can post an image link before the render finishes. Submit without waiting, with links: true, and use links.front at once:

const render = await client.renders.create(
  { inspectUrl, views: ["front"] },
  { links: true, idempotencyKey: "listing-123-front-v1" },
);
const link = "links" in render ? render.links?.front : undefined;
if (link) {
  await postEmbed(link);
}

The link is final at admission. The image host holds a request for a pending link for up to 20 seconds and answers with the image as soon as it exists, so a chat embed that fetches it a few seconds later gets the image instead of a 404. A render that takes longer than the hold, or fails, answers 503 with Retry-After: 2; wait for the finished images instead if your client keeps that response. A completed render's links equal its images, and a failed render has no links. Completion still depends on images, so render() and renders.wait() keep returning finished images.

links: true on renders.create, get, batch and lookup sends Prefer: links, and each batch or lookup item carries its own links. Until the API enables links, it ignores the preference and the field is absent, so handle a missing link. Once the API returns links by default, the field is present without the option and the option changes nothing. If the API admits the render but cannot prepare its links, it answers 503 render_links_unavailable with Retry-After. The SDK retries it with the same idempotency key, like other 503 responses. Response parsing ignores fields this SDK version does not know, so a field the API adds later does not break it.

Keep or delete the images

The API keeps a render's images forever unless you ask otherwise. If you store the images yourself, set retentionSeconds to keep them for one hour to 30 days, then delete the render once you have saved them:

const render = await client.renders.create(
  { inspectUrl, retentionSeconds: 3600 },
  { links: true },
);
const images = await client.renders.wait(render.id);
await saveImages(images);
await client.renders.delete(render.id);

Omit retentionSeconds to use your API key's default retention, if it has one. retentionSeconds: null keeps the images forever even when the key has a default. renders.delete succeeds again for a render that is already deleted.

A render with a retention carries retainUntil when links are on. After that time, or after a delete, a read of the render or a replay of its idempotency key fails with a RenderExpiredError (a RenderError with code render_expired), and a batch or lookup entry fails with code render_expired. Do not retry it, because the images are gone; submit again with a new idempotency key to render the item again. An image that another caller's render still keeps stays stored until that render's retention ends.

Image delivery

import { imageUrl } from "@medalbot/render";

const card = imageUrl(images.front, "card");
const zoom = imageUrl(images.front, "zoom");

The public recipes trim transparent padding, treating alpha values above 8 as visible. small fits within 500×220 at WebP quality 85, card fits within 1000×440 at quality 90, and zoom keeps the cropped native dimensions at quality 95. Resizing preserves the aspect ratio and never enlarges the image. The original lossless image stays unchanged.

Helpers accept an absolute HTTP(S) original URL under /v1/<canonical SHA-256>.webp or .png. They reject credentials, queries, fragments, unknown variants and derivative URLs. They preserve the original origin for custom image domains and make no network request.

For a responsive card, choose a smaller image on narrow screens without downloading the original:

<picture>
  <source media="(max-width: 600px)" srcSet={imageUrl(images.front, "small")} />
  <img src={imageUrl(images.front, "card")} alt="Weapon front view" loading="lazy" decoding="async" />
</picture>

In a zoom dialog, show the card first, then replace it after the zoom image decodes. Start this on user intent so opening a gallery does not download every zoom image:

async function showZoom(element: HTMLImageElement, original: string) {
  const card = imageUrl(original, "card");
  element.src = card;
  const larger = new Image();
  larger.src = imageUrl(original, "zoom");
  try {
    await larger.decode();
    if (element.isConnected && element.src === card) {
      element.src = larger.src;
    }
  } catch {
    // Keep the card if the larger image cannot load.
  }
}

Keep the original URL for an explicit lossless download. It is separate from the smaller display images.

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 @medalbot/render

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

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

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229