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

@terpjs/react-core

Latest version: v0.43.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: aitt-npmjs
2 Stars
0 Forks
44 Versions
2.9K Downloads
Python Repo language

Scan summary

@terpjs/react-core was last scanned on 23 Nov 2026 at version 0.43.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 44 versions; the latest was published on 23 Nov 2026.
  • Findings: No rules fired in version 0.43.0.
  • Downloads: 2,898 downloads.

Versions

44 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.43.0 LATEST 23 Nov 2026 No rules fired
0.42.0 11 Nov 2026 No rules fired
0.41.1 11 Nov 2026 No rules fired
0.41.0 10 Nov 2026 Not shown
0.40.0 8 Nov 2026 Not shown

No rules fired in 0.43.0

Findings

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

README

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

@terpjs/react-core

Stack A (React) of the Terp frontend contract: the provider/hooks that wire a tree to @terpjs/contract, the auth session, the app shell + TanStack Router adapter, and the token-styled component surface every app module composes its screens from.

This README is the catalog of that surface. Everything listed here is exported from the package root (import { … } from "@terpjs/react-core"), except the test-setup helper under Testing components, which has a subpath of its own; each export also carries JSDoc, so your editor shows the same guidance inline. Never deep-import from src/ or dist/ — the boundary lint (@terpjs/eslint-boundaries) refuses it.

Conventions (the lint enforces these)

  • Token-styled primitives only — raw <button> / <input> / <select> / <textarea> are refused; use Button / Input / Select / Textarea plus the higher-level form primitives (Checkbox, RadioGroup, Switch).
  • Generated client + sanctioned realtime only — raw fetch / XMLHttpRequest / WebSocket / EventSource / navigator.sendBeacon are refused; use useTerpClient() (typed from the backend OpenAPI) and unwrap for request/response, or useRealtimeChannel() for typed SSE/WebSocket subscriptions. The hook mints a one-use connection ticket through the generated client; bearer tokens never enter URLs.
  • Design tokens, not inline colours — style with the CSS variables from @terpjs/contract (var(--color-*), var(--space-*), var(--font-*)). The full list, with each token's per-theme values and the foreground/background pairings the contrast gate enforces, is published as @terpjs/contract/tokens.manifest.json — read it rather than inferring names from the compiled sheet.
  • The accent is two tokens, and mixing them up is a contrast bug. --color-brand-primary is the accent as a filled surface, and the only thing that may sit on it is --color-brand-primary-contrast. --color-fg-accent is the accent as ink or a boundary against one of the app's own surfaces — accent text, a selected-tab underline, a focus ring, a checkbox's accent-color. One token cannot do both: in a dark theme the surface use needs a value dark enough to hold a white label and the ink use needs one light enough to read on a dark canvas, and there is no value satisfying both.
  • Static user-facing text is cataloged — use an {id, message} UiText descriptor for text props and <Trans id message /> for JSX bodies. Plain strings are reserved for dynamic business data, identifiers and product names. The boundary lint refuses bare static copy and checks every id against every target in frontend/i18n.json.
  • Dependency-free UI — react-core ships no icon/toast/i18n libraries. Glyphs are inline SVG; transient feedback goes through ToastProvider / useToast.
  • Security defaults — dangerouslySetInnerHTML and the DOM HTML-injection sinks (innerHTML / outerHTML / insertAdjacentHTML / document.write) are refused (render text, or use Markdown for rich content); eval() / new Function() are refused; javascript: URLs in href/src are refused; a static target="_blank" link needs rel="noopener".

Bootstrap & providers

Export Use
renderTerpApp, collectModules, withAdminArea One-call app bootstrap: glob-import modules/*/module.tsx, merge the packaged admin area (opt out with adminArea: false, or select sections with adminArea: { users, groups, audit }; an app route claiming an admin path overrides that screen), build the router, mount provider + auth gate + shell. Options include logo (sidebar brand) and footer.
TerpProvider, useAuth, useTerpClient The context root: session state + the typed API client. Drop to this + buildAppRouter when you need full control.
buildAppRouter, DEFAULT_ROLE_RANKS, PROFILE_PATH TanStack Router adapter: realises stack-agnostic module manifests (routes + nav + roles) into a real router; throws at build time on a route referencing a missing view. Mounts the built-in ProfileView at /profile unless an app manifest claims that path.
createAuthClient The auth/session contract implementation (login / refresh / currentUser) over the generated client.
LoginView The standard sign-in screen: username/password, plus optional SSO provider buttons via ssoProviders and a dev-only credential-fill button via devCredentials (gate it on import.meta.env.DEV).
useSso, parseSsoCallback, fetchSsoAuthorizationUrl, completeSsoCallback The SSO login seam (ADR 0058): useSso().begin(provider) opens an OIDC flow; TerpProvider completes the /auth/callback/{provider} redirect landing into a normal session on boot. renderTerpApp({ ssoProviders }) wires the buttons in one line.
RequireAuth Renders children only with a session; pairs with the router so the app mounts only when signed in.
ThemeProvider, ThemeToggle, useTheme Theming over the shipped palettes — midday, twilight, evening, night, contrast — plus system to follow the OS preference (its dark half is night). The earlier names light, dark and midnight are still accepted wherever a theme is named and resolve to midday, evening and night; the toggle writes the new names, so per-palette selectors in an app's own theme.css must use them. Applies data-theme on <html> (the token stylesheet carries every palette) and persists the choice. defaultTheme is how an app ships on a named theme — declare it in layout-contract.json so a tool can read and rewrite it, or pass the bootstrap option; both is refused. renderTerpApp mounts it for every app; the shell header uses an icon-only, token-themed variant="inline" menu.
LocaleProvider, defineAppLocales, LanguageSwitcher, useLocale, LOCALE_EN, LOCALE_NL The language seam over UiTextProvider: defineAppLocales(i18n, frameworkCatalogs) validates and merges checked-in app messages with framework chrome, the active locale persists, and the shell offers a picker. Pass sourceLocale with locales; missing/empty target messages, undocumented source copies, invalid locale selection and a non-English locale without a complete framework-string catalog throw rather than silently falling back. A framework string that counts something (dataViewResultsRange, dataViewSelectAllResults, accessUnexplainedRoutes) is a PluralText: one form per plural category, chosen by the count under the active locale's Intl.PluralRules, and a catalog must supply exactly the categories its locale uses (one and other for Dutch; one, few, many and other for Polish). <html lang> follows the active locale from mount and across every switch.
UserMenu, userInitials The signed-in user's menu, pinned by buildAppRouter to the bottom of the sidebar: an initials avatar trigger opening the identity block, Settings (the built-in profile page) and sign-out. Collapses to the avatar in the icon rail.
ProfileView The built-in profile / settings page (/profile): the server-validated identity, theme + language preferences, and sign-out.

Authorization gates (UI-side; the backend re-checks)

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 @terpjs/react-core

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

PolinRider Returns
Research

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

Vulnerability Insights

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

Frame 2085668439 (1)
Group 1261154229