Scan your whole stack
From OX Research Newsroom
Are you using @raster-app/react?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.5.0
@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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
Raster's asset picker for React, and hooks to build your own Raster UI.
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.
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. |
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.
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().
Every failure is a RasterApiError. Show the user toUserMessage(error), and branch on
error.code.
MIT
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.