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

@penwin/discord-components-core

Latest version: v4.7.5

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: justevil, sagiriikeda
3 Stars
0 Forks
10 Versions
1.1K Downloads
TypeScript Repo language

Scan summary

@penwin/discord-components-core was last scanned on 29 Nov 2026 at version 4.7.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 10 versions; the latest 5 were published within 4 days (26–29 Nov 2026).
  • Findings: No rules fired in version 4.7.5.
  • Downloads: 1,149 downloads.

Versions

10 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.7.5 LATEST 29 Nov 2026 No rules fired
4.7.4 29 Nov 2026 No rules fired
4.7.3 29 Nov 2026 No rules fired
4.7.2 29 Nov 2026 Not shown
4.7.1 26 Nov 2026 Not shown

No rules fired in 4.7.5

Findings

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

README

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

@skyra/discord-components-core

Web components to easily build and display fake Discord messages on your webpages

License Patreon

Core Package

npm npm npm

React Bindings

npm npm npm


Table of Contents

  • @skyra/discord-components-core
    • Description
      • Upgrading guide
    • Features
    • Installation
    • Usage
      • Using the Discord font
      • Integrations
        • Angular
          • Important Notes
          • Live Demo
        • React
          • Important Notes
          • Vite
            • Live Demo
          • Create React App
            • Important Notes
          • NextJS
            • Live Demo Pages Directory
            • Live Demo App Directory
            • Known limitations
          • Docusaurus
            • Live Demo
        • Vue
          • Vite
            • Live Demo
            • Configuration
          • Nuxt
            • Live Demo
            • Configuration
        • Astro
          • Important Notes
          • Live Demo
        • Solid
          • Live Demo
        • Svelte
          • Vite
            • Live Demo
          • Sveltekit
            • Live Demo
        • Qwik
          • Live Demo
        • Preact
          • Live Demo
        • HTMX
          • Live Demo
        • No Framework
          • Important Notes
          • Live Demo
    • Notes
      • TypeScript module augments
      • Avatar shortcuts
      • Profile shortcuts
      • Theming
      • Components notes
        • discord-messages component
        • discord-mention component
        • discord-embed component
        • discord-embed-fields component
        • discord-embed-field component
    • Screenshots
      • Dark Mode
      • Light Mode
    • Contributors

Description

Discord message components to easily build and display fake Discord messages on your webpage.

This is an adaptation of [wc-discord-message] from [Danktuary]

Upgrading guide

The source code and documentation of this package has been updated for version 4.x of this package. To find out how to upgrade from v3.x to v4.x, please refer to the upgrading guide

Features

  • Design modelled after Discord itself
  • Comfy and compact mode support
  • Dark and light themes support
  • Set the message author's username, avatar (use defaults or provide your own), role color, and "bot" tag status
  • Display fake user, role, and channel mentions
  • Complete embed support
  • Uses [Lit Element][lit] to support all browsers and environments
  • Simple syntax!

Installation

yarn add @skyra/discord-components-core
# or npm install @skyra/discord-components-core

Usage

The syntax is kept fairly simple. Here's a basic example of a regular conversation:

<discord-messages>
  <discord-message
    >Hey guys, I'm new here! Glad to be able to join you all!</discord-message
  >
  <discord-message author="Dawn" avatar="red">
    Hi, I'm new here too!
  </discord-message>
  <discord-message
    author="Favna"
    avatar="https://github.com/favna.png"
    roleColor="#ff0000"
  >
    Hey, <discord-mention>User</discord-mention> and
    <discord-mention>Dawn</discord-mention>. Welcome to our server!
  </discord-message>
</discord-messages>

[!IMPORTANT]

For further examples on how to use components, please refer to the Stackblitz examples linked below. Choose the framework you are using and click on the "Open in Stackblitz" button to see the code and how it renders in the browser.

Using the Discord font

This library can use the Discord font if you load it into your project. You can do so by including the CSS below:

@font-face {
  font-family: 'Whitney';
  src: url('https://cdn.skyra.pw/whitney-font/v2/Book.woff') format('woff');
  font-weight: 400;
}

@font-face {
  font-family: 'Whitney';
  src: url('https://cdn.skyra.pw/whitney-font/v2/Medium.woff') format('woff');
  font-weight: 500;
}

@font-face {
  font-family: 'Whitney';
  src: url('https://cdn.skyra.pw/whitney-font/v2/Semibold.woff') format('woff');
  font-weight: 600;
}

@font-face {
  font-family: 'Whitney';
  src: url('https://cdn.skyra.pw/whitney-font/v2/Bold.woff') format('woff');
  font-weight: 700;
}
Integrations
Angular
Important Notes

You need to import the CUSTOM_ELEMENTS_SCHEMA from @angular/core and add it to the schemas array of your module or component decorator for the module or component using custom elements. This is to ensure that Angular knows custom elements are used in this module or component.

import { CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';

@Component({
  schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class AppComponent {}
Live Demo

React
Important Notes

React is currently the only library among the "big" libraries for frontend development that does not fully support custom elements / webcomponents yet (see this React documentation page for more info). For this reason we ship the package @skyra/discord-components-react.

We sincerely hope that this situation will improve in the future, but no one knows what their plans are.

Vite
Live Demo

Create React App
Important Notes

Create React App is no longer the recommended way to start with a React app as per React's own documentation. We very strongly recommend using Vite instead.

NextJS
Live Demo Pages Directory

Live Demo App Directory

Known limitations
  1. All the React components will only render on the client, they are bundled with the 'use client'; header that NextJS expects for CSR only components. This is because there is currently no good way to render webcomponents on the server. When @lit-labs/nextjs adds support for the app directory we can revisit this limitation.

  2. When using the app directory we are not able to get profiles working. We are open to suggestions on how to fix this, ideally through a pull request to [https://github.com/skyra-project/discord-components-implementations/tree/main/templates/nextjs-ts].

Docusaurus
Live Demo

Vue
Vite
Live Demo

Configuration

When using Vue 3 with Vite you need to setup Vite to recognise the custom components. You can do that with the following code in your vite.config.ts:

import vue from '@vitejs/plugin-vue';
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [
    vue({
      template: {
        compilerOptions: {
          isCustomElement: (tag) => tag.startsWith('discord-')
        }
      }
    })
  ]
});
Nuxt
Live Demo

Configuration

When using Nuxt 3 you need to setup Vite to recognise the custom components. You can do that with the following code in your nuxt.config.ts:

export default defineNuxtConfig({
  devtools: { enabled: true },
  vue: {
    compilerOptions: {
      isCustomElement: (tag) => tag.startsWith('discord-')
    }
  }
});
Astro
Important Notes

Because it is possible to use different integrations in an Astro project you can also reference the other examples here. The live demo linked below uses the Lit integration for Astro as well as the React integration for Astro.

Live Demo

Solid
Live Demo

Svelte
Vite
Live Demo

Sveltekit
Live Demo

Qwik
Live Demo

Preact
Live Demo

HTMX
Live Demo

No Framework
Important Notes

Note that while it is entirely possible to use this library without a framework, you will still need a bundler such as vite. This is because this library exposes ES modules which need to be bundled into a format that the browser can support. The live demo below uses Vite.

Live Demo

Notes

TypeScript module augments

This library uses a custom object on the browser window for configuration. Under normal circumstances by simply importing the package (with import @skyra/discord-components-core) the module augmentations should also be loaded. If for whatever reason this does not happen, then you can define them manually yourself. You can do so with the following code snippet:

import type { DiscordMessageOptions } from '@skyra/discord-components-core';

declare global {
  // eslint-disable-next-line no-var
  var $discordMessage: DiscordMessageOptions | undefined;
}
Avatar shortcuts

The current avatar shortcut strings available are "blue" (default), "gray", "green", "orange", and "red". These shortcuts map to the following image links:

{
  "blue": "https://cdn.discordapp.com/attachments/654503812593090602/665721745466195978/blue.png",
  "gray": "https://cdn.discordapp.com/attachments/654503812593090602/665721746569166849/gray.png",
  "green": "https://cdn.discordapp.com/attachments/654503812593090602/665721748431306753/green.png",
  "orange": "https://cdn.discordapp.com/attachments/654503812593090602/665721750201434138/orange.png",
  "red": "https://cdn.discordapp.com/attachments/654503812593090602/665721752277483540/red.png"
}

If you want to add to or override the shortcuts, you can set them via globalThis.$discordMessage.avatars or by using the setConfig function (import { setConfig } from '@skyra/discord-components-core').

globalThis.$discordMessage = {
  avatars: {
    default: 'blue',
    skyra: 'https://github.com/NM-EEA-Y.png',
    djs: require('./assets/discord-avatar-djs.png') // You can use require syntax as well
  }
};
import { setConfig } from '@skyra/discord-components-core';

setConfig({
  avatars: {
    default: 'blue',
    skyra: 'https://github.com/NM-EEA-Y.png',
    djs: require('./assets/discord-avatar-djs.png') // You can use require syntax as well
  }
});
Profile shortcuts

Sometimes you'll want to use the same message data across multiple messages. You can do so by providing an object of profiles in globalThis.$discordMessage.profiles or by using the setConfig function (import { setConfig } from '@skyra/discord-components-core').

globalThis.$discordMessage = {
  profiles: {
    skyra: {
      author: 'Skyra',
      avatar: 'https://github.com/NM-EEA-Y.png',
      bot: true,
      verified: true,
      roleColor: '#1e88e5'
    },
    favna: {
      author: 'Favna',
      avatar: 'https://github.com/favna.png',
      roleColor: '#ff0000'
    }
  }
};
import { setConfig } from '@skyra/discord-components-core';

setConfig({
  profiles: {
    skyra: {
      author: 'Skyra',
      avatar: 'https://github.com/NM-EEA-Y.png',
      bot: true,
      verified: true,
      roleColor: '#1e88e5'
    },
    favna: {
      author: 'Favna',
      avatar: 'https://github.com/favna.png',
      roleColor: '#ff0000'
    }
  }
});

And then in your code:

<discord-messages>
  <discord-message profile="skyra">
    Welcome to our server, <discord-mention>Favna</discord-mention>!
  </discord-message>
  <discord-message profile="favna">Hey, glad to be here!</discord-message>
</discord-messages>
Theming

Each of the components accepts the standard HTML properties for passing styling, such as class for passing CSS classes (JSS / CSS / SCSS etc.) or style to pass inline style.

You can also pass your own custom HTML tags, for example set a data-testid to be able to navigate to the component in your unit tests / end-to-end tests

Components notes

Below are notes for a few specific components.

discord-messages component

This is a wrapper for any child <discord-message> component. It must be used in order for messages to display properly.

discord-mention component
  1. If the default slot is left empty, the mention will be rendered as 'User', 'Role', or 'channel', depending on the type prop given.

  2. If you want to customize the color of a role type mention then you can pass the color as a hex code in the style property. For example:

<discord-message>
  <discord-mention type="role" style="--discord-mention-color: #70f0b4;"
    >Green</discord-mention
  >
  <discord-mention type="role" style="--discord-mention-color: #ff0000;"
    >Red</discord-mention
  >
</discord-message>
discord-embed component

An embed that can be attached to the end of your messages. The default slot is used for the embed's description. The footer slot is used for the footer text.

To ensure the embed gets displayed correctly inside your message, be sure to give it the proper slot attribute.

<discord-message>
  Hi, I'm part of the normal message content.
  <discord-embed slot="embeds" color="#ff0000">
    Hi, I'm part of the embed message content.
  </discord-embed>
</discord-message>
discord-embed-fields component

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 @penwin/discord-components-core

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

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229