Scan your whole stack
Are you using depthview-r3f-bridge?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.3.0
depthview-r3f-bridge 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.1.0 | 25 Nov 2026 | No rules fired |
| 0.0.0-stage | 25 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.
Bridge between a three.js / React Three Fiber project and the Depthview browser extension.
Source locations. A build plugin adds userData.__depthview = { file, line, column, component }
to every JSX three element (<mesh>, <directionalLight>, <meshStandardMaterial>, drei cameras…),
so an edit made in the inspector can be written back to the exact JSX prop.
Exact scene + scroll access. <DepthviewBridge /> hands the R3F store to the extension and,
if you pass a timeline, lets it sample the camera path exactly instead of recording a scroll.
Lens effects in the inspector. The Vite plugin lets Depthview preview ambient occlusion, bloom, depth of field and smooth edges with your project's own three.js.
Looks and camera paths saved from the inspector, applied by your site.
Site controls: values of your scene, declared in your code, tuned in the inspector and saved back.
Nothing of the development tooling ships to production: the Vite plugin only applies to the dev
server, the Babel plugin does nothing unless NODE_ENV === 'development', and the bridge
component and the site controls have production entries that are empty stubs. Only what you
ask your site to run does: camera-path and look.
// vite.config.ts
import { depthviewVite } from 'depthview-r3f-bridge/vite';
import react from '@vitejs/plugin-react';
export default defineConfig({ plugins: [depthviewVite(), react()] });
The plugin also adds a few lines to every page of the dev server (window.__DEPTHVIEW_LOOK__),
through which the inspector loads three.js's effect passes when you turn a lens effect on.
depthviewVite({ look: false }) leaves that out.
// babel.config.js
module.exports = { presets: ['next/babel'], plugins: ['depthview-r3f-bridge/babel'] };
Depthview can edit a site's scroll camera path and save it as camera-path.json. This hook
drives the camera from that file. Unlike the rest of this package, it is meant for production:
it is plain three.js maths with no inspector code.
import { useCameraPath } from 'depthview-r3f-bridge/camera-path';
import path from './camera-path.json';
function ScrollCamera() {
useCameraPath(path); // window scroll by default
return null;
}
<Canvas>
<Scene />
<ScrollCamera />
</Canvas>;
Each key is a scroll percent (0 top, 100 bottom) with a camera position, a look-at target
and a fov; between keys the camera follows a smooth curve through them. Pass progress for
another scroll source, for example drei's ScrollControls:
const scroll = useScroll();
useCameraPath(path, { progress: () => scroll.offset });
Not using React? evaluatePath and pathKeys are in depthview-r3f-bridge/path, with no
dependencies: evaluatePath(pathKeys(file), scrollPercent) gives the pose to put the camera in.
<CameraPath path={path} /> is the same as a component. evaluatePath(keys, percent) returns
the pose at a scroll position if you drive the camera yourself.
Two keys in a row with the same position, target and fov are a hold: the camera stays still between them (Depthview writes these for a view with Hold here on).
A look is what the inspector's Realism tab tunes: tone mapping and exposure, pixel ratio,
world lighting (a studio of soft light boxes, built as an environment map), soft shadows,
surface materials, bevelled edges and lens effects. Save to project (or your AI agent's
save_look) writes it as depthview-look.json. Your site applies it:
// React Three Fiber, inside <Canvas>
import look from './depthview-look.json';
import { DepthviewLook } from 'depthview-r3f-bridge/look/react';
<Canvas>
<Scene />
<DepthviewLook look={look} />
</Canvas>;
// Plain three.js
import look from './depthview-look.json';
import { applyLook } from 'depthview-r3f-bridge/look';
const applied = applyLook({ renderer, scene, camera }, look);
renderer.setAnimationLoop(() => applied.render()); // in place of renderer.render(scene, camera)
three >= 0.160. Lens effects use the passes that ship with three.js
(three/examples/jsm/postprocessing): nothing else is installed.applied.notes lists anything the scene could not do (a clear coat on a material that is
not MeshPhysicalMaterial, a shape that cannot be bevelled). applied.update(look) swaps in
a changed look, applied.dispose() puts everything back.performance: { adaptive: true, targetFps: 60 } in the look makes the site hold its frame
rate: on a device that cannot keep up it steps down shadow detail, pixel ratio and the
heavier lens effects, once, without stepping back up. applied.lightened lists the steps
it took.adapt: { follow: true }, the default): when a model finishes
loading after applyLook ran, its meshes cast and receive shadows, the shadow area grows
to hold it, its textures get anisotropic filtering, and surfaces and bevels matched by name
are applied to it. The check is one walk over the scene every 30 frames.
adapt: { textures: true } also corrects texture colour spaces on physically based
materials, and models holds the scale, height and reflection strength of whole models by
name.detail (brushed, rings, hammered, knurl, engraved text) is drawn into a normal
map when the look is applied: no texture files to ship.<DepthviewLook /> takes over drawing (render priority 1), like an
EffectComposer. Do not combine it with another composer.Values you keep tuning, declared where they are used:
import { depthviewControls } from 'depthview-r3f-bridge/controls';
const coin = depthviewControls('Coin', {
roughness: { value: 0.32, min: 0, max: 1 },
spin: true,
tint: '#c9ccd1',
});
// coin.roughness is updated in place: read it in your render loop, or pass a third
// argument, (values, key) => { ... }, to react when one changes.
import { useDepthviewControls } from 'depthview-r3f-bridge/controls/react';
const { roughness } = useDepthviewControls('Coin', { roughness: { value: 0.32, min: 0, max: 1 } });
<meshStandardMaterial roughness={roughness} />;
They show in the inspector under Realism › Your site's controls, in a panel named after
the group: a slider when there is a min and max, a switch for booleans, a colour picker
for #rrggbb. Changing one updates the page at once. Save to code (paired with
depthview-mcp) writes the new value back into this call, and only that literal. A production
build gets the values written in the code and nothing else.
import { DepthviewBridge } from 'depthview-r3f-bridge';
<Canvas>
<Scene />
<DepthviewBridge timeline={{ getProgress: () => progress, setProgress: (p) => (progress = p) }} />
</Canvas>;
line is 1-based and column 0-based, pointing at the < of the JSX element.
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.