Scan your whole stack
From OX Research Newsroom
Are you using @owlmeans/web-marketing-consent?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.4-rc.5
@owlmeans/web-marketing-consent was last scanned on 29 Nov 2026 at version 0.2.4-rc.5. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.4-rc.5 LATEST | 29 Nov 2026 | No rules fired |
| 0.2.4-rc.4 | 29 Nov 2026 | No rules fired |
| 0.2.5-alpha.0 | 29 Nov 2026 | No rules fired |
| 0.2.4-rc.3 | 29 Nov 2026 | Not shown |
| 0.2.4-rc.2 | 29 Nov 2026 | Not shown |
Findings for v0.2.4-rc.5. 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.2.4-rc.5; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The browser half of @owlmeans/marketing-consent: a post-sign-in "Agreements and consents" step,
a reusable settings-card body for changing choices later, the headless useMarketingConsent model
both share, and a fail-open MarketingConsentClientService that calls the server's status /
save / terms routes. appendMarketingConsent registers the client, the login step and a
terms-recording landing hook in one call. A web app uses it when its server runs
@owlmeans/server-marketing-consent. It never touches device cookie consent — that dialog is
@owlmeans/web-consent over @owlmeans/consent.
bun add @owlmeans/web-marketing-consent@^0.2.3
Peer dependencies: react, react-dom, tailwindcss, @radix-ui/react-label,
@radix-ui/react-slot, class-variance-authority, clsx, tailwind-merge.
MarketingConsentClientService at MARKETING_CONSENT_CLIENT_SERVICE. It never
calls the API while signed out and never throws: failures return null / false. status()
caches the last view unless called with { fresh: true }.marketingConsentStep, a LoginStep registered with @owlmeans/client-auth.
Pending while the status has anything new or revised and this sign-in has not skipped it; a
failed read means not pending.terms: 'step' moves the Terms confirmation from the sign-in screen onto this
step. In that mode the step is required and strict: a failed read or a terms version mismatch
keeps it pending, and Skip is never offered while the Terms row is up.termsRecorder, a landing hook that copies a Terms acceptance confirmed on
the sign-in screen to the server once a sign-in lands.localStorage entry keyed by the sign-in's sessionId (or token); a skip lasts
for this sign-in only.MarketingConsentBody is the step without page chrome; MarketingConsentScreen
is a plain centered frame around it.The protocol tree comes from makeMarketingConsentProtocols in a shared package and is the same
object the server serves.
import { makeMarketingConsentProtocols } from '@owlmeans/marketing-consent'
import { appendMarketingConsent, marketingConsentEntrypoints } from '@owlmeans/web-marketing-consent'
export const marketingConsentProtocols = makeMarketingConsentProtocols({ parent: appProtocols.account.base })
// in the web app's makeContext
appendMarketingConsent(context, { protocols: marketingConsentProtocols })
context.registerEntrypoints([
...entrypoints,
...marketingConsentEntrypoints(marketingConsentProtocols), // the screen only
])
base, status, save and terms are ordinary backend routes; the app binds them with its own
bindAll, as it does for any other API.
appendMarketingConsent(context, {
protocols: marketingConsentProtocols,
step: true, // register the post-sign-in step (default)
terms: 'step', // true (default) | false | 'step'
preferences: 'account:privacy', // alias of the app's "Privacy choices" screen
bulkSelection: 'required', // 'all' (default) | 'required'
locale: 'en',
})
import { handler } from '@owlmeans/client'
import { bindScreen } from '@owlmeans/client-entrypoint'
import { MarketingConsentBody } from '@owlmeans/web-marketing-consent'
const ConsentStep = () => (
<AppLayout>
<div className="mx-auto max-w-2xl empty:hidden">
<MarketingConsentBody />
</div>
</AppLayout>
)
context.registerEntrypoint(bindScreen(marketingConsentProtocols.screen, handler(ConsentStep)))
The body renders nothing once nothing is pending and continues the login flow by itself, so a frame should hide itself while empty.
import { MarketingConsentPreferences } from '@owlmeans/web-marketing-consent'
export const PrivacyChoices = () => (
<section>
<h2>Privacy choices</h2>
<MarketingConsentPreferences onSaved={() => toast('Saved')} />
</section>
)
The card loads the whole catalogue (not only pending items), has no Terms row and no Skip, and
saves with source: 'settings'.
import { MARKETING_CONSENT_CLIENT_SERVICE } from '@owlmeans/web-marketing-consent'
import type { MarketingConsentClientService } from '@owlmeans/web-marketing-consent'
const client = context.service<MarketingConsentClientService>(MARKETING_CONSENT_CLIENT_SERVICE)
const view = await client.status() // cached when available; null on failure or signed out
const link = client.preferences() // the configured "Privacy choices" alias, if any
@source "../../../node_modules/@owlmeans/web-marketing-consent/src";
Point at src, not build.
| Symbol | Kind | Purpose |
|---|---|---|
appendMarketingConsent(ctx, opts) |
function | Client service + login step + terms landing hook |
marketingConsentEntrypoints(protocols) |
function | [bindScreen(protocols.screen, handler(MarketingConsentScreen))] |
makeMarketingConsentClient(protocols, opts?) |
function | Builds the lazy MarketingConsentClientService |
appendMarketingConsentClient(ctx, protocols, opts?) |
function | Registers it unless the alias exists |
marketingConsentStep(client, entrypointAlias, opts?) |
function | The LoginStep; opts.confirmsTerms enables Terms mode |
termsRecorder(client, locale?) |
function | The LoginLandingHook (priority 100) |
marketingConsentSkipOf(ctx) |
function | Memoized { isSkipped(), markSkipped() } |
makeMarketingConsentSkipHelper(ctx) |
function | Builds a MarketingConsentSkipHelper |
useMarketingConsent(opts?) |
hook | UseMarketingConsentModel; opts is { source?: 'sign-in' \| 'settings', locale? } |
| Symbol | Props | Purpose |
|---|---|---|
MarketingConsentBody |
{ className? } |
The step: loading, Terms row, optional-only, unreadable and empty states |
MarketingConsentScreen |
RoutedComponent |
Centered frame up to 768px around the body |
MarketingConsentPreferences |
{ translate?, className?, onSaved? } |
Settings-card body |
| Symbol | Value |
|---|---|
MARKETING_CONSENT_CLIENT_SERVICE |
'marketing-consent-client' |
MARKETING_CONSENT_LOGIN_STEP |
'marketing-consent' |
MARKETING_CONSENT_LANDING_HOOK_TERMS |
'marketing-consent:terms' |
MARKETING_CONSENT_SKIP_STORAGE |
'_owlmeans-marketing-consent-skipped' |
MARKETING_CONSENT_I18N |
'marketing-consent' — the same resource as @owlmeans/marketing-consent |
AUTH_I18N |
'auth' — the sign-in screen's resource the Terms row reads |
MarketingConsentAppendOptions, MarketingConsentBulkSelection, MarketingConsentClientService,
MarketingConsentClientContext, MakeMarketingConsentClientOptions, MarketingConsentStepOptions,
MarketingConsentSkipHelper, UseMarketingConsentModel, UseMarketingConsentOptions,
MarketingConsentGroup, MarketingConsentTermsModel, MarketingConsentPreferencesProps,
MarketingConsentBodyProps, ConsentFieldsProps, ConsentRowProps, ConsentTermsProps,
ConsentPrivacyNoticeProps, Translate, InlineLink, RowText, InlineHelper.
screen.* and preferences.* keys are added to the marketing-consent resource in en, pl,
ru, be, uk, es, de and fr; the consent statements come from @owlmeans/marketing-consent
under the same resource. The Terms row and privacy notice reuse the sign-in screen's auth
resource. An app adds its own consents' words with i18nHelper.addI18nLib(lng, 'marketing-consent', …).
bun test ./tests drives Chromium against a Vite harness built on the real @owlmeans/web-client
context; status / save / terms are stubbed with page.route. UI specs address
data-marketing-consent-* attributes (-item="<key>", -all, -save, -skip, -terms, -error,
-preferences-save and others), which @owlmeans/test-ui's page helper also reads — do not rename
them.
@source line, or pointing it at build — the screens render unstyled.marketingConsentEntrypoints — the API routes also need the app's own bindAll.opts.config to change the catalogue in the browser — it is accepted but not read; the
server resolves the catalogue.MarketingConsentPreferences as the login step — it never continues the login flow.useMarketingConsent records the
wrong language with the decisions.terms: 'step' together with step: false behaves like terms: true.The web-marketing-consent skill covers the states, the Terms mode and the attribute contract in
depth; marketing-consent and server-marketing-consent cover the contracts and the server.
@owlmeans/marketing-consent — catalogue, status resolution, protocol tree@owlmeans/server-marketing-consent — handlers for status / save / terms@owlmeans/client-auth — login steps, landing hooks, loginTermsHelper@owlmeans/web-consent — device cookie consent, a separate surface@owlmeans/web-oauth — the same screen-only binding split for OAuth consentThis package ships embedded agent skills under agent-meta/. After installing your
@owlmeans/* packages, run the OwlMeans agent-skills installer to place them into
your project's skill store (.agents/skills/):
npx @owlmeans/agent-skills@^0.2.3
The embedded files are version-matched to this package release. Do not edit them directly — they are regenerated on each publish. To contribute guidance edits, open a PR against the source monorepo.
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.