lightning

build cross-platform bots

get started -> api docs ↗ Codeberg ↗

lightning is framework that allows you to build cross-platform bots without worrying about platform-specific code. The framework is built in Go, making it easy to work with, and is designed to handle things like commands, events, rate-limits, attachments, and more, all while being battle-tested in Bolt, which has handled millions of messages during just January, 2026.

The framework consists of the core library, which is platform-agnostic, and plugins, which add support for specific platforms. The only platform-specific code is in the plugins, making it possible to support new platforms without modifying your bot’s core logic.

To see a simple example of how to use the framework, check out the framework: hello world guide, which will walk you through creating a simple bot that responds to messages and commands. For the full documentation, check out the api docs.

architecture

The framework is built around a few key concepts:

features