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

narrarium-server

Latest version: v0.1.15

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: keyserdsoze
0 Stars
0 Forks
17 Versions
714 Downloads
TypeScript Repo language

Scan summary

narrarium-server was last scanned on 23 Nov 2026 at version 0.1.15. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 17 versions; the latest 5 were published on 23 Nov 2026.
  • Findings: No rules fired in version 0.1.15.
  • Downloads: 714 downloads.

Versions

17 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.15 LATEST 23 Nov 2026 No rules fired
0.1.14 23 Nov 2026 No rules fired
0.1.13 23 Nov 2026 No rules fired
0.1.12 23 Nov 2026 Not shown
0.1.11 23 Nov 2026 Not shown

No rules fired in 0.1.15

Findings

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

README

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

narrarium-server

Personal Narrarium server. It runs the autopilot and the director of your books on your own computer, even with the browser closed, and keeps them in sync with the Narrarium web app. It bundles narrarium-engine, the same engine the web app runs in the browser, and the same AI client (createFetchAi): the same configuration gives the same requests and the same outcomes in both. What is the owner's alone stays the owner's: where the API keys may go (AI endpoints) and how much the server may spend.

Start

npx narrarium-server

Requirements: Node.js 22.14 or newer with npm, on Linux, macOS or Windows. Install git to host books stored on GitHub; without it the server hosts local books only.

The first start prepares a verified copy of the server in its data folder: npm must report a registry signature for it, and every release after the first one must also carry the provenance attestation of this repository's publishing workflow, at the tag of that release (see Updates). Then it starts two listeners, both on this computer only:

Address Who uses it
API http://127.0.0.1:24242 Narrarium, with a client token
Admin panel http://127.0.0.1:24243 You, with the admin code

Show the admin code with npx narrarium-server admin-code and open the admin panel in a browser on the same computer.

Connect Narrarium

  1. In the admin panel choose Generate a pairing code (valid five minutes, usable by one device once).
  2. In Narrarium open Settings → Personal server, keep the address http://127.0.0.1:24242 (or type the server's public address), type the nine digits and choose Pair.
  3. Back in the admin panel, read the request: the name the device gave itself, where it comes from (its address as the rate limits count it, or "this computer"), its user agent, the time, and a four-digit code. Approve it only if it is your device. Tick allow updates if this device may also update the server.

Whoever types the nine digits first gets the request, so the panel shows who that was; if your own device is told that the code is "wrong, expired or already used", somebody else used it: Reject the request. Every client in the Clients table shows the same facts (source, user agent, creation time, last use) and a Revoke button that works at once, without a confirmation. The four-digit code of a client is derived from its token (sha256 of the token, in hexadecimal, hashed again with a fixed prefix: see "API"), so a device can show what the panel shows and you can check that the device in front of you is the one that holds the token.

Narrarium checks the server's identity before sending anything: the server signs a fresh random value with its Ed25519 key, and Narrarium remembers the key's fingerprint. A server answering with another key is refused until you pair again. The fingerprint is shown in the admin panel and in Narrarium's settings.

Then, with your consent, send your AI router configuration from the same settings page, approve the AI endpoints it needs in the admin panel (AI endpoints: see below), optionally set a spending limit (AI spending), and open a book's Autopilot page to choose Move to my server.

You can also create a token without pairing: in the admin panel (Clients) or on the server's computer with npx narrarium-server client-token, then paste it in Narrarium.

Permissions
Permission Allows
read Listing books, reading files, the live stream, the update check; a book's MCP status and the tools of its MCP endpoint that read
write Registering books, writing files, sending the AI configuration; switching a book's MCP on or off; the tools of its MCP endpoint that change the book
run Starting, pausing and steering the autopilot (the limits of a run, a pause at the end of the chapter, the settings that can change during a run), editing and removing its permanent rules, asking the director; the tools of its MCP endpoint that steer the autopilot
update Replacing the server with a newer verified version (granted only when you tick it)

Revoking or rotating a token in the admin panel closes its live connection at once. A device that disconnects itself (DELETE /api/v1/session, with a token of any permission) revokes the token it presented and no other client's; a token that was replaced a moment ago cannot revoke its replacement.

AI endpoints and spending limits

Whoever holds a token with the run permission can start runs that spend your AI credits, and whoever holds one with write chooses where the configuration sends your API keys. Both are decided by you here, whatever a client asks for.

Approving AI endpoints

The server sends an API key only to an endpoint you approved. An endpoint is the base every request of an integration starts with: its endpoint, or the provider's default when it has none (https://api.openai.com/v1 for OpenAI, https://models.github.ai/inference for GitHub Models). Every integration of a configuration sent by a client, the providers' defaults included, waits in the admin panel (AI endpoints) and in GET /api/v1/ai (pendingApproval) until you approve it. After an update from an earlier version, what the saved configuration needs is listed at the first start.

  • An approval is an origin (https://api.openai.com) or an origin and a path (https://my-resource.openai.azure.com/openai/v1), compared as new URL writes them: host in lower case, no trailing slash, no query, default ports dropped. An origin covers every base on it (this is what every version up to 0.1.3 saved: nobody who approved before has to approve again); an entry with a path covers that base and what is under it, by whole segments (/v1 covers /v1/x, not /v10). The Approve button approves exactly the base it shows.
  • Before every call the server checks every endpoint the call can reach: the primary of its route and the fallbacks it may try (a fallback in another account that the privacy settings keep out, sameBoundaryOnly, or ask about, requireAcknowledgement, is never called by this server, which cannot answer that question: it needs no approval either). If one is not approved nothing is sent: the autopilot stops (status error, and Resume works once you approved) with a message that names the base, and a director question is answered 412 ai_not_approved. It is not retried, and it is not a network error.
  • The guard around outgoing requests (see Security) is unchanged and decides by origin; the check above is what makes the owner's decision exact.
  • GitHub Models is called at https://models.github.ai directly: unlike a browser, the server has no CORS restriction, so the web app's optional proxy setting (githubModelsBaseUrl) does not apply and is not passed to the AI client.
How long a call to a provider may take

A slow model (a 30B model behind a gateway) can be silent for minutes, and a call that does not stream (streamMode: "off") takes as long as the whole reply to begin. Three deadlines decide when the server gives up on a call, and they are the engine's (Timeouts and streaming in the engine's README), set for each integration in the web app: the start deadline (from sending the request until the headers arrive, the connection included; the whole call when it does not stream; 600 s by default, never under 30 s), the idle deadline (the longest silence between two pieces of a stream; 600 s by default, between 30 s and 3600 s) and a total cap (4 h, not configurable). Every reply streams unless the integration says otherwise, so a model that is alive is not silent.

Nothing else cuts a call earlier. Node's own fetch (undici) has two limits of its own, 300 s each, that no deadline of the engine can raise: headersTimeout (the headers of a response) and bodyTimeout (the silence between two pieces of a body). The server's process does not use it for these calls: when it starts it replaces fetch with the outbound guard's (network.ts, built on node:http and node:https, see Security), which limits the connection (30 s, as long as the engine's shortest start deadline, so that a connection is never cut before the engine would cut the call) and nothing after it. This was tried with the built server (dist/server.mjs): a provider that sent its headers after 310 s, and another that went silent for 310 s in the middle of a stream, were both waited for, and a plain Node 22 fetch given the same delays failed after 301 s (UND_ERR_HEADERS_TIMEOUT, UND_ERR_BODY_TIMEOUT). The tests do the same in a moment, with Node's two limits lowered, and one of them starts dist/server.mjs to check that the process as it is published wears the guard (a provider's redirect is refused there; the platform's fetch follows it). Do not give the AI client a fetch of its own (an undici Agent with the two limits off would not be cut either): it would leave the guard behind, with its pinned addresses, its refusal of private addresses and redirects, and its proxy.

A call that the author cancels (a pause now, the owner's switch, a director question whose connection closed) is aborted through the signal: the connection is closed at once, whatever the deadlines are, and the attempt is counted as a call that used nothing.

Spending limits and the switch

The server counts everything it spends on AI and refuses a call that your limits do not allow. The settings live in config.json (field spend, absent when nothing is set) and are changed only by you, in the admin panel (AI spending) or on the server's computer with npx narrarium-server spend; no client token, whatever its permissions, has a call for it (the API only shows them).

"spend": { "paused": false, "maxTokensPerDay": 0, "maxCostPerDay": 0, "maxTokensPerRun": 0, "maxCostPerRun": 0 }
Setting Meaning
paused The switch. While it is set no AI call is made (the default is not set: spending is allowed).
maxTokensPerDay, maxTokensPerRun Whole numbers of tokens (input and output); 0 is no limit. At most 10¹².
maxCostPerDay, maxCostPerRun Amounts in the currency of the AI configuration; 0 is no limit. At most 1 000 000. They count only the costs that are known (a model with a price, whose usage the provider reported; a cost worked out from estimated tokens counts too, and is said so): a model without a price has no cost to cap, the token limits cover every model.
  • Counting. private/spend.json (written atomically, 0600, a few kilobytes) holds the totals of each UTC day (the last 31 are kept) and of the latest run of each book. It is fed by the AI client's onAttemptEnd, so every attempt counts, the failed ones that used tokens included, and tokens the provider did not report count as the engine's estimate; an attempt that used nothing is only a call. It holds numbers and ids only: never a key, an address, a prompt, a reply or an error. It is read again at start, so a restart does not give the day's allowance back.
  • A damaged record never stops the server. If spend.json cannot be read it starts again from zero, keeps the unreadable file as spend.json.damaged, logs a line starting with Spend, and shows a warning in the panel.
  • Enforcement. Before every AI call (and before starting a run, so that a run that would stop at its first call leaves no error in the book) the server checks the switch, then the day's limits, then the run's. A limit is reached when the total has got to it: the call that crosses it is the last one, and nothing starts after it (calls already in flight finish). A run is one start of the autopilot of a book, from Start or Resume until it ends: its totals begin from zero at every start, and count the AI calls of that book while it runs (a director question asked on that book meanwhile included); a director question asked otherwise counts in the day only.
  • What the author sees. The run stops with status error and a message that says which limit, what was used and who can change it (Server spending cap reached: 450 tokens were used today (UTC) and the owner's cap is 400 a day…). It is never retried. It resumes with Resume after you raise the limit or, for a day's limit, after midnight UTC. Starting or asking while the switch is off or a day's limit is reached is answered 429 spend_limit with the same message.
  • The switch is a kill switch. Turning it off in the panel (or spend --pause) pauses every autopilot at once and abandons the call in flight (they are paused, not failed), and a director question in flight is abandoned too and answered 429 spend_limit.
  • What a client reads. GET /api/v1/ai (and the answer of PUT /api/v1/ai) carries, next to the redacted configuration, spend (always present, for every token with read):
"spend": {
  "paused": false,
  "today": { "day": "2026-11-22", "tokens": 12345, "calls": 31, "cost": 0.42, "currency": "USD", "costUnknownCalls": 2 },
  "limits": { "maxTokensPerDay": 0, "maxCostPerDay": 0, "maxTokensPerRun": 0, "maxCostPerRun": 0 }
}

today.cost and today.currency appear when a cost of the day is known; costUnknownCalls when some calls used tokens at an unknown or estimated cost. The panel (GET/POST /admin/api/spend, behind the admin session, the CSRF token and the panel's origin like every other action there) shows the same, plus the warning above.

npx narrarium-server spend                                   # today's use, the limits, the switch
npx narrarium-server spend --pause                           # no AI call until --resume
npx narrarium-server spend --max-tokens-per-day 200000 --max-cost-per-run 2.5

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 narrarium-server

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

PolinRider Returns
Research

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

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229