npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dragonui/discord

v0.1.2

Published

UI Components V2 simplificado para Discord.js

Readme

@dragonui/discord

Uma biblioteca de UI Components V2 para Discord.js, focada em liberdade total de criação, sem padrões engessados de título, descrição ou estrutura.

Aqui você monta a interface do seu jeito, bloco por bloco.

✨ Filosofia

  • ✅ Components V2 first
  • ✅ Nada forçado (sem title/description obrigatório)
  • ✅ Tudo modular e independente
  • ✅ API simples (create.text(), create.button(), etc)
  • ✅ Compatível com discord.js@14+

📦 Instalação

npm install @dragonui/discord

> discord.js é dependência obrigatória:



npm install discord.js




🚀 Uso básico

const { create } = require("@dragonui/discord");

const ui = create.container([
  create.text("⚡ Painel Principal"),
  create.separator(),
  create.row([
    create.button({
      id: "start",
      label: "Iniciar",
      style: 1
    })
  ])
]);

interaction.reply({ components: [ui] });




🧱 API

create.container(components[])

Cria um ContainerBuilder.

create.container([
  create.text("Olá mundo")
])




create.text(content)

Cria um TextDisplayBuilder.

create.text("Texto livre")




create.separator(spacing?, divider?)

Cria um SeparatorBuilder.

create.separator("Small", true)




create.banner(urls[])

Cria um MediaGalleryBuilder.

create.banner([
  "https://imgur.com/a.png"
])




create.section({ texts[], thumbnail? })

Cria um SectionBuilder totalmente livre.

create.section({
  texts: [
    create.text("Linha 1"),
    create.text("Linha 2")
  ],
  thumbnail: "https://imgur.com/thumb.png"
})




create.button({ id, label?, emoji?, style?, disabled? })

Cria um botão.

create.button({
  id: "confirm",
  label: "Confirmar",
  emoji: "✅",
  style: 1
})




create.row(components[])

Cria uma ActionRowBuilder.

create.row([
  create.button({ id: "a", label: "A" }),
  create.button({ id: "b", label: "B" })
])



🧠 Extras

🟣 Embed (create.embed)

Embed opcional, sem interferir nos Components V2.

create.embed({
  description: "Mensagem informativa",
  color: 0x000000
})



🧾 Modal (create.modal)

Criação simples e controlada de modais.

create.modal({
  id: "login",
  title: "Login",
  inputs: [
    {
      customId: "email",
      label: "Email",
      style: 1,
      required: true
    }
  ]
});



📋 Select Menu (create.select)

Cria StringSelectMenuBuilder.

create.select({
  id: "plan",
  placeholder: "Escolha um plano",
  options: [
    { label: "Básico", value: "basic" },
    { label: "Pro", value: "pro" }
  ]
});



🧩 Componentes disponíveis

Container

Text

Separator

Banner (Media Gallery)

Section

Button

Row

Embed

Modal

Select Menu

🔥 Objetivo do projeto

O @dragonui/discord existe para facilitar a criação de interfaces modernas no Discord, sem limitar a criatividade do desenvolvedor.

Você decide o layout, a ordem e a experiência.


📄 Licença

MIT © Dragon