iii-http-middleware

Installation
SKILL.md

HTTP Middleware

Comparable to: Express middleware, Fastify hooks, Django middleware

Key Concepts

Use the concepts below when they fit the task. Not every middleware setup needs all of them.

  • Middleware functions are registered like normal functions but return { action: 'continue' } or { action: 'respond', response } instead of a normal response
  • Middleware is attached to HTTP triggers via middleware_function_ids in the trigger config
  • The engine executes middleware in order — first middleware runs first, then the next, then the handler
  • Middleware receives a MiddlewareFunctionInput with phase, request (path_params, query_params, headers, method), and context from auth
  • Returning { action: 'respond' } short-circuits the chain — the handler never runs
  • Returning { action: 'continue' } passes to the next middleware or the handler

Architecture

Installs
179
Repository
iii-hq/iii
GitHub Stars
17.8K
First Seen
Apr 6, 2026
iii-http-middleware — iii-hq/iii