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

@fungi.computer/braid

Latest version: v0.6.19

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: liltechnomancer
0 Stars
0 Forks
52 Versions
19.4K Downloads
TypeScript Repo language

Scan summary

@fungi.computer/braid was last scanned on 23 Nov 2026 at version 0.6.19. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 52 versions; the latest 5 were published on 23 Nov 2026.
  • Findings: No rules fired in version 0.6.19.
  • Downloads: 19,413 downloads.

Versions

52 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.6.19 LATEST 23 Nov 2026 No rules fired
0.6.18 23 Nov 2026 No rules fired
0.6.17 23 Nov 2026 No rules fired
0.6.16 23 Nov 2026 Not shown
0.6.15 23 Nov 2026 Not shown

No rules fired in 0.6.19

Findings

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

README

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

Braid (@fungi.computer/braid)

Braid checks a workflow, a chart of steps that call your Apps' methods, and runs it on Cloudflare Workflows. A workflow can pause for a review, repeat steps or start from a trigger.

flowchart LR
  Editor[Trellis or your editor] -->|workflow graph| Validate[validate]
  Catalog[App method catalog] --> Validate
  Validate -->|issues, or ok| Compile[compile]
  Compile -->|plan + digest| Engine[Workers engine]
  Engine --> Runs[Workflow runs]

Quick start

Install it, then save this as plan.ts and run it with Node 24. It checks a one-node workflow against a catalog of App methods and compiles it to a plan.

npm install @fungi.computer/braid
import {
  compile,
  validate,
  type Catalog,
  type WorkflowDefinition,
} from "@fungi.computer/braid";

const catalog: Catalog = {
  "app:prints": {
    methods: {
      generate: {
        description: "Generate a panel",
        digest: "generate-v1",
        input: {
          type: "object",
          properties: { prompt: { type: "string" } },
          required: ["prompt"],
          additionalProperties: false,
        },
        output: {
          type: "object",
          properties: { image: { type: "string", format: "fungi:image" } },
          required: ["image"],
          additionalProperties: false,
        },
        effect: "write",
        approval: "none",
        requires: ["media.generation"],
      },
    },
  },
};

const graph: WorkflowDefinition = {
  format: "fungi.workflow/v1",
  title: "Panel",
  apps: { prints: { appId: "app:prints", role: "media" } },
  input: {
    type: "object",
    properties: { prompt: { type: "string" } },
    required: ["prompt"],
    additionalProperties: false,
  },
  nodes: [
    {
      id: "panel",
      kind: "app",
      app: "prints",
      method: "generate",
      methodDigest: "generate-v1",
      values: {},
    },
  ],
  edges: [
    {
      from: { node: "$input", port: "prompt" },
      to: { node: "panel", port: "prompt" },
    },
  ],
  output: { panel: { node: "panel", port: "image" } },
};

console.log(validate(graph, catalog).length); // 0 issues
const compiled = await compile(graph, catalog, {
  prints: { appId: "app:prints", installationId: "installation-1" },
});
console.log(compiled.ok ? compiled.plan.planDigest : compiled.issues);

It prints 0 and the plan's SHA-256 digest.

Common tasks

Check a graph and get editor-ready issues

validate(graph, catalog) returns typed issues. See Validate and compile.

Compile to a plan

compile returns a topologically ordered plan with a SHA-256 planDigest. See the Quick start.

Add a review, a repeat or a trigger

See Reviews, Bounded Repeat and Triggers.

Run it on Cloudflare

See Workers engine and Host runtime.

Reference

Overview

Braid runs workflows: typed graphs of App methods with reviews, repeats and triggers. It validates and compiles a fungi.workflow/v1 graph to a plan and executes it on Cloudflare Workflows. Trellis is the editor and App built on it.

Install

npm install @fungi.computer/braid

The root entry is browser-safe: validation, compilation and portable execution contracts. @fungi.computer/braid/cloudflare is the Workers engine and @fungi.computer/braid/runtime the host's saved-run store.

Validate and compile

Braid owns fungi.workflow/v1 and its graph interpreter. The browser-safe root exports validation, compilation, and portable execution contracts. validate(unknown, catalog) decodes with Effect Schema and returns typed issues for the editor. Expected schema and expression-syntax refusals become issues; unexpected parser or traversal defects propagate rather than being reported as author errors. compile returns either issues or a topologically ordered, installation-bound plan and SHA-256 planDigest. decodeExecutionPlan checks stored content against that identity and recompiles its domain invariants. Compilation grants no authority.

catalogMethods omits declarations marked hidden: true before reading their graph ports. Visible method digests remain unchanged; the discovery marker does not decide direct-call permissions.

V1 contract

  • Run input ports use the reserved node $input. Each node also emits after. after is reserved for that ordering signal: App input/output schemas and Code input/output schemas and transform fields declaring it are refused, rather than silently overwritten.
  • admitRunInput(definition, raw) fills absent property defaults and validates the resulting object with the supported projection. It returns {kind: "accepted", input} or {kind: "invalid", issues}; issues retain the validator's instance location and message. Explicit values are never replaced by defaults. Hosts record the admitted input, and triggers and graph execution use the same admission function.
  • Durations are integer milliseconds, positive and at most seven days. Retry attempts includes the first attempt (1–5); external effects cannot retry.
  • App and Code values and transform fields use Mapping: {literal: Json}, {template: string}, {from: PortRef, path?: JsonPointer}, {coalesce: Mapping[]}, {object: Record<string, Mapping>}, {array: Mapping[]}, or {each: {over: Mapping, body: Mapping, maxItems: 1..50}}. each exposes its current value/index as $item.value and $item.index; nested each expressions get their own item scope. The evaluator bounds materialization to 64 KiB and 65536 visits. A missing required member makes the whole construction absent. Mustache owns interpolation parsing ({{node.port}}, without HTML escaping or execution); JSON Pointer owns path lookup. References establish dependencies.
  • Object method inputs/outputs keep their property ports. Non-object values and unions use a single value port; the dispatcher still sends/receives the raw declared App value. A completion union containing required error objects exposes ok / refused, each carrying the entire declared record. Both sides retain their original schema constraints. App refusals route data; host admission refusals still fail the node. Apps do not reshape their APIs.
  • App nodes may declare gitAccess: {binding, repository, branches} (a write branch ceiling) or gitAccess: {binding, repository, access: "read"} (read only, no push). This declaration enters the plan digest and contains no installation IDs. The member selects installations through bindingsSelectionSchema; an explicit {kind: "team-source"} binding selects a registered Team source. Compilation freezes the selected binding, including a target separate from the executing App. resolveGitAccess forms Agar's canonical installation-local or Team-source RepositoryRef; resolved scopes are {repository: RepositoryRef, branches} or {repository: RepositoryRef, access: "read"}. These data alone grant no authority: the host checks the starting human's captured ceiling and live policy, at the access's own scope, before minting a pass, and the pass's scope is always its admitted access. Read access may name $trigger.repository: an App-event trigger declares repository, a mapping over its event (for example {from: {node: "$input", port: "payload"}, path: "/data/repository/name"}), and the node's binding must be that trigger's App. Arming admits no Git; each fire resolves the event's one repository inside the emitting installation, and run start admits the grantor's live read access to exactly it. A manual run or another trigger has no trigger repository, so the step is refused. Branches are unique exact refs/heads/... names, bounded to 256 entries; globs and revision expressions are refused.
  • Coalesce selects the first present, non-null branch. When every candidate comes from an inactive branch, the dependent node skips. An available fallback still runs, so alternative review choices merge with OR semantics.
  • Code nodes declare {id, kind: "code", source, input, output, values}. source is a JavaScript function body, including its return; input and output use the same projection grammar and ports as App methods. values and incoming edges explicitly map the data available to the node. Exact source, schemas and mappings enter the plan digest. Source uses the existing 256,000-byte whole-definition envelope; each schema retains its 20,000-byte and depth-16 bounds. Compilation never parses or executes JavaScript and adds no required App binding. Its only data capability is env.INPUT.read({}), returning a fresh copy of its mapped JSON. No Apps or network are available. The native step checkpoints the validated completion or a closed refusal, including the whole 64 KiB result envelope, with automatic retries disabled. Replay reads the checkpoint instead of rerunning JavaScript. Guest errors do not expose source, inputs, or raw sandbox causes in run events. Sandbox calls run inside an interruptible Effect; cancellation remains the host run owner's native instance termination, with no separate cancellation owner.
  • A named subgraphs entry has the same input/nodes/edges/output contract as the root. Map body inputs are {item, index}. Recursive map bodies are refused. The entire definition, including bodies, is capped at 64 nodes / 256 edges.
  • after edges order or gate any node. Other connected inputs belong to App or Code ports; controls name their references in their own fields. Review's selected port carries its first shown item; a condition's selected port is a signal.
  • Unreachable means unable to contribute to a graph output or a write/external method. Skipped branch outputs may be absent; this is not an output error.
  • The static expanded estimate budgets three durable operations per node plus all map items and three operations per item for creation, completion and parent notification, capped at 800 (headroom below Cloudflare's 1024).
  • The catalog is keyed by portable App ID and preserves T1's method shape (description, input/output, effect, approval, requires), with a catalog-owned digest per method. Bindings must match the declared App ID. Only used methods enter the consent manifest. Used method and event catalogs, including event-only emitter installations, enter the plan.
  • pending: true opts a method into Agar's shared Pending result. The catalog exposes only the completed output ports of the emitted Output/Pending union; its digest covers the original input/output declarations and the opt-in flag. Ordinary methods omit the flag and keep their existing digests. The Hub maps canonical Pending to engine Pending only for opted-in methods, with integer retryAfterMs from 1000 to 60000. Pending never becomes graph output and polls retain the same run/node/iteration key.

Reviews

  • A review shows ports to a person and waits up to its timeout. Without choices it approves or rejects (ports approved / rejected). With choices (two to eight {id, label}), the reviewer picks one; each choice id is an output port carrying the first shown item, so branches follow the pick.

Triggers

  • triggers (optional, at most 8, root graph only) declares what may start a run besides a person or Agent. For {id, on: "webhook"}, the host owns the URL, secret and signature scheme, so the format names no provider.

  • Inside a trigger, $input is the verified event (body, a stable non-secret eventId, allowlisted headers), not the run input. Every port repeats on a redelivery, so a redelivery maps to the same input. when is an ordinary predicate over it; input maps it onto the run's declared input with ordinary mappings. Without input, the body itself must be the run input. Triggers are part of the plan identity.

  • validate refuses references outside the event, unmapped required run input, undeclared fields and mismatched literals (trigger issues). triggerRun returns start with input checked against definition.input, ignored when when is false, or a typed refusal. triggerRequestId turns (scope, trigger, event id) into the idempotent start key.

  • A schedule declares {id, on: "schedule", cron: {expression, timeZone}, input?}. Almanac validates the cadence; consecutive occurrences must be at least five minutes apart. Its event exposes scheduledAt (ISO) and eventId; without a mapping that event is the run input. The Team arms published definitions as a member, rechecks access at each firing, and coalesces missed ticks.

  • An App event declares {id, on: "event", app, event, eventDigest, when?, input?}. catalogEvents pins the original emitted payload schema; rewording its description preserves the digest. Its event ports are payload (the full envelope) and eventId. Missing declarations and changed digests refuse compilation; a cached trigger checks those digests against the live catalog before starting.

  • Event mappings prove assignability for the payload or required object paths within it, plus literals, templates and coalesce. JSON Pointer spelling uses the maintained encoder. Optional paths, array indexing and unsupported schema assertions remain unproven and are refused. An emitted const projects to an enum for checking, while the digest retains the original schema. Schedule and webhook mapping behavior is unchanged.

Bounded Repeat

A Repeat node declares {id, kind: "repeat", body, maxRounds, until}. maxRounds is an integer from one to five. The body receives item from the enclosing graph input, a zero-based round, and previous: an empty object on the first round, then the preceding body output. The stop predicate reads the completed body output through $input. It cannot reach into another graph.

When the predicate becomes true, the node emits the body output on result. When all rounds finish without satisfying it, the node emits the last output on exhausted. The other outlet stays inactive. Both paths emit after; failed children fail the Repeat rather than fabricating a successful result.

Validation checks body input and output compatibility, references, recursive groups, and the bounded execution budget. The Cloudflare interpreter runs each round as a durable child with its own review identity and passes saved feedback into the next round. Map items retain their order when their bodies contain a Repeat. apps/hub/test/graph-workflow-repeat.native.mjs exercises the real engine and run owner with a fixture App dispatcher; it calls no media provider.

Workers engine

@fungi.computer/braid/cloudflare exports GraphWorkflow and GraphWorkflowBindings. A host subclasses the base, supplies its GRAPH_WORKFLOWS binding, and implements dispatcher(params) and terminalTriggerRun(params). The dispatcher loads the host's admitted plan, invokes App methods, records node events, and persists review waits. A host admitting Code also overrides codeExecution() with its actual Mycelium Sandbox and an explicitly captured timeoutMs. Hosts without this port refuse Code with code_execution_unavailable. Hub and standalone hosts give Workflow data transforms a 30,000 ms budget; this is independent of Agent policy. Local workerd hosts set WORKFLOW_CODE_LOCAL_DEV=true to report that CPU limits are not enforced; celld and deployed Workers forward the budget to the Loader. Terminal cleanup runs through the host callback; Braid does not own grants, run storage, Git admission, trigger reservations, cancellation requests, or outboxes.

The root exports GraphParams, NodeDispatcher, NodeCall, NodeEvent, GraphReview, DispatchResult, and their wire decoders without importing a Workers runtime. App pending calls retain their stable idempotency key while each poll has a distinct event identity. Retry attempts remain local to a poll. Hosts must re-admit App calls using their own stored authority.

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 @fungi.computer/braid

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

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (2)
Research

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

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229