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

@photivra/engine

Latest version: v2.29.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: bshack
0 Stars
0 Forks
44 Versions
4.9K Downloads
TypeScript Repo language

Scan summary

@photivra/engine was last scanned on 23 Nov 2026 at version 2.29.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 44 versions; the latest 3 were published within 5 days (19–23 Nov 2026).
  • Findings: No rules fired in version 2.29.0.
  • Downloads: 4,878 downloads.

Versions

44 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.29.0 LATEST 23 Nov 2026 No rules fired
2.28.0 22 Nov 2026 No rules fired
2.27.0 19 Nov 2026 No rules fired
2.26.0 16 Nov 2026 Not shown
2.25.0 16 Nov 2026 Not shown

No rules fired in 2.29.0

Findings

Findings for v2.29.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 2.29.0; other versions have their own rules, not their own score.

README

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

Photivra

Photivra is an open TypeScript engine for the science and mathematics of photography and digital imaging.

Pronunciation (IPA): /foʊˈtɪvɹə/

Photivra gives you a reusable, tested API for:

  • camera geometry and optics;
  • focus and depth of field;
  • exposure;
  • subject and camera motion;
  • sensor sampling;
  • diffraction;
  • cropping and framing;
  • stabilization approximations;
  • signal and noise.

Every calculation uses explicit units, documented assumptions, validation and provenance (a record of how the result was produced). Approximations are clearly labelled. Results are reproducible, and their limits are written down.

The source is licensed under Apache-2.0.

Related foundations
  • Digital optics foundations document the standalone stray-light irradiance, composed digital geometry and generic lens-correction APIs. They keep the optical/sensor capture model in charge, and make sampling and noise costs explicit. Production composition is separate.
  • The standalone SimulatedCapture contract stores format-neutral linear floating-point master data plus public metadata.
    • Its virtual-camera colour model provides explicit linear colour conversion and applies a resolved white balance (WB).
    • Linear encoding defines deterministic 16-bit quantization.
    • Writing files is a later stage.
  • The standalone SDR rendering foundation keeps three steps apart: rendering after capture, output encoding, and adaptation to an external display. (SDR = standard dynamic range.) The processed output contract connects capture, WB and correction, with explicit input domains and bounded support.
  • The standalone Print planner works out printer-file geometry from native pixels only. It uses the physical image size, an independent viewing distance and explicit sampling conventions. It does not assess captured detail or print quality.

Quick start

Install the published ESM package below. The 2.29.0 release record and changelog describe the current release:

npm install @photivra/engine@2.29.0

Simulate a photograph of a test chart with a generic camera, then read the developed sRGB pixels:

import { simulateCapture } from "@photivra/engine";

const capture = await simulateCapture({
  camera: "professional",
  lens: { fNumber: 8 },
  exposure: { mode: "manual", iso: 100, shutterSeconds: 1 / 125 },
  scene: { preset: "slanted-edge" },
  output: { width: 16, height: 16 }
});

console.log(capture.image.samples.length, capture.exposure.settings);
console.log(capture.assumptions.map((a) => `${a.id}: ${a.explanation}`));

simulateCapture() runs the full physical pipeline through the engine's existing contracts: scene radiance, lens, spectral sensor, noise, RAW readout, RAW development and optional JPEG. It lists every default and modelling choice it made in assumptions.

The Quick Start covers the inputs, the chart presets (slanted edge, Siemens star, step wedge, grey ramp, checkerboard, point grid, caller patches and, from 2.14, Photivra's own color patches), illuminants, white balance and limits.

The individual calculations are still available as small functions. For example, the horizontal field of view for a 36 mm sensor dimension and a 50 mm focal length:

import { calculateFieldOfView } from "@photivra/engine";

const horizontal = calculateFieldOfView({
  focalLengthMm: 50,
  sensorDimensionMm: 36
});

console.log(horizontal.value.degrees);
console.log(horizontal.provenance);

Start with the Developer Guide. Then use the Usage Guide and the API reference, which is generated from the package exports.

Repository main may describe newer, unreleased work. For the stable contract, use the docs bundled in the published package, or the exact v2.29.0 tag.

Documentation

Getting help

Use GitHub Issues for reproducible bugs, documentation problems and feature discussions. For security vulnerabilities, follow SECURITY.md.

What is implemented

The root package exports models in four areas. Each model is either deterministic or explicitly labelled as an approximation.

A few abbreviations used below: FOV (field of view), PSF (point-spread function: how a lens spreads one point of light), MTF (modulation transfer function), CA (chromatic aberration), AA (anti-aliasing filter), CFA (colour filter array, such as a Bayer mosaic), QE / EQE (quantum efficiency / external quantum efficiency), A/W (amperes per watt, a detector's responsivity), ADC (analog-to-digital converter), AE / AF / WB (auto-exposure / autofocus / white balance).

Optics and geometry
Exposure and motion

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 @photivra/engine

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

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Vulnerability Insights

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

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229