Scan your whole stack
Are you using @getsoren/shared-module?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.75.0
@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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
This package contains shared components, hooks and utilities. This package use dependencies only with injection.
yarn add @getsoren/shared-module
import { InitializeAxiosConfig } from "@getsoren/shared-module";
import { InjectDependenciesProvider, InitializeAxiosConfig } from "@getsoren/shared-module";
const App = () => (
<InjectDependenciesProvider apiURL={import.meta.env.VITE_API_URL} libraries={{
axios,
}}>
<InitializeAxiosConfig/>
...
</InjectDependenciesProvider>
);
export default App;
| 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 | - |
| 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 |
| 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 |
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 |
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 fromorval.config.tsfiles, 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);
When input is an object, the OpenAPI schema target is resolved with the following priorities:
./openapi.<name>.json) — pulled schema snapshothttps://<subdomain>.api.soren.test/openapi.json) — docker compose back environment, probed via cURLhttps://<subdomain>.api.dev.getsoren.ai/openapi.json) — dev cluster, fallbackhost 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) |
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));
| 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 |
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.