composable-rust-web

Builds WebSocket apps and REST APIs in Python with the `sockets` library.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/jonathanbelolo/composable-rust --skill composable-rust-web
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: composable-rust-web
Source: https://github.com/jonathanbelolo/composable-rust/tree/main/.claude/skills/composable-rust-web
Command: npx skills add https://github.com/jonathanbelolo/composable-rust --skill composable-rust-web

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides expert knowledge for building web APIs and real-time applications in Rust using Composable Rust, Axum, WebSocket, and authentication frameworks.

Core Features & Use Cases

  • HTTP API patterns with Axum routing, versioned endpoints, and health checks.
  • WebSocket-based real-time updates, broadcasting actions, and client-server streaming.
  • Authentication integrations (magic links, OAuth, passkeys) and email provider patterns.
  • Middleware, CORS, and request-response patterns using send_and_wait_for.
  • Client integration patterns and error handling guidance for robust backends.

Quick Start

Create a minimal Axum app with a health endpoint and a WebSocket route, wired to a store and auth middleware.

Frequently Asked Questions about composable-rust-web

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Rust web API with Axum and WebSocket support?

Build Rust web APIs with Axum by defining HTTP routes, WebSocket channels for real-time updates, and broadcasting actions. This approach enforces deterministic reducers and action-based HTTP handlers to manage client-server streaming and event broadcasting robustly.

How does WebSocket broadcasting work in an Axum web API?

WebSocket broadcasting in an Axum web API uses event broadcasting patterns and action-based handlers to push real-time updates. It enables client-server streaming by wiring WebSocket channels to a central store, ensuring deterministic state updates across connected clients.

Can I implement OAuth and magic link authentication in a Rust web API?

Implement OAuth, magic link, and passkey authentication in a Rust web API using integrated email providers and middleware. The framework guides wiring authentication flows securely, enforcing best practices for error handling and request-response patterns.

What's the best way to structure Axum routes and middleware for a web API?

Structure Axum routes and middleware by using versioned endpoints, health checks, and CORS. The skill guides dependency wiring and security best practices, ensuring robust request-response patterns using send_and_wait_for for reliable client integration.

Does this approach support client integration and error handling for Rust backends?

Client integration and error handling are supported through guided patterns for robust Rust backends. It provides client integration patterns and enforces error handling best practices, ensuring reliable communication between frontend clients and the Axum web API.

Why use deterministic reducers and action-based HTTP handlers in Rust web APIs?

Deterministic reducers and action-based HTTP handlers are used in Rust web APIs to enforce predictable state management and secure routing. This pattern ensures consistent event broadcasting and reliable processing of WebSocket and HTTP requests.