Skip to content

Latest commit

 

History

278 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wum logo

Wum

A framework for building Discord bots with JSX + TypeScript.

About

Wum is a productivity-focused framework for Discord bots, with declarative commands, reactive rendering, and a service-based architecture.

Features

  • JSX-first command architecture for defining slash commands and interaction flows in a declarative way.
  • Declarative Discord UI rendering powered by Diseact, including messages, embeds, components, and interaction updates.
  • Reactive hooks model for local state, side effects, and service access inside command components.
  • Macro decorators for services and events, with compile-time analysis of metadata and runtime registration.
  • Built-in dependency injection container for clean service composition and low-coupling business logic.
  • SQLite-backed persistence utilities for lightweight key-value storage and incremental IDs.
  • CLI-driven developer workflow with automatic compile, manifest generation, and bot runtime bootstrap.

Advantages

  • Memory-less command layer: command definitions are compiled into runtime artifacts, reducing dynamic setup and keeping execution lightweight.
  • Scalable architecture: services + dependency injection make it easier to split domains, reuse logic, and grow large bots safely.
  • Fast iteration cycle: JSX rendering and hooks reduce boilerplate, so new commands and UI flows can be shipped quickly.
  • Maintainable codebase: clear separation between commands, services, and infrastructure improves readability and long-term evolution.
  • Production-friendly runtime: automated build/runtime flow lowers operational friction and keeps project structure consistent.

Quick Start

npm i wum.js
npx wum

Docs:

  • PT-BR: docs/pt-br
  • EN-US: docs/en-us

Community

About

A Discord framework to create bots with Dependency Injector, Macro Decorators and JSX

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages