litestar-middleware
CommunityEnforce cross-cutting Litestar behavior with ease.
Authoralti3
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Design and apply Litestar middleware to handle cross-cutting concerns across app/router/controller/handler layers, ensuring consistent behavior without polluting route-specific business logic.
Core Features & Use Cases
- Centralized middleware management with layer-aware attachment (application, router, controller, handler).
- Built-in configuration-first approach (CORS, CSRF, compression, rate limiting, logging, session handling, and policy enforcement) with safe customization.
- Use Case: In a large Litestar API, apply global policies like security headers, request logging, and rate limiting across many routes.
Quick Start
Attach a middleware component to your Litestar app to enforce cross-cutting policies across all routes.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: litestar-middleware Download link: https://github.com/alti3/litestar-skills/archive/main.zip#litestar-middleware Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.