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

@pylair/client

Latest version: v0.1.0-rc.29

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: alby2007
2 Stars
1 Forks
28 Versions
5.3K Downloads
Rust Repo language

Scan summary

@pylair/client was last scanned on 23 Nov 2026 at version 0.1.0-rc.29. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 28 versions; the latest 5 were published within 3 days (21–23 Nov 2026).
  • Findings: No rules fired in version 0.1.0-rc.29.
  • Downloads: 5,274 downloads.

Versions

28 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0-rc.29 LATEST 23 Nov 2026 No rules fired
0.1.0-rc.28 23 Nov 2026 No rules fired
0.1.0-rc.27 22 Nov 2026 No rules fired
0.1.0-rc.26 22 Nov 2026 Not shown
0.1.0-rc.25 21 Nov 2026 Not shown

No rules fired in 0.1.0-rc.29

Findings

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

README

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

@pylair/client

TypeScript client SDK for Pylair apps: typed calls to exposed Python functions, streaming, cancellation, lifecycle events, and wire/base64 helpers — everything the webview side of a Pylair app needs.

import { call, stream } from "@pylair/client";

const sum = await call<number>("add", { a: 1, b: 2 });

for await (const token of stream<string>("generate", { prompt })) {
  // tokens arrive as Python yields them
}

Errors surface as PythonError subclasses: LimitExceededError when a bounded resource refuses the call (.limit names the cap — including "window_share" when a window exceeds its per-window share, with data.window naming the over-share owner), and PermissionDeniedError when the window's capability does not permit the function.

Runtime health

health() returns the host-observed snapshot (state, generation, restart accounting, liveness, load totals, and the calling window's own fairness row). onHealth delivers pylair://health events — emitted only when a liveness verdict changes, so "the runtime is busy" UI needs one subscription, not a poll loop:

import { onHealth } from "@pylair/client";

const banner = document.getElementById("busy-banner")!;
const unlisten = await onHealth((c) => {
  banner.hidden = c.liveness.loop !== "busy";
});

Both are read-only observation: they subscribe to events and never join the fairness live set, so a poller reserves no share. A pylair:deny-python-health capability deny is origin-wide — it refuses health() on every local webview, not just the window carrying it.

App readiness

health() answers host questions ("is the runtime alive? busy?"). health().app answers the app's own: which components are still warming up. The Python side reports it — a startup hook for slow setup, progress while it works, and requires= so calls wait for the components they need instead of racing them:

import pylair

@pylair.on_startup
def load_model():
    pylair.loading("model", 0.1, detail="fetching weights")
    # … load …
    pylair.ready("model")

@pylair.expose(requires="model")
def chat(prompt: str) -> str:      # waits until `model` is ready
    ...

On the UI side, health().app carries the latest report per component (phase, progress, detail, ms_ago) and onApp fires pylair://app on each phase transition — render the snapshot once, then flip components as transitions arrive:

import { health, onApp } from "@pylair/client";

const app = (await health()).app;
if (app) {
  for (const [name, c] of Object.entries(app.components)) {
    setPhase(name, c.phase);      // "loading" | "ready" | "failed"
  }
}
const unlisten = await onApp((c) => setPhase(c.name, c.phase));

app is null when the runtime has reported nothing (and always on wrapped web runtimes — they can't report), and absent on hosts older than app readiness; code should treat both as "no app state". The event fires on phase changes only — progress and detail are poll-only, so a progress bar reads health().app on its own cadence.

Blobs

A Python function that returns pylair.Blob — generated media, model output, anything too big for a JSON frame — arrives as a BlobHandle; the bytes never leave the host's filesystem:

import { call, BlobHandle } from "@pylair/client";

const img = await call<BlobHandle>("render_chart", { query });
imageEl.src = img.url;            // a pylair-blob: URL the host serves
await img.release();              // done with it early — frees the file
  • handle.url — the pylair-blob: URL for <img>, media (Windows/macOS), fetch, showSaveFilePicker sources. The webview can only ever name an id; the host serves it to the owning window only.
  • handle.stream() — a ReadableStream<Uint8Array> of sequential ranged reads; it advances by bytes received, so it stays correct however small the host's range cap is. A released/dead blob errors the stream with the HTTP status (403/404/410).
  • handle.mediaUrl() — a blob: object URL built from stream(): one copy into the webview, then the native media pipeline (instant seek — and the path for Linux WebKitGTK, whose custom-scheme media pipeline is broken). Capped at 256 MiB; larger throws naming .url/stream().
  • handle.arrayBuffer() / handle.blob() / handle.text() — the whole payload through stream().
  • handle.release() — frees the blob early (id, mime, size stay readable). Idempotent; afterwards readers throw a clear "released" error and a mediaUrl() URL is revoked.

A pylair.Blob returned on a host without blob support arrives as Uint8Array (the $b64 fallback) instead of a handle — the documented downgrade. Blobs die with their generation: a dev reload or window close invalidates outstanding handles, which then read as 404s.

The full guide — Blob.from_path, lifetime and limits, .url vs mediaUrl(), the security model — is docs/blobs.md.

Release candidate: while there's no stable release, latest tracks the newest RC — pin an exact version for reproducibility: npm i @pylair/client@0.1.0-rc.29.

Pylair builds on Tauri but is not affiliated with or endorsed by the Tauri project.

Licensed under MIT OR Apache-2.0 — see LICENSE-MIT and LICENSE-APACHE.

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 @pylair/client

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

CVE

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

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

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229