github.com/nitros12/calamity ↗

A library for writing discord bots in haskell

An animated visualization of nitros12/calamity's Git history from November 2018 to December 2020, built by 2 contributors. The codebase reached 1,585 lines, mostly Haskell. The video runs 1 minute 10 seconds.

Render your own repo

Turn any GitHub repository into a video like this — free sample in seconds.

Visualize your own →

Open this visualization on its own page →

Language

Haskell

Contributors

2

Lines of Code

1,585

From

2018-11-18

To

2020-12-16

Advertisement

About nitros12/calamity

Calamity is a Haskell library for building Discord bots that leverages Polysemy as its core effect system. This design choice allows developers to customize how the library handles certain features, such as caching, metrics collection, and logging, rather than being locked into predefined implementations. For instance, you can swap the default in-memory cache for a database-backed solution, integrate Prometheus for monitoring, or use custom logging via the di-polysemy library.

The library is more feature-rich and flexible than some alternatives but comes with increased complexity in its API. The project includes comprehensive documentation on Hackage and a blog post covering the fundamentals of bot development. Multiple example projects are available, ranging from minimal starter templates to production bots that demonstrate database integration, member role management, and command modularization.

Calamity also provides Nix support with a cachix cache available for users who prefer declarative builds. This makes it convenient for developers using the Nix ecosystem to build Discord bots without compiling dependencies from scratch.

Advertisement

Share this video