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

@aglyn/tenant-runtime

Latest version: v1.29.1

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: zachary.gover, zgover
7 Stars
2 Forks
166 Versions
14.0K Downloads
TypeScript Repo language

Scan summary

@aglyn/tenant-runtime was last scanned on 24 Nov 2026 at version 1.29.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 166 versions; the latest 5 were published within 6 days (19–24 Nov 2026).
  • Findings: No rules fired in version 1.29.1.
  • Downloads: 14,031 downloads.

Versions

166 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.29.1 LATEST 24 Nov 2026 No rules fired
1.29.0 24 Nov 2026 No rules fired
1.28.0 20 Nov 2026 No rules fired
1.27.0 19 Nov 2026 Not shown
1.26.6 19 Nov 2026 Not shown

No rules fired in 1.29.1

Findings

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

README

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

@aglyn/tenant-runtime

The server-side runtime that serves a published Aglyn site: the host-event seam that plugins listen on, and the screen-composition pipeline that turns a stored screen into the node tree a page renders. Install it if you are running Aglyn's tenant server, or writing plugin server code that needs to emit host events or compose a screen.

Published to npm from the Aglyn monorepo. Versions follow semantic versioning.

Install

npm install @aglyn/tenant-runtime

Peer dependencies:

  • firebase-admin

This package is server-only. It reads Firestore through firebase-admin and must not be imported from client code.

What's in it

From the package root, the host-event runtime. It hosts the event seam that no single plugin owns, and runs none of what an event triggers:

  • emitHostEvent is the one emit point. It hands an event to every registered host-event listener and returns any site alerts, so request/response emitters (a form submission, a booking) can surface them.
  • registerHostEventListener is how a plugin hears host events. A plugin registers from its server declarations entry, which the apps run at boot, so a core route that never loads the plugin still reaches it. The automation engine is one such listener, and lives in its own plugin.
  • dispatchHostAutomation runs one automation by id for a site event the published page evaluated itself, through the listeners that dispatch.
  • listHostEventListeners and runHostEventListeners for diagnostics and direct use.

Contact capture and owner assignment are the CRM's (@aglyn/plugins-crm/server/capture-host-contact, @aglyn/plugins-crm/server/assign-contact-owner): another plugin reports a person through the platform's capture contract (plugin-contact-capture). Finding a dataset by its id or name is the data plugin's (@aglyn/plugins-data/server/resolve-dataset).

By subpath, the screen-composition pipeline. This is the render read-path shared by the tenant app's server rendering and any plugin that needs to compose a screen on the server:

  • @aglyn/tenant-runtime/get-screen (getScreen) and @aglyn/tenant-runtime/get-screen-version (getScreenVersion)
  • @aglyn/tenant-runtime/compose-screen-nodes (composeScreenNodes, composeNodesWithChrome)
  • the loaders behind them: get-layout-version, get-components, get-variables, get-forms, get-plugin-installs — a repeat's rows come from the plugin that keeps them, through @aglyn/aglyn/plugin-manager/repeat-rows
  • page composers for collection, author and search pages: compose-collection-page, compose-author-page, compose-search-page
  • apply-publish-schedule (applyDuePublishSchedule)

Each subpath maps to a file under src/lib.

Usage

Listening to host events from a plugin's server code:

import { registerHostEventListener } from '@aglyn/tenant-runtime'

registerHostEventListener('my-plugin', {
  async onEvent(hostId, event, payload, context) {
    // react to the event; optionally return site alerts.
    // `context.actor` is who caused it, when the emitting door knew:
    // { kind: 'member' | 'visitor' | 'apiKey' | 'platform', uid?, email?, apiKeyName? }
  },
})

Raising one, with who caused it:

await emitHostEvent(hostId, 'contactStageChanged', payload, {
  actor: { kind: 'member', uid, email },
})

Loading a screen on the server:

import { getScreen } from '@aglyn/tenant-runtime/get-screen'

const screen = await getScreen({ hostId, screenId })

The render path never awaits unbounded I/O

A page render, and everything it awaits — the layouts, the page-data loader, this pipeline, plugin page enrichers, resolvers, redirect resolvers, repeat readers and computed variables, and the middleware in front of them — never waits on outbound network I/O without a deadline of its own (AGL-3565).

  • Wrap the await in boundedAwait(work, ms, fallback, label) from @aglyn/shared-util-http/bounded-await: a real timer race that answers with fallback when ms passes, whatever the work does. Pass its signal to fetch so the request is canceled too, and put the body read inside the work. An AbortSignal on its own is not a deadline: on Vercel, Next's patched fetch handed back a promise that never settled with AbortSignal.timeout(2500) on it, and every uncached page on the platform waited for the 60-second function limit.
  • Pick a fallback the page can render with, and say what it means: the linked font stylesheet, the verdict "unreachable", a redirect rule held.
  • A process cache that outlives a request holds settled values only (createSettledValueCache, which refuses a promise). A cached in-flight promise is awaited by every later render, each with a fresh deadline in front of nothing.
  • Work nothing needs the answer of is detached with void, never awaited.

apps/tenant/specs/render-path-bounded-io.spec.ts sweeps every symbol a render can reach for a fetch, a fetch passed on as a value, a token exchange or http(s).request, and refuses one that is not behind boundedAwait or void. Its allowlist carries a reason per row and may only shrink. Firestore reads through firebase-admin are outside it: they carry the client's own deadlines.

How it fits

This is the tenant scope of the package map. It depends only on @aglyn/aglyn, @aglyn/tenant-data-admin (its server data layer) and firebase-admin, so it is importable from the tenant app's API routes and from a plugin's server handlers without pulling app code into a library. A plugin may import it; it never imports a plugin. Plugins reach it by registering a listener, and the runtime knows them only through that registration and the loader manifests.

License

Apache-2.0. Source: https://github.com/aglyn/aglyn/tree/main/libs/tenant/runtime

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 @aglyn/tenant-runtime

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

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

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

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

Frame 2085668439 (1)
Group 1261154229