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

@openrails/contentkit-ui

Latest version: v0.139.0

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: fidika
1 Stars
0 Forks
129 Versions
8.7K Downloads
Go Repo language

Scan summary

@openrails/contentkit-ui was last scanned on 25 Nov 2026 at version 0.139.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 129 versions; the latest 5 were published within 4 days (22–25 Nov 2026).
  • Findings: No rules fired in version 0.139.0.
  • Downloads: 8,747 downloads.

Versions

129 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.139.0 LATEST 25 Nov 2026 No rules fired
0.138.26 23 Nov 2026 No rules fired
0.138.24 23 Nov 2026 No rules fired
0.138.23 23 Nov 2026 Not shown
0.138.22 22 Nov 2026 Not shown

No rules fired in 0.139.0

Findings

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

README

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

@openrails/contentkit-ui

ContentKit in the browser: a framework-free client, content URLs, React hooks and styled components (uploads with cropping, video posters, galleries, HLS playback, comments, reactions, favorites, polls and their staff screens). UI releases share the backend's major/minor API version; UI-only patches can advance independently (for example, UI 0.89.1 with ContentKit v0.89.0).

pnpm add @openrails/contentkit-ui@X.Y.Z
Import Contents Needs
@openrails/contentkit-ui styled components, ContentKitUiProvider, i18n react, react-dom
@openrails/contentkit-ui/react ContentKitProvider and every hook react
@openrails/contentkit-ui/client createContentKitClient, ContentKitError, generated wire types, crop/aspect/rendition/ABR/gallery math nothing
@openrails/contentkit-ui/urls content codes, [/{lang}]/{route}/{CODE}[/{slug}] paths, canonical nothing
@openrails/contentkit-ui/editor RichTextEditor, richTextEditor (ContentManager's body editor) the optional peers @tiptap/core, @tiptap/pm, @tiptap/react, @tiptap/starter-kit, @tiptap/extension-image, @tiptap/extensions (3.31+)
@openrails/contentkit-ui/locales/{de,es,ja,ko,zh} message bundles (English is built in)
@openrails/contentkit-ui/styles.css the stylesheet, scoped under .ckui (the root entry also installs it)

react and react-dom are optional peers, so /client and /urls work without React. hls.js loads on first play.

Client and providers

import { createContentKitClient } from "@openrails/contentkit-ui/client";
import { ContentKitProvider } from "@openrails/contentkit-ui/react";
import { ContentKitUiProvider } from "@openrails/contentkit-ui";
import { createContentURLs } from "@openrails/contentkit-ui/urls";

const contentkit = createContentKitClient({
  baseUrl: "/api/contentkit",               // the host's contentkit.Routes.Prefix
  mounts: { upload: "/api/v1/user-uploads" }, // optional: modules mounted elsewhere (a string, or (ref) => string)
  fetch: auth.authFetch,                    // an authenticating transport
  token: () => auth.getAccessToken(),       // HLS playlists on the API origin (hls.js uses XHR)
  language: () => lang,                     // Accept-Language
});
const urls = createContentURLs({ routes: { video: "watch", gallery: "g" }, languages: ["en", "es"], origin: "https://example.com" });

<ContentKitProvider
  client={contentkit}
  viewer={user?.id ?? null}                 // the signed-in user as ContentKit sees it
  language={lang}                          // same value as the client's language callback
  accessRevision={accessRevision}          // increment when permissions/entitlements change
  onSignIn={() => openSignIn()}             // asks signed-out visitors to sign in where the server refuses them
  urls={urls}
  navigate={(to, o) => navigate(to, o)}
  onChange={(change) => queryClient.invalidateQueries({ queryKey: ["media", change.ref.id] })}
  onError={(error, { operation }) => report(operation, error)}
>
  <ContentKitUiProvider appearance={{ theme: "inherit" }} language={lang} density={[1, 3]}>
    <App />
  </ContentKitUiProvider>
</ContentKitProvider>;

Keep viewer, language and accessRevision current on the provider. A change starts fresh media and social reads without remounting the children. Old requests are abandoned when their last reader leaves; their results cannot fill the new scope. accessRevision is optional when the host has no changing access state. It is a cache signal, not an authorization decision. Without a provider, replace the client when its session or request language changes. Host-supplied read and initial data must also belong to the current viewer and language.

Writes retain the cache scope they started in. After a scope change, a late notification refetches affected reads instead of copying its response into them; onChange still runs. Use a separate client for each independent session or request-language context, not one client across differently scoped providers. The framework-free client exposes setReadScope(key) and passes that key as the second subscribe / onChange argument, or null when the scope changed during the operation. This does not change the operation's result or its authentication.

  • Mounts. Without mounts, modules live under {baseUrl}/v1: content, entities and the content model at its root, /media (reads, HLS), /media/upload, /codes. A mount is a module's full base URL.
  • client.media: upload, put (upload, commit, wait), commit, read, waitFor, editorView, hlsBase(ref, dir), discard, and hls for players (<VideoPlayer loader={contentkit.media.hls} />): playlists load through the client's fetch, so they carry what its calls carry (an authFetch adds DPoP proofs); segments carry only cookies. Uploads hash in a Web Worker, send one checksum-bound PUT up to 64 MiB and resumable multipart above (onState/resume). The bucket must allow CORS PUT from the app's origin with Content-Type and x-amz-checksum-sha256.
  • Content modules, one per resource, each method one route of the generated route table with its generated types: contents, catalog, comments, reactions, favorites, polls, bans ("owner" or "global"; get("global", user)), moderation, entities, codes. Lists take limit/offset (the review queue and entity listings a cursor); contents.manage lists what the caller manages (kind, state incl. deleted, q); catalog.totals({kinds, languages}) counts what is open; staff lists are polls.adminList (state, q), comments.adminList (contentKind, author); entities.members(id) pages an entity's memberships, entities.ofContent(id) / setOfContent a content's, setSharedOfContent only the parent links and setOfVersion only one version's links. These replacements are atomic and preserve other versions; their create entries also attach to that same scope. entities.uploadImage(entity, "cover", file) its cover; client.kinds() the content model. contents.manage({kind: "gallery"}) uses /manage/gallery; omitting kind lists manageable content across kinds at /manage.
  • Content deletion is version deletion. Call contents.removeVersion(id, versionId); deleting the last undeleted version also soft-deletes its parent atomically. This includes hidden single-version kinds: use the ID in content.versions. Restore that edition with contents.updateVersion(id, versionId, {state: "published"}); its automatically deleted parent returns to its earlier draft or publication schedule. contents.restore(id) is for an independently hidden parent, such as moderation. Permanent purge follows the configured deletion retention (30 days by default).
  • Images of content and polls go to the item's server-named upload path: media.uploadNamed(ref, file) resolves the name content routes take (contents.setCover(id, version, name): every file of a content lives in a version); media.uploadInline({kind, id, version}, file) puts a body image in that version's private files only, and resolves its reference (ref, contentkit:i-{uuid}, what the body stores: imageRef(name)) and a URL that shows it now; polls.uploadImage and polls.uploadOptionImage do both steps. Reads resolve references: a content's body shows its images' signed URLs (the opened version's private files) and images maps each name to its URL. folders renames the poll media kind. Declared-public covers stay public regardless of release visibility; private body images require signed access. useContent shows an unpublished item's private images to its editors (below).
  • client.config() says what the content module allows: which interactions signed-out visitors may make (content.Options.Anonymous, none by default) and the longest comment (CommentMaxLength, 2,200 by default; longer is comment_too_long with details.max).
  • client.subscribe(listener) receives every successful mutation (media.committed, media.processed, comment.created, reaction.changed, poll.updated, ban.saved, …); ContentKitProvider onChange is the same stream, for the host's cache.
  • ContentKitProvider holds the client, URL config, navigate, onChange, onError and the read store hooks share: one request per item and options while any hook shows it; set() and processed uploads update every reader in place.
  • ContentKitUiProvider: appearance (theme light/dark/auto/inherit, variables as --ckui-*), language (loads its built-in bundle), messages (bundles over it), t (host translate hook), density (default [1, 3]), inlinePreview (default true).

Hooks

Hooks read the client from ContentKitProvider; a client option overrides it.

const q = useUploadQueue({ ref, path: "originals/{name}" });
q.add(input.files!); q.move(id, 0); await q.commit();

const one = useUpload();
await one.upload(file, { ref, path: "inline/x.png", put: {} });

const img = useSlotImage({ ref, path: "avatar", image });
const crop = useSlotCrop({ ref, path: "avatar", file: img.file, aspect: "1:1", onSaved: img.set });

Content hooks share one store per client: one request per item while any hook shows it, kept per viewer, with every change made through the client applied in place. Reactions, favorites and votes apply at once and roll back if the server refuses them.

const thread = useComments(ref, { sort: "best" });
await thread.post("Nice!", { replyTo: parentId });
await thread.react(comment, 1);
const { counts, toggle } = useReaction(ref);
const { favorited, count, toggle: fav } = useFavorite(ref);
const { poll, vote } = usePoll(null, { language }); // the newest live poll
const editor = usePollEditor(pollId);                // staff

A content editor puts text.body in its rich-text field and inserts what uploadImage(file) resolves: URLs that show the images now (the file for a fresh upload, public files, signed editor views of an unpublished item's images, read and refreshed as needed). saveText({ title, body }) stores each of those URLs as the image's reference (storedBody(html) does the same for a host's own save); coverSrc shows the cover, imageSrc(name) any image.

const editor = useContent(id, "blog", "en");
<RichText value={editor.text?.body} onImage={editor.uploadImage} onSave={(html) => editor.saveText({ title, body: html })} />
<img src={editor.coverSrc} alt="" />

Also useContentConfig (client.config(), read once), useCommentReplies, useCanComment (may the caller comment, may signed-out visitors, the ban that stops it, and what it may do to others' comments), useLatestComments, usePolls, useManagedContents (kind, state, q), useContent (with publish, restore), and for staff useAdminComments (contentKind, author), useModerationQueue, useCommentBans, useGlobalCommentBan (one user's), and useStaffAccess, useAdminLocation, useFlowClient and usePaged, which the admin flows are built from.

Also: useCrop, useVideoImages, useFrameStrip, useVideoFrame, useVideoPoster, useEncodeProgress, useHlsPlayer, useCarousel, useGalleryView, useInlinePreview, useRefreshBeforeExpiry, usePresets, useContentKitClient, useContentURLs, useErrorReporter.

useMediaRead
const { read, loading, error, processing, reload, refresh, set } =
  useMediaRead(ref, { prefix: "low-res/", editor: true, window: { start: 0, end: 120 } });

One read per item and options, shared by every hook showing it. It reads again shortly before the URLs expire, waits out rate_limited, observes SSE while uploads process (one authenticated stream per item and account), and reloads after any commit through the same client. window splits a long item into reads of chunk files (default 50) merged into one result. Only the requested windows stay active and refresh. Leaving a window releases its subscription, timer and unused in-flight request; revisiting it obtains a fresh read. One prior result supplies placeholder metadata while the next range loads, then is replaced. That placeholder is discarded after an error or item, client or account-scope change. There is no passive window cache. An explicitly requested large range (such as an entire editor folder) still reads every window in that range. refresh() joins a read in flight (a player's grant refresh); reload() restarts it. read shows a host's read until reload().

useMediaFolder
const folder = useMediaFolder(ref, { paths: ["images/{name}", "videos/{name}"], commit: "manual" });
folder.add(files);               // screened and queued; refusals in folder.refused
await folder.commit();           // the uploaded files, in queue order
await folder.move(path, 0); await folder.rename(path, "cover");
await folder.edit(path, edit); await folder.replace(path, file); await folder.remove([path]);
folder.discard();                // stop uploads and empty the queue

An item's folder for its editors: the editor read (all windows), an upload queue, and the kind's upload rules from the editor read, which screen type, size and file caps before anything uploads and name files around names taken. groups lists each path's uploads; commit: "auto" commits each upload once those before it have (a draft). Files added before the editor read arrives wait in waiting and are screened when its rules do (or refused if the read fails or states no rules). ref may be null until the item exists, so a composer can create its draft on the first drop. busy is true while work is in flight (files waiting, uploads queued or running, a commit or update); fileCount counts the uploads and the files on their way in. A committed file leaves the queue once the read lists it. Failures go to the provider's onError with an operation (upload, folder.commit, folder.update, folder.process for uploads the worker fails after the editor opened) and the file's name.

useEditorCrop
const crop = useEditorCrop(ref, cropping); // a path, or null
// crop.status: idle | loading | cropping (source, edit) | saving | done | error
await crop.save(edit);

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 @openrails/contentkit-ui

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

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

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

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229