krengine-ui
v1.2.0
Published
A high-performance terminal UI utility for formatting structured bot responses with vertical alignment and sequential numbering.
Maintainers
Readme
KrEngine UI Formatter 🚀
A professional, high-end "Boxy" terminal UI formatter specifically designed for WhatsApp, Telegram, and other text-based bots.
Ported directly from the KrypthonEngine (KrEngine) ecosystem.
Features ✨
- 📦 Compact Terminal Layout: Uses mono-spaced box drawing characters for a professional SaaS feel.
- 📊 Vertical Stats Header: Automatically formats user identity, role, and system status.
- 🔢 Sequential Numbering: Commands and items are numbered continuously across multiple sections.
- 🎨 Branding Support: Includes custom footer notes.
- ⚡ Lightweight: Zero dependencies.
Installation 📥
npm install krengine-uiUsage 🛠️
const KrUI = require('krengine-ui');
const menu = KrUI.terminal({
title: 'Bot Menu',
username: 'Skelly',
role: 'Owner',
sections: [
{ title: 'Main', items: ['help', 'profile'] },
{ title: 'Fun', items: ['joke', 'rps'] }
]
});
console.log(menu);Example Output 📸
┌─ BOT MENU
──────
│ User : Skelly
│ Role : Owner
├─ MAIN
│ 1. help
│ 2. profile
├─ FUN
│ 3. joke
│ 4. rps
└─────────────
_made by ItsSkellyHer3 on github and tiktok_License 📄
MIT
Created with 🧡 by ItsSkellyHer3 on GitHub and TikTok.
