# serenity-rs/serenity

A Rust library for the Discord API.

Repository: https://github.com/serenity-rs/serenity
Canonical: https://ross.abutalabs.com/products/serenity-rs-serenity
Homepage: https://discord.gg/serenity-rs
Language: Rust
License: ISC
License Family: permissive
Topics: discord-api, rust, discord, hacktoberfest
Last push: 2026-08-08T21:20:12+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 30, longevity 100
- inputs: {"age_days": 3587, "days_push": 25, "days_rel": 256, "gap_med": 201.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5594, forks 669 (observed 2026-08-28T04:09:22.736371+00:00)

## What it is
Serenity is a Rust library for building Discord bots, providing a typed client for the Discord REST and gateway APIs. It transparently handles sharding, event dispatching, and an automatic cache to reduce HTTP requests.

## Use cases
- build a discord bot in rust
- respond to discord messages with a bot
- handle discord gateway events
- create a discord bot with slash commands
- manage discord guilds and channels programmatically
- run a sharded discord bot

## When to choose
- you want a low-level, idiomatic Rust client for the Discord API
- you need fine-grained control over event handling and caching
- you want to build a framework like poise on top of the raw API

## When to avoid
- you want a batteries-included command framework - use poise instead
- you need voice channel audio - use the songbird library
- you are not using Rust

## Facets
- artifact type: library
- maturity: active
- function: http-client, websocket, sdk
- domain: messaging-platforms, apis, developer-tools
- platform: rust, cross-platform
- tags: discord-api, discord-bot, async, tokio, gateway, sharding, bot-framework

## Member repositories
- serenity-rs/serenity (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:22.736371+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:55:29.633682+00:00, confidence not recorded.
  - readme: https://github.com/serenity-rs/serenity (fetched 2026-08-28T04:09:22.736371+00:00, sha e911822d1c95)
  - homepage: https://discord.gg/serenity-rs (fetched 2026-08-29T08:50:20.798852+00:00, sha e38c36abb012)
  - registry_crates: https://crates.io/api/v1/crates/serenity (fetched 2026-08-29T08:50:20.807787+00:00, sha 5b19683c4e05)
- Data as of 2026-08-30T08:39:29.467469+00:00.
