Skip to content

Server-side Application Framework

Progressive, modular and opinionated

Sword LogoSword Logo

Why Sword?

  • Async by default — built on top of Tokio ecosystem.
  • Modular — modules and dependency injection as first-class citizens.
  • Web, Socket.IO and gRPC — one framework for all your APIs.
  • Bateries included — built-in support for validation, standardized error handling, TOML based configuration, and more.

Quick start

Clone the repository and run the web example to see Sword in action:

bash
git clone https://github.com/sword-web/sword.git
cd sword/examples/web
cargo run

Then open http://localhost:3000 in your browser.

Ready to build with Sword?