Skip to main content
Use this example when you want to see how a larger Redop app composes reusable behavior.

What it shows

  • a custom plugin built with definePlugin(...)
  • request middleware built with middleware(...)
  • built-in helpers like logger(...), apiKey(...), and jwt(...)
  • request context flowing from middleware into a tool handler

Full code

Why this example is useful

  • definePlugin(...) packages hooks and setup logic as reusable server behavior
  • middleware can add request-scoped values before the tool handler runs
  • auth helpers and custom plugins both compose through .use(...)

Run it