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

@getsoren/shared-module

Latest version: v2.75.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: mibiki
35 Versions
9.0K Downloads

Scan summary

@getsoren/shared-module was last scanned on 24 Nov 2026 at version 2.75.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 35 versions; the latest 5 were published on 24 Nov 2026.
  • Findings: No rules fired in version 2.75.0.
  • Downloads: 9,049 downloads.

Versions

35 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.75.0 LATEST 24 Nov 2026 No rules fired
2.74.0 24 Nov 2026 No rules fired
2.73.1 24 Nov 2026 No rules fired
2.73.0 24 Nov 2026 Not shown
2.72.0 24 Nov 2026 Not shown

No rules fired in 2.75.0

Findings

Findings for v2.75.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 2.75.0; other versions have their own rules, not their own score.

README

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

@getsoren/shared-module

This package contains shared components, hooks and utilities. This package use dependencies only with injection.

  • Installation
  • Usage
  • Inject dependencies with provider
  • WebSocket
  • Orval

Installation

yarn add @getsoren/shared-module

Usage

import { InitializeAxiosConfig } from "@getsoren/shared-module";

Inject dependencies with provider

import { InjectDependenciesProvider, InitializeAxiosConfig } from "@getsoren/shared-module";

const App = () => (
  <InjectDependenciesProvider apiURL={import.meta.env.VITE_API_URL} libraries={{
    axios,
  }}>
    <InitializeAxiosConfig/>
    ...
  </InjectDependenciesProvider>
);

export default App;

Providers

Module Description Dependencies
InjectDependenciesProvider Inject dependencies for other shared component -
QueryClientProviderWithConfig React Query provider with default config React Query
ChatProvider Shared WebSocket chat connection provider via context -

Components

Module Type Description Dependencies
RequireAuth React Component Component for protected routing Axios & react-router-dom
GTMSendPageView React Component Send page view event to Google Tag Manager @getsoren/react-google-tag-manager & react-router-dom
InitializeAxiosConfig React Component Initialize Axios with custom default config options Axios
InitializeI18nConfig React Component Initialize i18n with custom config options i18next & react-i18next & i18next-browser-languagedetector
InitializeSentryConfig React Component Initialize Sentry (tracing + buffered replay) @sentry/react & react-router-dom
InitializeMapBoxConfig React Component Initialize MapBox mapbox-gl
InitializeDaysJSConfig React Component Initialize DayJS dayjs
InitializeHubSpot React Component Initialize HubSpot chat widget -
InitializeAmplitude React Component Initialize Amplitude (autocapture, session replay) @amplitude/analytics-browser & plugin-session-replay
PreloadErrorHandler React Component his component is used to handle preload error. dayjs

Hooks

Module Description Dependencies
useAdapter Hook with several adapter -
useAuth Hook for authentification management Axios
useHubSpot Hook to interact with the HubSpot chat widget (toggle, availability) InitializeHubSpot
useResponseError This hook is used to print error messages from the API i18next
useInfiniteDataGrid This hook is used to handle the infinite scroll of the DataGrid component. -
useCurrentLanguage This get the current language of app -
useFilters Hook to handle filter -
useChat Hook to consume the ChatProvider context (threads, messaging, presence) ChatProvider
useAmplitude Hook to track events, identify users and groups in Amplitude InitializeAmplitude

WebSocket

Chat

The chat module provides a WebSocket client for thread subscription, messaging, read receipts, and presence events.

With the React provider (recommended):

First, wrap your app with ChatProvider (inside InjectDependenciesProvider):

import { ChatProvider, InjectDependenciesProvider } from "@getsoren/shared-module";

const App = () => (
  <InjectDependenciesProvider apiURL={import.meta.env.VITE_API_URL} libraries={libraries} localStorageKeys={localStorageKeys}>
    <ChatProvider>
      <MyApp />
    </ChatProvider>
  </InjectDependenciesProvider>
);

Then use useChat() in any component:

import { useChat } from "@getsoren/shared-module";

const Chat = ({ threadId }: { threadId: string }) => {
  const { isReady, sendMessage, joinThread } = useChat();

  return (
    <div>
      <p>{isReady ? "Connected" : "Connecting..."}</p>
      <button onClick={() => joinThread(threadId)}>Join</button>
      <button onClick={() => sendMessage(threadId, "Hello!")}>Send</button>
    </div>
  );
};

The provider reads apiURL and the user token from InjectDependenciesProvider automatically. You can override both via props:

<ChatProvider url="wss://api.example.com/v2/threads/ws" token="my-jwt">

Without React (class only):

import { ChatClient } from "@getsoren/shared-module";

const client = new ChatClient({
  url: "wss://api.example.com/v2/threads/ws",
  getToken: () => "my-jwt",
  onEvent: (event) => console.log(event),
  onConnectionChange: (connected) => console.log("connected:", connected),
});

client.connect();
client.joinThread("thread-1");
client.sendMessage("thread-1", "Hello!");
Module Description Dependencies
ChatClient Framework-agnostic WebSocket client for the chat protocol -
ChatProvider Provider for shared WebSocket connection via context -
useChat React hook to consume the ChatProvider context ChatProvider

Orval

The @getsoren/shared-module/orval entry point provides everything needed to write an orval.config.ts.

⚠️ This entry relies on Node built-ins (fs, child_process) and must only be imported from orval.config.ts files, never from browser code.

// orval.config.ts
import { getOrvalConfig } from "@getsoren/shared-module/orval";
import { defineConfig } from "orval";

const config = getOrvalConfig([
  { customAxiosInstancePath: "./src/api/customSaasInstance.ts", input: { host: "saas" } },
  { customAxiosInstancePath: "./src/api/customAuthInstance.ts", input: { host: "auth" } },
  { customAxiosInstancePath: "./src/api/customSupplierInstance.ts", input: { host: "supplier" } },
]);

export default defineConfig(config);
Input resolution

When input is an object, the OpenAPI schema target is resolved with the following priorities:

  1. Local file (./openapi.<name>.json) — pulled schema snapshot
  2. Local service (https://<subdomain>.api.soren.test/openapi.json) — docker compose back environment, probed via cURL
  3. Upstream deployed service (https://<subdomain>.api.dev.getsoren.ai/openapi.json) — dev cluster, fallback
Host

host is the API name ("saas" | "auth" | "supplier") and derives all defaults:

Derived value Default
overrideApiName <host> → generated folders src/api/<host>/
localFile ./openapi.<host>.json
localUrl https://<subdomain>.api.soren.test/openapi.json
upstreamUrl https://<subdomain>.api.dev.getsoren.ai/openapi.json

The subdomain matches the host, except saas which is served on the app subdomain. Every derived value can be overridden individually:

// Target a specific environment
input: { host: "saas", upstreamUrl: "https://app.api.stg.getsoren.ai/openapi.json" }

// Fully custom, without host
input: {
  localFile: "./openapi.custom.json",
  localUrl: "https://custom.test/openapi.json",
  upstreamUrl: "https://custom.fr/openapi.json",
}

// Plain path or URL, no resolution
input: "./openapi.json"

customAxiosInstancePath is required: each API needs a dedicated axios instance file (its own baseURL env variable) which orval uses as mutator.

Module Description
getOrvalConfig Build the orval config (input resolution included)
resolveOrvalInput Standalone schema target resolution (local file → local → upstream)

Hour sheets and document import

Two entry points hold the rules the back office and the mobile app share, as pure functions with their tests; each app keeps only its screens. They need @getsoren/react-utils and dayjs.

Entry point Holds
@getsoren/shared-module/hourSheets A driver's hour sheet: its days and overtime, the document lines they state, their imputation, what blocks a save
@getsoren/shared-module/documentImport What the assistant read on a document (facts, an hour sheet's days) and the order the document is matched to
import { extendedRentalOf, sheetLinesOf } from "@getsoren/shared-module/hourSheets";
import { candidateOf, factsOfAnalysis, matchesOf } from "@getsoren/shared-module/documentImport";

A sheet's overtime is read apart from its day's hours, never added to them: the reading sends it as a line of the same day labelled overtime, and it is billed at a rate of its own.

import { daysOfAnalysis, overtimesOfAnalysis } from "@getsoren/shared-module/documentImport";
import { sheetOfReadDays } from "@getsoren/shared-module/hourSheets";

const sheet = sheetOfReadDays(daysOfAnalysis(analysis), readCostCentres, overtimesOfAnalysis(analysis));

Utils function

Module Description
articleNameAdapter Split an article's name from its mention of the driver, for a tag to say it
dateAdapter Adapt given date
distanceAdapter Adapt given distance
operator A machine rented with its driver: its article, its line by the hour, its hours per day
worksiteNameAdapter Adapt worksite name

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 @getsoren/shared-module

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

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

PolinRider Returns
Research

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

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229