The fastest, lightest, and most faithful Discord HTML transcript generator.
Built exclusively for the Bun ecosystem.
Stop simulating browsers to generate simple text logs. Buncord-Transcript purges the bloat of JSDOM and React, replacing them with a high-performance, string-based rendering engine powered by Bun and a specialized fork of Mustache.
- Zero Node Dependencies: No
ws, nohttplegacy, noJSDOM. Pure Bun-native execution. - Mustache Powered: Generates complex transcripts in milliseconds using optimized string templates instead of heavy, recursive DOM manipulation.
- Zero Memory Overhead: While other libraries require hundreds of MBs to "render" a virtual DOM, Buncord processes messages through a stream-like logic that keeps your RAM footprint invisible.
- Discord v2 Native: First-class support for modern components: Buttons, Select Menus, and the new Containers.
- 1:1 Visual Fidelity: Unlike libraries with hardcoded styles, Buncord uses a dynamic CSS variable system mirrored directly from the official Discord client.
- Media-First: Native support for Multi-image Media Galleries, high-res avatars, and custom emoji rendering.
- Smart Mentions: Intelligently resolves user mentions and relative timestamps within the transcript context.
| Package | Size (Unpacked) | Total Files | Dependencies | Install Weight (est.) |
|---|---|---|---|---|
| discord-html-transcripts | 170 kB | 87 | React, JSDOM, etc. | ~25.000 kB (25MB) |
| buncord-transcript | 33.8 kB | 8 | NONE (Native) | ~34 kB |
Result: 99.8% savings on total installation weight!
bun add buncord-transcriptimport { createTranscript } from 'buncord-transcript';
const messages = [...]; // Your Discord.js / Buncord messages
const channel = { name: 'ticket-001' };
const html = await createTranscript(messages, channel);
// Output is a high-performance HTML buffer/string ready to be served or saved.Built out of frustration with outdated, bloated libraries that fail to render modern Discord components. Buncord-Transcript is a "Performance Tier 1" tool for developers who prioritize speed, code purity, and production stability.
This project is licensed under the MIT License. See the LICENSE file for details.
Portions of this code are based on discord-html-transcripts, copyright of their respective authors.
