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

@ovencord/builders

v1.13.2

Published

A set of builders that you can use when creating your bot

Readme

@ovencord/builders

High-performance payload builders, standardized for Zod 3 and Bun.

@ovencord/builders is a modernized utility package for building Discord API payloads. Rebuilt for Bun, it eliminates legacy Zod v2 constraints and fixes long-standing multi-inheritance issues in TypeScript.

🥟 Why Ovencord-Builders?

| Feature | @ovencord/builders | @ovencord/builders | |---------|---------------------|--------------------| | Validation | Zod v2 (Legacy) | Zod v3+ Standard | | Inheritance | Fragmented Mixins | Fixed Interface Merging | | Performance | Standard | Memory-optimized schemas | | TypeScript | Basic | Strict & Highly Inferential | | Build Step | Required | Zero (Source-only) |

✨ Technical Optimizations

  • Zod 3 Native: All schemas have been refactored to use native Zod 3 features like z.nativeEnum(), z.string().url(), and superRefine, resulting in faster validation cycles and better error messages.
  • Mixin Clarity: Resolved ts-mixer visibility issues. Methods like .toJSON() are now properly exposed through interface merging, ensuring a seamless developer experience.
  • Uint8Array Support: Native support for Web Standard Uint8Array in attachments, reducing Buffer overhead.

📦 Installation

Bun 1.0.0 or newer is required.

bun add @ovencord/builders

🚀 Examples

Build a Chat Input Command

import { SlashCommandBuilder } from '@ovencord/builders';

const command = new SlashCommandBuilder()
	.setName('ping')
	.setDescription('Replies with Pong!')
	.addStringOption(option =>
		option.setName('message')
			.setDescription('Optional message to echo')
			.setMaxLength(2000)
	);

console.log(command.toJSON());

Create an Action Row with Buttons

import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from '@ovencord/builders';

const row = new ActionRowBuilder()
	.addComponents(
		new ButtonBuilder()
			.setCustomId('primary')
			.setLabel('Click Me')
			.setStyle(ButtonStyle.Primary),
		new ButtonBuilder()
			.setLabel('GitHub')
			.setURL('https://github.com/ovencord')
			.setStyle(ButtonStyle.Link)
	);

🛠️ Performance Features

  • Standardized Assertions: Refactored assertions for maximum performance during serialization.
  • Source-Only Distribution: No more dist folders. Bun loads the TypeScript source directly, making the package extremely lightweight (~1.5MB total vs ~15MB for discord.js).

🤝 Contributing

See the contribution guide if you'd like to submit a PR.

📜 License

Apache-2.0 © Ovencord Contributors
Original discord.js code © Discord.js Contributors