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

@manalens/node

Latest version: v0.3.0

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: yosriady
0 Stars
0 Forks
7 Versions
912 Downloads
JavaScript Repo language

Scan summary

@manalens/node was last scanned on 28 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest 5 were published within 3 days (26–28 Nov 2026).
  • Findings: No rules fired in version 0.3.0.
  • Downloads: 912 downloads.

Versions

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

No rules fired in 0.3.0

Findings

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.

README

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

@manalens/node

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.

Modes

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

Use

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

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.

Verify Steam ownership

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);
  • It posts once to <apiEndpoint>/v0/link. apiEndpoint defaults to the endpoint with an events. host changed to api..
  • Server mode sends the secret key and may send userId. App mode sends the publishable key and its own anonymous ID, and never sends userId.
  • A refusal is not sent again. After a 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.

Install

npm install @manalens/node

Develop

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.

Releasing

Releases use Changesets. See RELEASING.md. The tag of a Node SDK release is node-vX.Y.Z.

Layout

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

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 @manalens/node

References

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

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

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

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

Frame 2085668439 (1)
Group 1261154229