Skip to content
Back to skills

Actix Web

ASecurity

Actix-web Rust web framework. Use when building Rust HTTP services, Actor framework apps, extractors, WebSocket handlers, or performance-critical API servers on Actix RT.

  • 47 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 12, 2026
devopsrustgonodetestingapiperformance

Works with

  • api

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add skeletorflet/opencode-supreme-setup --skill actix-web --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Actix Web?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Actix Web
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/skeletorflet-actix-web/badge)](https://www.skillsdirectory.com/skills/skeletorflet-actix-web)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: actix-web
description: Actix-web Rust web framework. Use when building Rust HTTP services, Actor framework apps, extractors, WebSocket handlers, or performance-critical API servers on Actix RT.
---

## actix-web

High-performance Rust web framework built on the Actix actor system with zero-cost abstractions.

### Core Concepts
- Actor framework: typed actors with message passing, async handlers, and supervision trees
- Routing: `#[get("/users/{id}")]` attribute macros or `App::new().route()` for modular routing
- Extractors: type-safe request data extraction via trait impls (Json, Path, Query, Form, Data)
- Actix RT: multi-threaded async runtime optimized for HTTP throughput over Tokio

### Common Patterns
- Middleware: `wrap_fn` closures or `Transform` trait for logging, auth, and request modification
- Error handling: `actix_web::error::Error` with `ResponseError` trait for typed HTTP error responses
- WebSocket: `web::resource("/ws").route(web::get().to(ws_handler))` with actor-backed sessions
- Testing: `actix_web::test` utilities with `TestRequest`, `call_service`, and `read_body_json`

### Best Practices
- Use `web::Data<T>` for shared application state instead of global statics or lazy statics
- Implement `Responder` trait for custom response types to keep handler return types clean
- Configure worker count via `HttpServer::new().workers(n)` matching CPU cores for optimal throughput
- Compile with `--release` for production: Actix RT performance can exceed Go and Node.js equivalents

### Common Code Patterns
- `HttpResponse::Ok().json(response)` for typed JSON serialization via serde
- `web::block(move || heavy_calc()).await` for blocking CPU work off the async runtime

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.