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

@raster-app/react

Latest version: v0.5.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: cfofiu, leoortizz, raster.app, tjkohli
22 Versions
2.0K Downloads

Scan summary

@raster-app/react was last scanned on 23 Nov 2026 at version 0.5.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 22 versions; the latest 5 were published within 5 days (19–23 Nov 2026).
  • Findings: No rules fired in version 0.5.0.
  • Downloads: 1,985 downloads.

Versions

22 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.5.0 LATEST 23 Nov 2026 No rules fired
0.5.0-canary-1148831 23 Nov 2026 No rules fired
0.4.3 19 Nov 2026 No rules fired
0.4.3-canary-66ca640 19 Nov 2026 Not shown
0.4.2 19 Nov 2026 Not shown

No rules fired in 0.5.0

Findings

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

README

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

@raster-app/react

Raster's asset picker for React, and hooks to build your own Raster UI.

Documentation

raster.app/docs/api/sdk

Requirements

  • React 18 or 19
  • Node.js 20.19 or later

Installation

npm install @raster-app/react

It includes @raster-app/sdk and re-exports all of it, so import the client, toUserMessage and types such as Asset from @raster-app/react.

Usage

Add the picker
import {
    RasterPicker,
    RasterProvider,
    getFullSizeUrl,
    localStorageCredentialStore,
} from '@raster-app/react'
import '@raster-app/react/styles.css'

export function Picker({ onImage }: { onImage: (url: string) => void }) {
    return (
        <RasterProvider
            config={{
                host: { name: 'My App', openExternal: (url) => window.open(url, '_blank') },
                credentials: localStorageCredentialStore(),
            }}
        >
            <RasterPicker onPick={(asset) => onImage(getFullSizeUrl(asset) ?? '')} />
        </RasterProvider>
    )
}

host.name is the name Raster's sign-in page shows for your app, and openExternal opens that page in the user's browser. credentials is where the sign-in is kept.

The picker signs the user in, browses their organizations and libraries, searches, uploads, and lets them pick an asset or one of its versions. It fills its container.

Prop What it does
onPick(asset, organizationId) Called with the picked asset. getFullSizeUrl(asset) is its image. Leave it out for a picker that only browses.
organizationId Limits sign-in to this organization.
apiKey An organization API key the host shares with every user, who then browse without signing in. Give it Read access.
uploader { ref, name?, email?, avatarUrl? }: the user each upload made with apiKey is attributed to, by your own id.
scope 'org' to ask for one organization, 'user' for the whole account. Defaults to 'org' with an organizationId.
onError(error) Called with each error the picker shows, for logging.
theme 'light' or 'dark'. Follows the system when unset.
Theme

The picker's colors, font, radii and spacing are CSS variables. Set them on .rs to match your host; every other size scales from --rs-font-size, --rs-radius and --rs-space. This matches Webflow's Designer:

<RasterPicker theme="dark" onPick={onPick} />
.rs {
    --rs-bg: #292929;
    --rs-sidebar-bg: #353535;
    --rs-menu-bg: #404040;
    --rs-fg: #ffffff;
    --rs-fg-subtle: rgba(255, 255, 255, 0.67);
    --rs-fg-muted: rgba(255, 255, 255, 0.5);
    --rs-line: rgba(255, 255, 255, 0.13);
    --rs-line-strong: rgba(255, 255, 255, 0.19);
    --rs-hr: rgba(255, 255, 255, 0.13);
    --rs-input-bg: rgba(0, 0, 0, 0.22);
    --rs-button-secondary: rgba(255, 255, 255, 0.13);
    --rs-accent: #006acc;
    --rs-accent-fg: #ffffff;
    --rs-font-family: "Inter", sans-serif;
    --rs-font-size: 13px;
    --rs-font-weight-medium: 600;
    --rs-radius: 4px;
    --rs-space: 4px;
}

The full list is at the top of @raster-app/react/styles.css.

Build your own UI

The same provider gives your components hooks.

import {
    RasterProvider,
    createRasterClient,
    getThumbUrl,
    localStorageCredentialStore,
    useAssets,
    useSession,
    useSignIn,
} from '@raster-app/react'

// Create the client once, outside any component.
const client = createRasterClient({
    host: { name: 'My App', openExternal: (url) => window.open(url, '_blank') },
    credentials: localStorageCredentialStore(),
})

export function App() {
    return (
        <RasterProvider client={client}>
            <Library />
        </RasterProvider>
    )
}

function Library() {
    const { credentials, isConfigured, signOut } = useSession()
    const { state, signInWithDevice } = useSignIn()
    // Your organization's and library's ids.
    const { assets, hasMore, loadMore } = useAssets({ organizationId: 'acme', libraryId: 'lib-1' })

    if (credentials === undefined) return null // still reading the saved sign-in

    if (!isConfigured) {
        if (state.status === 'awaitingApproval') {
            return <p>Approve {state.device.userCode} in the Raster tab that just opened.</p>
        }
        return (
            <button type="button" onClick={signInWithDevice}>
                Sign in with Raster
            </button>
        )
    }

    return (
        <>
            {assets?.map((asset) => (
                <img key={asset.id} src={getThumbUrl(asset)} alt={asset.name ?? ''} width={200} />
            ))}
            {hasMore && (
                <button type="button" onClick={loadMore}>
                    Load more
                </button>
            )}
            <button type="button" onClick={signOut}>
                Sign out
            </button>
        </>
    )
}
Hook What it gives you
useSession() isConfigured, isSignedIn, userName and signOut().
useSignIn() Sign-in with Raster's device flow or an API key.
useOrganizations() The organizations the user can reach, in data.
useLibraries({ organizationId }) An organization's libraries, in data, each with the user's access.
useAssets({ organizationId, libraryId }) A library's assets and total, with loadMore().
useAssetSearch(scope, query) Search results, hits and found, as the user types.
useAssetUpload() upload() a file, then wait for Raster to process it.
usePromoteVariant() Make a variant its asset's default.
useRasterNavigation({ organizations }) The open organization, library and asset, remembered between visits.

useAssets pages as Raster's own grid does: it fetches the page after the last one shown ahead of time, with its thumbnails, so loadMore() shows it at once. Call it as the grid nears its end.

The hooks run in React Native too, with the client a server would use (see the SDK's README). RasterPicker and its stylesheet need a browser.

RasterProvider takes a client, or a config to create one, and state, where navigation is remembered: memoryStateStore() by default, or localStorageStateStore().

Errors

Every failure is a RasterApiError. Show the user toUserMessage(error), and branch on error.code.

License

MIT

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 @raster-app/react

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

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229