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

@ruyojs/core

Latest version: v0.1.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: wsyzxjn
2 Versions

Scan summary

@ruyojs/core was last scanned on 23 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 23 Nov 2026.
  • Findings: 1 rule fired in version 0.1.0 (1 low). The score describes this version only.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 23 Nov 2026 1 rule fired
0.0.0-stage 23 Nov 2026 Not shown

Rules fired in 0.1.0: 1

Findings

1 Low

Findings for v0.1.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.

WebAssembly module included

The package includes a WebAssembly (.wasm) module. It cannot be reviewed as source, but it runs sandboxed inside the JavaScript runtime and can access only what the host code gives it. WebAssembly is common in parsers, codecs and cryptography libraries. Shown for awareness.

LOW
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 0.1.0; other versions have their own rules, not their own score.

README

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

@ruyojs/core

The renderer behind ruyo. Use it to include only the platforms you need, or to write your own adapter.

Install

npm install @ruyojs/core @ruyojs/x

Requires Node.js 24 or later. Install the adapters you need:

Package Export Links
@ruyojs/x xAdapter X posts
@ruyojs/bilibili bilibiliAdapter Bilibili videos and dynamics
@ruyojs/github githubAdapter GitHub repositories, issues, pull requests, and more
@ruyojs/youtube youtubeAdapter YouTube videos and Shorts

Usage

import { writeFile } from 'node:fs/promises'
import { createRenderer } from '@ruyojs/core'
import { xAdapter } from '@ruyojs/x'

const { render } = createRenderer({ adapters: [xAdapter] })
const { png } = await render('https://x.com/jack/status/20', { width: 480 })
await writeFile('post.png', png)

createRenderer({ adapters, host? }) returns a render(url, options?, host?) function with the same options, errors, and network behavior as the one in ruyo. Adapters are tried in order, and the first one that recognizes the link renders it. host sets the default network host for every call.

The package also exports RuyoError and the types used here and below.

Writing an adapter

This adapter renders the page title of example.com links:

import { createRenderer, type Adapter, type NetworkHost, type ResolvedCard } from '@ruyojs/core'
import { request } from '@ruyojs/core/adapter'

async function titleCard(url: URL, host?: NetworkHost): Promise<ResolvedCard> {
  const html = await (await request(url.href, {}, host)).text()
  const title = /<title>([^<]*)<\/title>/.exec(html)?.[1] ?? url.href
  return {
    assets: new Map(),
    layout(width, { prepareText }) {
      const text = prepareText({
        runs: [{ text: title }],
        maxWidth: width - 32,
        style: 'font-family:system-ui;font-size:20px;line-height:28px',
      })
      return { height: Math.ceil(text.height) + 32, items: [{ kind: 'text', x: 16, y: 16, ...text }] }
    },
  }
}

const titleAdapter: Adapter = {
  resolve: (url, _options, host) => (url.hostname === 'example.com' ? titleCard(url, host) : undefined),
}

const { render } = createRenderer({ adapters: [titleAdapter] })
  • resolve(url, options, host) returns undefined synchronously for links it doesn't handle. Otherwise, it returns a promise for { assets, layout }.
  • assets maps keys to image bytes. image items refer to them by src.
  • layout(width, context) returns the card's height and the items to draw in order: text, rect, image, or svg. All sizes are in CSS pixels.
  • context.prepareText() lays out a paragraph and returns its size, so you can place content below it. context.imageSize(src) returns an image's natural size.
  • @ruyojs/core/adapter provides request, loadImage, and loadImages. They go through host and turn HTTP failures into RuyoErrors.
  • Set maxWidth to cap the card width, or fonts to use bundled font files before system fonts.

License notices

Rounded corner paths are adapted from xeet (Apache-2.0). See licenses/ in this package.

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 @ruyojs/core

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

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

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

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229