Scan your whole stack
From OX Research Newsroom
Are you using @manalens/node?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.3.0
@manalens/node was last scanned on 28 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.3.0 LATEST | 28 Nov 2026 | No rules fired |
| 0.2.1 | 27 Nov 2026 | No rules fired |
| 0.2.0 | 26 Nov 2026 | No rules fired |
| 0.1.1 | 26 Nov 2026 | Not shown |
| 0.1.0 | 26 Nov 2026 | Not shown |
Findings for v0.3.0. 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.3.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Manalens for Node.js (open source). It sends track, identify and traits events to POST /v0/events with batching, a flush timer and retries (exponential backoff with jitter, Retry-After). No dependencies. Node.js 20.3 or newer.
Ported from @formo/analytics-node without the wallet code.
Delivery: network errors, 408, 429 and 5xx are retried (retryCount,
default 3). A 413 (batch too large, for example a server batch over 256 KB)
is not a failure: the SDK keeps every event, halves the batch, and sends again
at once, without a backoff wait and without counting a retry. A 413 for a
single event drops that event. After an accepted batch, full batches apply
again. Other 4xx responses drop the batch. With debug: true, drops and
retries go to the logger.
server (default): a backend or a dedicated game server. Uses the secret key (mana_sk_...). Events have channel: 'server'. At most 100 events in a batch.app: the Electron main process, or a process on the player's machine. Uses the Publishable key (mana_pk_...), sent in the x-publishable-key header. API keys (mana_api_, mana_mcp_) are refused in both modes. Events have channel: 'app' and context.app. At most 50 events in a batch.Never put the secret key in a game build, a web page or an Electron app. The SDK refuses a secret key in app mode.
import { Manalens } from '@manalens/node';
const analytics = new Manalens(process.env.MANALENS_SECRET_KEY!, { endpoint: 'https://collect.example.com' });
analytics.track({ event: 'purchase_confirmed', userId: 'player_123', properties: { sku: 'dlc_1' }, context: { ip: req.ip, userAgent: req.get('user-agent') } });
analytics.identify({ userId: 'player_123', traits: { plan: 'supporter' } });
// Before the process exits. The SDK adds no exit hooks.
await analytics.shutdown();
App mode:
const analytics = new Manalens('mana_pk_...', {
endpoint: 'https://collect.example.com',
mode: 'app',
app: { platform: 'windows', storefront: 'steam', app_version: '1.4.0' },
anonymousId: savedPlayerUuid,
});
traits() sets traits on a player, with or without a user ID. Without
userId, the traits belong to the anonymous ID (one game install or browser).
A null value clears a trait.
analytics.traits({ anonymousId: installId, traits: { level: 3, discord_id: '123456789012345678' } });
analytics.traits({ userId: 'player_123', traits: { email: 'ana@example.com' } });
Server mode can set the protected traits email, itch_user_id,
stripe_customer_id and paddle_customer_id. App mode drops them with one
warning, because the collector drops them from app events.
link() links the Steam account of a player with a Steam ticket. The game
makes the ticket with GetAuthTicketForWebApi("manalens") and sends you the
ticket bytes. Manalens checks the ticket with Steam and reads which of your
apps the account owns.
const result = await analytics.link({ provider: 'steam', ticket: ticketHex, anonymousId: installId, userId: 'player_123' });
if (!result.linked) console.warn('Steam link failed', result.status, result.code);
<apiEndpoint>/v0/link. apiEndpoint defaults to the
endpoint with an events. host changed to api..userId. App mode sends the
publishable key and its own anonymous ID, and never sends userId.429 with Retry-After (up to 60 s),
it tries once more. It returns { linked, status, code? } and never throws
for an HTTP or network error. A bad call throws.See Steam ownership and the Link API.
Full guide: docs.manalens.dev/sdks/node.
npm install @manalens/node
From the repository root (a pnpm workspace):
pnpm --filter @manalens/node build # dist/esm and dist/cjs
pnpm --filter @manalens/node typecheck
pnpm --filter @manalens/node test # builds, then runs test/*.test.mjs against dist/esm
The tests use a mocked fetch and no network. test/fixtures/collector-contract.json
is the collector contract: the request bodies the SDK must send, the app enums,
the key format and the property limits. The Manalens collector repository keeps
the same file and checks it against the collector schemas, so change both
copies together.
Releases use Changesets. See RELEASING.md.
The tag of a Node SDK release is node-vX.Y.Z.
src/Manalens.ts: client, key and mode checks, event envelope.src/queue/EventQueue.ts: batching, flush timer, retries.src/utils/keys.ts: the key format of the collector (prefixes, CRC32 checksum). The contract test checks it.src/validators/: the collector's rules, so a bad event is dropped and never fails a batch.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.