Scan your whole stack
From OX Research Newsroom
Are you using @feedbackrelay/web?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.1
@feedbackrelay/web was last scanned on 30 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.1 LATEST | 30 Nov 2026 | No rules fired |
Findings for v0.1.1. 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.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Send your own form values, JSON or diagnostics from a browser. The SDK is framework-neutral and displays no UI. Imports are safe during server rendering; sending requires a browser document.
For a plain HTML form, skip package installation and use the HTML example. It needs no script. Use the JavaScript SDK below when you need app metadata, diagnostics or optional screenshots.
You need a compatible API URL, team ID, relay ID and publishable key. The default URL is https://api.feedbackrelay.app; this repository does not deploy that production backend or create credentials. Set baseUrl for another compatible service.
A client always sends to its configured team/relay. Reuse it for repeated sends; create another client for another destination. Up to four sends can run at once per client.
Use Node.js 26/npm for this checkout's build tools. Core API floors are Chrome/Edge 93+, Firefox 92+, and Safari/iOS Safari 15.4+; these follow Object.hasOwn support. The browser also needs ES modules, fetch, FormData, Blob, AbortController and Web Crypto. No polyfills or UI framework are bundled. These are source/API floors, not old-browser runtime certification; plain HTML needs no SDK or JavaScript.
From your app folder, install the SDK:
npm install @feedbackrelay/web@0.1.1
import { createRelayClient, RelaySendError } from '@feedbackrelay/web';
const relay = createRelayClient({
appId: 'com.example.app',
teamId: 'your-team-id',
relayId: 'your-relay-id',
publishableKey: 'your-publishable-key',
// baseUrl: 'https://your-compatible-api.example.com',
});
async function sendMessage(message: string): Promise<void> {
try {
const receipt = await relay.send({ message, rating: 3 });
// Show success after the receipt arrives.
} catch (error) {
if (error instanceof RelaySendError) {
// Show failure; retain error.submissionId for explicit retry.
}
}
}
Call void sendMessage(message) from your Submit handler. Without replay, creating the client makes no request or listeners. appId is a stable source label, such as my-website; it is not an authentication check. Optional appVersion, appBuild and context add metadata. screenshot: false is a global privacy restriction; leave it enabled only when your app should allow capture.
Use your own form, or the HTML example below with id contact. new FormData(form) preserves text, repeated fields and selected files as real multipart. Text fields stay strings; use JSON when values should be numbers or booleans. Remove reserved _relay_ fields before passing an existing HTML form to the SDK; the SDK rejects caller fields with this prefix:
const form = document.querySelector<HTMLFormElement>('#contact');
if (!form) throw new Error('Contact form is missing.');
form.addEventListener('submit', event => {
event.preventDefault();
const values = new FormData(form);
for (const name of [...values.keys()]) {
if (name.startsWith('_relay_')) values.delete(name);
}
void relay.send(values).then(
receipt => { /* Show success. */ },
error => { /* Show failure; keep values for manual retry. */ },
);
});
Send an Error directly from your existing error handler. Do not stringify it or replace the app's own error recovery:
try {
// Your app action.
} catch (appError) {
try { await relay.send(appError); }
catch (sendError) { /* Reporting failed; keep normal app recovery. */ }
}
const details: Record<string, unknown> = { screen: 'Checkout' };
details.self = details;
await relay.send(details);
Diagnostic input preserves available Error name/message/stack/cause/code and own data, plus dates, maps/sets, bigint and binary length. Ordinary getters and custom toJSON/toString are skipped; proxies/error formatters can still run host code. For exact application data, use plain JSON with send instead.
A File or Blob can be sent directly, or added to FormData:
const attachment = new Blob(['Example notes'], { type: 'text/plain' });
const values = new FormData();
values.append('tag', 'one');
values.append('tag', 'two');
values.append('attachment', attachment, 'note.txt');
await relay.send(values);
// Or: await relay.send(attachment); // Field name: file.
The SDK snapshots entries without changing your FormData. File/Blob bytes are immutable and are not read into JSON/base64. _relay_metadata is added internally; your caller fields may not start _relay_. Screenshot upload remains separate from these attachments. Empty file parts count too, including an unselected file input's empty part; remove it in your host only if you intend to omit it.
Keep failed input in your app state. An explicit retry passes that same input and error.submissionId; a new submission omits the option:
const input = { message: 'Checkout did not respond' };
let retryId: string | undefined;
try { await relay.send(input); }
catch (error) {
if (error instanceof RelaySendError) retryId = error.submissionId;
}
async function retryLastFailure(): Promise<void> {
if (!retryId) return;
await relay.send(input, { submissionId: retryId });
retryId = undefined;
}
Call retryLastFailure() only from your Retry action and handle its rejection in the UI. File retries also require the original files to remain readable. The SDK does not call it automatically.
const controller = new AbortController();
const pending = relay.send({ message: 'Example' }, {
signal: controller.signal,
context: { screen: 'Checkout' },
screenshot: false,
});
controller.abort();
try { await pending; } catch (error) { /* Canceled or already accepted. */ }
relay.destroy(); // Terminal; cancel sends and release this client.
Retry only on the same client/relay with the saved input/files and ID; a new occurrence gets a new ID. Clear saved retries when replacing the client. A server may have accepted a request before cancellation or a lost response, so it must return the original receipt for that ID.
The optional observer supplies collected JSON and the actual captured PNG Blob before delivery. Your app can display that Blob without recapturing or reading a server response:
let collectedJSON: string | undefined;
let screenshotURL: string | undefined;
function clearScreenshot(image: HTMLImageElement): void {
image.removeAttribute('src');
if (screenshotURL) URL.revokeObjectURL(screenshotURL);
screenshotURL = undefined;
}
async function sendWithPreview(input: unknown, image: HTMLImageElement): Promise<void> {
try {
const receipt = await relay.send(input, {
onCollected: (json, png) => {
collectedJSON = json;
clearScreenshot(image);
if (png) image.src = screenshotURL = URL.createObjectURL(png);
},
});
// Show acceptance separately from the local preview.
} catch (error) { /* Keep the preview; delivery may have failed. */ }
}
Pass your own <img alt="Captured app screen" data-relay-private> element, and clear its URL when replacing/closing it or leaving the page. The Blob is immutable and remains usable after the callback. It is absent when capture is disabled/failed or replay replaces PNG. Video uses the recorder's preview API instead.
The first argument is JSON { submission, formData? } with normalized data/metadata and PNG/file descriptors, not binary bytes, SDK keys or internal URIs. Explicit input/context remain. The callback runs once after collection/validation and before delivery; throws/rejected Promises are contained and not awaited. No observer means no preview serialization or UI. A local preview is not a receipt. See the snapshot reference.
For quiet background reporting, use void relay.send(error). The SDK observes an ignored send promise internally without showing UI or logging a failure. The original promise still rejects: use try/catch when awaiting it, and catch failures in any promise chain you create. Invalid client configuration or context updates still throw synchronously; handle those in your setup/action code. Plain HTML actions still navigate to the HTTP response; use the enhanced form for an in-page result.
Use relay.setContext({ screen: 'Checkout' }) to replace stored context, or relay.clearContext() to empty it. The per-send context option replaces it for one send. Context must be valid JSON; invalid values leave the previous context unchanged. Values are copied when sending; later changes affect future sends. Cancel old-user sends before clearing identity context on logout.
No npm package, JavaScript or script tag is needed. Add a normal form using the relay URL as its action. Your browser navigates to a JSON receipt/error; there is no redirect or hosted success UI.
A deployed compatible service must support this HTML contract. This repository does not deploy the production Relay backend. Replace the example address/IDs/key with values for your service.
<form id="contact" method="post" enctype="multipart/form-data" action="https://api.feedbackrelay.app/v1/sdk/teams/YOUR_TEAM/relays/YOUR_RELAY">
<input type="hidden" name="_relay_key" value="YOUR_PUBLISHABLE_KEY">
<label>Email <input name="email" type="email" required></label>
<label>Message <textarea name="message" required></textarea></label>
<label>Attachment <input name="attachment" type="file"></label>
<button type="submit">Send</button>
</form>
URL-encoded fields and real multipart file parts are supported. Add enctype="multipart/form-data" and a named file input for attachments. Repeated names are preserved; no SDK diagnostics or screenshot are added. Empty file parts count toward backend limits; do not render a file input when uploads are disabled. _relay_ names are reserved. Native HTML resubmission creates a new occurrence; it does not have the SDK's explicit retry ID.
Import replay separately; apps that do not import it do not need its encoder or MP4 writer:
import { createRelayClient } from '@feedbackrelay/web';
import { createReplayRecorder } from '@feedbackrelay/web/replay';
const replay = createReplayRecorder({ fps: 'auto' });
const relay = createRelayClient({
appId: 'com.example.app', teamId: 'your-team', relayId: 'your-relay',
publishableKey: 'your-key', replay,
});
await relay.send({ message: 'Checkout failed' });
The recorder keeps up to the last ten seconds in memory while the page is visible. fps defaults to auto (1–5 requested captures/second); a whole number from 1–10 requests a fixed rate. Invalid values fall back to auto. Busy pages can capture fewer frames. Only one recorder can run per page; share it between clients using the same backend URL, team and app. Different relay IDs are allowed.
Read const selectedFPS = replay.currentFPS for the current adaptive/fixed capture target. It is undefined while inactive, hidden, unavailable or destroyed, and does not measure rendered/encoded/delivered FPS. The getter adds no SDK timer or uploaded data; your app controls label refreshes.
Automatic FPS: Auto uses smoothed elapsed capture work and a 50 ms-per-second target, without CPU/RAM/battery reads. A cost over 25 ms cannot qualify for 2 FPS; three qualifying checks are needed per increase. Slow rendering can postpone checks. See the complete web rules.
Replay replaces the per-event PNG, including when video is unavailable. screenshot: false at initialization or on a send also prohibits that client's replay attachment. Password, private-selector and iframe exclusions apply to replay frames. Attached clients' private selectors are combined; stricter selectors clear previous frame history.
The main event returns its normal receipt first. One background worker then creates a silent H.264 MP4 and uses /replays, a binary upload ticket, and /replays/{id}/complete. Replay failure never turns an accepted event into failure. Capture/encoder omissions are reported best effort; failed media delivery can remain pending or unknown without an extra omission request. No media-completion callback or receipt field is added. Plain HTML posts never record.
The recorder uses WebCodecs when available: Chrome/Edge 94+, desktop Firefox 130+, and Safari/iOS Safari 16.4+ are API floors. HTTPS (or localhost), a working H.264 encoder and valid output are required. Firefox Android lacks the required encoder; codec availability also varies by device. Unsupported or failed recording leaves ordinary sends working. These version floors are not a guarantee that every device can encode. Cross-origin assets, video, canvas and unsupported CSS have the same limits as screenshots.
The window can be shorter after startup, a keyframe boundary, backgrounding, resize or capture failure. Video is capped at a 720-pixel longest edge and targets 500 kbit/s; actual output varies. The encoded ring is limited to 2 MiB, retained encoded data to 8 MiB and four leases, each expiring after 60 seconds. Browser rendering and encoder buffers use additional memory. Actual peak RAM and CPU overhead have not been benchmarked. Upload jobs have a 30-second budget. No audio, gestures or device-vitals timeline is collected. The automatic rate controller uses local capture timing only.
An ordinary event or media-delivery failure retains the same clip until its original 60-second expiry for an explicit same-ID retry. There is no automatic retry. Cancellation, client destruction or expiry releases it. A retry after expiry does not attach a newer recording to the old event. relay.destroy() detaches that client; it does not destroy a shared recorder.
At an account change, cancel old-user sends, call replay.clear() and update context. Context changes alone do not clear shared history. replay.destroy() stops recording and cancels retained/background replay work permanently. Neither operation retracts data already accepted by the service. Call these methods from your app's existing lifecycle; the SDK adds no error handlers or UI.
After attaching an enabled recorder and allowing a few seconds of foreground history, call preview() from your own Preview action. It does not send an event or contact the Relay service:
let previewURL: string | undefined;
async function showReplayPreview(player: HTMLVideoElement): Promise<void> {
clearReplayPreview(player);
const clip = await replay.preview();
try {
if ('omitted' in clip) return; // Show clip.omitted in your UI.
previewURL = URL.createObjectURL(clip.video);
player.src = previewURL;
player.controls = true;
} finally { clip.release(); }
}
function clearReplayPreview(player: HTMLVideoElement): void {
player.pause();
player.removeAttribute('src');
player.load();
if (previewURL) URL.revokeObjectURL(previewURL);
previewURL = undefined;
}
Here replay is the recorder above; player is your own <video muted playsinline data-relay-private> element. Handle showReplayPreview errors in your action. A successful result has video (Blob; byte size is video.size), width, height, durationMs, startedBeforeEventMs, endedBeforeEventMs and release(); an unavailable result has omitted and release(). Keep only one preview. It shares the existing worker/budgets and expires after 60 seconds. Releasing SDK retention does not revoke an object URL you created; clear it when replacing/closing playback or leaving the page. clear/destroy discard SDK history, not your handed-out Blob references, which remain outside SDK retention budgets. This is local playback, not an upload result. Existing page-asset rendering limitations still apply.
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.