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

@spraxium/components

Latest version: v0.9.1

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: spacelaxy
35 Stars
2 Forks
7 Versions
1.6K Downloads
TypeScript Repo language

Scan summary

@spraxium/components was last scanned on 24 Nov 2026 at version 0.9.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest 2 were published on 24 Nov 2026.
  • Findings: No rules fired in version 0.9.1.
  • Downloads: 1,568 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.9.1 LATEST 24 Nov 2026 No rules fired
1.0.0-dev.1 24 Nov 2026 No rules fired
0.9.0 9 Nov 2026 No rules fired
1.0.2 3 Nov 2026 Not shown
1.0.1 25 Oct 2026 Not shown

No rules fired in 0.9.1

Findings

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

README

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

@spraxium/components

@spraxium/components provides a decorator-based system for building and handling Discord UI components in a Spraxium application. It covers buttons, select menus (string, user, role, channel, and mentionable), text inputs, modals, embeds, and the newer Discord V2 container layouts. Component handlers are defined with class and method decorators and automatically registered by the ComponentsModule, which listens to the relevant Discord events and routes each incoming interaction to the correct handler based on its custom ID.

The routing layer integrates cleanly with the Spraxium guard and dependency injection systems, so every component handler can declare guards for access control and inject any registered service. The defineComponents configuration function allows global defaults such as custom ID prefixes and error handlers to be set once for the entire module rather than repeated per handler.

Installation

npm install @spraxium/components

Usage

// Component class: defines the custom ID, label, and style only.
import { Button } from '@spraxium/components';

@Button({ customId: 'confirm-action', label: 'Confirm', style: 'success' })
export class ConfirmButton {}
// Handler class: separated from the component, contains the execution logic.
import { Injectable } from '@spraxium/common';
import { ButtonHandler, FlowContext } from '@spraxium/components';
import type { SpraxiumContext } from '@spraxium/components';
import type { ButtonInteraction } from 'discord.js';
import { Ctx } from '@spraxium/common';
import { ConfirmButton } from './confirm-button.component';

@Injectable()
@ButtonHandler(ConfirmButton)
export class ConfirmButtonHandler {
  async handle(
    @FlowContext() ctx: SpraxiumContext<{ action: string }>,
    @Ctx() interaction: ButtonInteraction,
  ): Promise<void> {
    await interaction.reply({ content: `Action confirmed: ${ctx.data.action}`, ephemeral: true });
  }
}
import { Module } from '@spraxium/common';
import { ComponentsModule } from '@spraxium/components';
import { ConfirmButtonHandler } from './confirm-button.handler';

@Module({
  imports: [ComponentsModule],
  providers: [ConfirmButtonHandler],
})
export class ActionsModule {}

Redis context storage

Install ioredis and configure context storage through defineComponents. Set username when Redis uses a named ACL user, including deployments where the default user is disabled. Omit it for password-only authentication with the default user.

pnpm add ioredis
import { defineComponents } from '@spraxium/components';

const components = defineComponents({
  context: {
    storage: {
      type: 'redis',
      host: process.env.REDIS_HOST ?? '127.0.0.1',
      port: 6379,
      username: process.env.REDIS_USERNAME,
      password: process.env.REDIS_PASSWORD,
      db: 0,
      keyPrefix: 'bot:ctx:',
    },
  },
});

Add this configuration to the application's plugins array. The ACL user must have access to the configured key namespace and the commands used by the adapter: GET, SET, DEL, SCAN and MGET.

Links

npm · GitHub · Discord Components · Documentation

License

Apache 2.0

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 @spraxium/components

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

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?

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 (2)
Research

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

Frame 2085668439 (1)
Group 1261154229