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

@jini-ai/sidecar

Latest version: v0.7.3-next.3

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: ai-oss
0 Stars
0 Forks
21 Versions
3.2K Downloads
TypeScript Repo language

Scan summary

@jini-ai/sidecar was last scanned on 29 Nov 2026 at version 0.7.3-next.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 21 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 0.7.3-next.3.
  • Downloads: 3,218 downloads.

Versions

21 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.7.3-next.3 LATEST 29 Nov 2026 No rules fired
0.7.3-next.2 21 Nov 2026 No rules fired
0.7.3-next.1 21 Nov 2026 No rules fired
0.7.2 14 Nov 2026 Not shown
0.7.1 11 Nov 2026 Not shown

No rules fired in 0.7.3-next.3

Findings

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

README

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

@jini-ai/sidecar

Process-runtime plumbing for an application that runs a long-lived helper process ("sidecar") next to a shell or CLI. It answers the boring-but-load-bearing questions such a setup keeps asking: where does this app's runtime directory live, what IPC socket path is safe on this platform, which TCP port can I bind, how does the child validate the stamp its parent launched it with, and how does an unrelated process later find the daemon that is already running. Nothing here starts an HTTP server or knows what your sidecar actually does — it is the filesystem/IPC/port layer underneath that.

Install

npm install @jini-ai/sidecar

No peer dependencies. Its dependencies are @jini-ai/core and @jini-ai/platform (installed automatically); everything else it uses is a Node built-in.

What you get

Path resolution — a namespace/project-scoped layout resolved from a caller-supplied SidecarContractDescriptor (its env-var names, defaults, and normalizers) rather than from hardcoded product constants: resolveNamespace, resolveNamespaceRoot, resolveRuntimeRoot, resolveRuntimeNamespaceRoot, resolveSourceRuntimeRoot, resolveProjectRoot, resolveProjectTmpRoot, resolveSidecarBase, resolveAppRuntimeDir, resolveAppRuntimePath, resolveLogsDir, resolveLogFilePath, resolveManifestPath, resolvePointerPath.

IPC paths — normalizeIpcPath and isWindowsNamedPipePath (Windows named pipes vs. Unix domain sockets), plus resolveAppIpcPath for the app-scoped socket path.

JSON IPC — createJsonIpcServer({ socketPath, handler }, { maxFrameBytes, idleTimeoutMs }) and requestJsonIpc({ socketPath, payload }, { timeoutMs }): a newline-delimited JSON request/response channel over a local socket, with a per-frame byte cap and an idle-connection timeout.

Port allocation — allocatePort({}, { host, label, port, reserved }), which either honors a forced port or finds a free dynamic one, returning { port, source: 'dynamic' | 'forced' }.

Launch and bootstrap — createSidecarLaunchEnv (parent side: build the child's environment) and bootstrapSidecarRuntime({ stampInput, env, app, contract }, options) (child side: validate the stamp against the expected app via the injected contract and return a SidecarRuntimeContext). A stamp mismatch throws rather than starting a sidecar that belongs to a different app.

Local daemon registry — a dataDir-scoped pointer file recording a running daemon's URL/host/port/pid/start time, plus liveness checking: resolveDaemonRegistryPath({ dataDir }), writeDaemonRegistryRecord, readLiveDaemonRegistryRecord (returns null when the recorded pid is gone), removeDaemonRegistryRecordIfCurrent, isProcessAlive.

JSON file helpers — readJsonFile, writeJsonFile, removeFile, removePointerIfCurrent.

Usage

import {
  allocatePort,
  createJsonIpcServer,
  requestJsonIpc,
  resolveDaemonRegistryPath,
  readLiveDaemonRegistryRecord,
  writeDaemonRegistryRecord,
  type LocalDaemonRegistryRecord,
} from '@jini-ai/sidecar';

const { port } = await allocatePort({}, { host: '127.0.0.1', label: 'daemon' });

const registryPath = resolveDaemonRegistryPath({ dataDir: '/var/lib/example' });
const record: LocalDaemonRegistryRecord = {
  url: `http://127.0.0.1:${port}`,
  host: '127.0.0.1',
  port,
  pid: process.pid,
  startedAt: new Date().toISOString(),
};
await writeDaemonRegistryRecord({ registryPath, record });

// Any other process, later — `null` when nothing is actually running.
const live = await readLiveDaemonRegistryRecord({ registryPath });

const ipc = await createJsonIpcServer({
  socketPath: '/tmp/example/daemon.sock',
  handler: async ({ message }) => ({ echo: message }),
});
const reply = await requestJsonIpc<{ echo: unknown }>({ socketPath: '/tmp/example/daemon.sock', payload: { ping: true } });
await ipc.close();

The path resolvers each additionally take a contract: SidecarContractDescriptor describing your app's env-var names and defaults — see src/types.ts for its shape before wiring those up.

What's swappable

SidecarContractDescriptor is the seam, and it is why this package carries no product strings: your app supplies its own env-var names, path defaults, and normalizeStamp/normalizeApp/ normalizeNamespace functions, and every path resolver plus bootstrapSidecarRuntime reads them from there. createJsonIpcServer takes the message handler and its two safety bounds. Everything else (socket framing, port probing, the registry record's field set and its pid-guarded removal) is fixed concrete behavior with no injection point.

Runtime

jini.runtime: "node" — uses node:net, node:fs, node:os, and process. ESM only — ships "type": "module" with no CommonJS require build.

Provenance

See the archived provenance ledger for per-file provenance and scope decisions. Apache-2.0, inherited from Open Design — see the repo NOTICE.

Argument convention and runtime subpaths

See API.md for supervisor ports and the required/optional object convention. ./respawn-policy and ./supervisor are universal; ./supervisor/node and the root entry use Node.

Kernel contracts

Runtime JSON state writes delegate to @jini-ai/platform/fs's async atomic writer. writeJsonFile({ filePath, payload }) keeps pretty JSON and its trailing newline. Existing permissions survive replacement; new files keep the usual umask-filtered create mode. The writer exclusively creates its sibling temp, syncs file bytes before rename, syncs the parent directory afterward, and propagates failures (including a sync failure after replacement).

Isolated supervisor Node defaults

@jini-ai/sidecar/supervisor exports only the generic process-port supervisor and its types. createNodeDaemonProcessAdapter, createSupervisorRegistry, createNodeSupervisorScheduler and the adapter types are exported exclusively from @jini-ai/sidecar/supervisor/node. They are no longer re-exported from the root or generic entry. Generic supervisor construction still requires the same process, clock, scheduler and reporting ports and starts no work on import.

Development typechecking

The package TypeScript configuration includes production source and src/**/__tests__. npx tsc -p tsconfig.json --noEmit, run from this package directory, checks both without running tests.

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 @jini-ai/sidecar

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

Vulnerability Insights

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

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Copy of Template Design OX Blog (1)
Research

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

Frame 2085668439 (1)
Group 1261154229