v1.0.17

Fastro Middlewares

Middleware

Welcome to the Fastro middleware collection! This page lists all available middlewares created by the community.

Want to add your middleware? Please follow the instructions in the Contributing Guide and add your middleware to this list via a Pull Request.

Official Middlewares

These middlewares are maintained by the Fastro core team.

Name Description Source
Logger Standard request/response logging. Source
CORS Handle Cross-Origin Resource Sharing. Source
KV Deno KV store integration. Source
Static Serve static files and SPA support. Source
BodyParser Parse request body (JSON, Form, etc.) Source
Cookie Parse incoming cookies and manage Set-Cookie headers. Source
Render Server-side rendering helper with optional HMR client injection (dev only). Source
JWT JSON Web Token authentication. Source
Tailwind On-the-fly Tailwind/PostCSS processor that serves compiled CSS (useful in dev or on-the-fly builds). Configurable pathname and static directory. Source

Modules as Middleware

In Fastro, every module is a middleware. This allows for powerful patterns where you can group routes and logic into directories and load them dynamically.

Community Middlewares

Add your awesome middlewares here!

Name Description Author Link
Example Middleware A starter template for your own logic. @fastrodev View Source

How to add your middleware here:

  1. Create your middleware logic.
  2. Submit a PR adding your middleware to the middlewares/ directory.
  3. Add a new row to the table above with your details.