Skip to content

The Rust Server-side Application Framework

Progressive, modular, and opinionated

Sword LogoSword Logo

About this documentation

This page documents the development version. The changes described here are not part of a published release yet.

Why Sword? ​

  • Async by default: built on the Tokio ecosystem.
  • Modular: modules and dependency injection are part of the core.
  • Web, Socket.IO, gRPC, Events controllers in one framework.
  • Scheduled jobs: cron, repeated and one-shot background tasks.
  • Validation, standardized error handling and TOML configuration built in.

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

The API listens on http://localhost:8081/api, and the bundled browser client is at http://localhost:8081/api/static/.

Ready to build with Sword?