Welcome to Honocord
Build an HTTP Interactions Discord bot with Hono
What is Honocord?
Section titled “What is Honocord?”Honocord bridges Discord’s Interaction API with Hono’s lightweight web framework, allowing you to build fast, serverless Discord bots that run on edge platforms like Cloudflare Workers, or traditional Node.js environments.
Key Features
Section titled “Key Features”- 🚀 Edge-First Design - Optimized for Cloudflare Workers with async interaction handling
- 📘 Fully Type-Safe - Built with TypeScript using
discord-api-typesfor excellent type safety (I hope at least) - 🎯 Handler-Based Architecture - Clean, modular system for commands, components, and modals
- ⚡ Hono Integration - Leverages Hono’s lightweight, fast routing capabilities
- 🔧 Flexible Deployment - Works with Cloudflare Workers, Bun, Node.js, and more
- 🎨 Rich Builders - Re-exports Discord.js builders for creating embeds, buttons, modals, and more
- 🤖 Autocomplete Support - Built-in autocomplete helper for slash commands
- 🔐 Secure by Default - Automatic signature verification for Discord interactions
Disclaimer: Yes, AI helped me build this - with the focus on helped.
Also get familiar with Discord.js and Discord API Concepts.
Getting Help
Section titled “Getting Help”If you encounter issues or have questions:
- Check the Examples repo
- Review the documentation pages
- Open an issue on GitHub
Examples
Section titled “Examples”Browse the Examples repo for complete, working implementations:
- cloudflare-workers - Basic bot on Cloudflare Workers
- custom-hono-integration - Integration with existing Hono apps (with Bun)