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

@orz/query

Latest version: v0.1.2-master.20261127083915.gf6fce9e

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: orzfly
1 Stars
0 Forks
120 Versions
26.8K Downloads
TypeScript Repo language

Scan summary

@orz/query was last scanned on 27 Nov 2026 at version 0.1.2-master.20261127083915.gf6fce9e. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 120 versions; the latest 5 were published within 3 days (25–27 Nov 2026).
  • Findings: No rules fired in version 0.1.2-master.20261127083915.gf6fce9e.
  • Downloads: 26,812 downloads.

Versions

120 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.2-master.20261127083915.gf6fce9e LATEST 27 Nov 2026 No rules fired
0.1.2-master.20261127075817.gdd5b46d 27 Nov 2026 No rules fired
0.1.2-master.20261126185430.ga3bf9ac 26 Nov 2026 No rules fired
0.1.2-master.20261126061418.gf2622ab 26 Nov 2026 Not shown
0.1.2-master.20261125204259.gaf8791f 25 Nov 2026 Not shown

No rules fired in 0.1.2-master.20261127083915.gf6fce9e

Findings

Findings for v0.1.2-master.20261127083915.gf6fce9e. 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.2-master.20261127083915.gf6fce9e; other versions have their own rules, not their own score.

README

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

@orz/query

The grammar half of a search box and a slash-command composer, driven by a schema the app supplies: value specs, a query parser with diagnostics, a command registry and line parser, shell-style words, brace expansion and completion locators.

It has no runtime dependencies and does not use React or the DOM, so an app's server, CLI and web client can import the same module and read a query or a command line the same way. The React and CodeMirror halves live in @orz/ui (QueryBox, HighlightedInput) and @orz/ui-codemirror.

Install

pnpm add @orz/query

Value specs

A qualifier value and a command argument are both a ValueSpec: an enum the schema knows, a named value the app resolves through a provider (labels, members), or a free value. Providers are passed at the point of use, so the schema itself stays static and shareable with a server:

import { valueVerdict } from "@orz/query";

const providers = {
  label: { options: [{ value: "kind:bug" }, { value: "area:web" }] },
  member: { search: (prefix, signal) => fetchMembers(prefix, signal) },
};

valueVerdict({ kind: "named", source: "label" }, "kind:bug", providers.label); // "valid"

Queries

import { defineQuerySchema, parseQuery, queryFilters } from "@orz/query";

const schema = defineQuerySchema({
  qualifiers: {
    state: { value: { kind: "enum", values: ["open", "closed"] }, hint: "open or closed" },
    label: { value: { kind: "named", source: "label" } },
    assignee: { value: { kind: "named", source: "member", special: ["@me"] } },
  },
  braces: true,
});

const parts = parseQuery(schema, 'label:area:{web,ui} -state:closed "deploy failed"');
queryFilters(parts);
// [{ key: "label", negated: false, values: ["area:web", "area:ui"] },
//  { key: "state", negated: true, values: ["closed"] }]

Unknown keys are plain text, so https://app.example and 12:30 stay searchable. The parts tile the input, which is what lets a highlighter paint under an <input>. escapes: "shell" switches quoting to shell rules (label:'a,b', don\'t); the default keeps backslashes ordinary.

Slash commands

import { createCommandRegistry, parseCommandLines } from "@orz/query";

const registry = createCommandRegistry([
  {
    name: "close",
    detail: "→ Closed",
    args: [],
    summarize: () => "close",
    compile: () => ({ type: "close" }),
  },
  {
    name: "label",
    detail: "add labels",
    args: [{ name: "label", value: { kind: "named", source: "label" }, rest: true, multiple: true }],
    summarize: ([labels]) => `label ${[labels].flat().join(", ")}`,
    compile: ([labels]) => ({ type: "label", names: [labels].flat() }),
  },
]);

parseCommandLines("Looks done.\n/label {kind:bug,area:web}\n/close", registry, providers);
// body: "Looks done.", commands: [{ type: "label", … }, { type: "close" }]

A command is a whole line starting with /name; anything else, including /close the door, is prose. Arguments are shell words, a rest argument takes the remainder of the line unquoted, and brace expansion applies only to arguments declared multiple, which compile receives as a list. A value with an invalid verdict, an unclosed quote or an expansion past 64 values breaks the line before compile runs; the reason lands in invalid.

Completion

queryCompletionSlot and commandCompletionSlot say what is being typed at the caret: a key, a value, a command or an argument, with its extent and value spec. Inside a brace group the slot is only the current alternative. slotValues lists what fits (or answers "fetch" for a search provider), keyRows and valueRows turn a query slot into rows that carry the rewritten query, and orderRows keeps the submit row first unless something is genuinely being completed.

Building blocks

  • shellWords(text) splits shell-style words, recording which characters were quoted; quoteShellWord(value) quotes a value so it reads back as one word.
  • expandBraces(word) expands bash's comma form ({a,b}, nested, at most 64 words); quoted and escaped braces stay literal.
  • didYouMean(value, candidates) suggests the closest candidate within a small edit distance.

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 @orz/query

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

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?

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