koa-formatter

JSON →
library 0.1.0 ·javascript abandoned
verified Jun 4, 2026

A response body formatter middleware for Koa (v0.1.0, stable) that automatically wraps JSON API responses into a consistent envelope with ok, status, errors, and result fields. It supports custom formatter functions, error aggregation, and includes Flowtype definitions. Unmaintained since 2016, no recent releases; suitable for legacy Koa v1/before async/await middleware patterns. Alternatives: koa-respond, koa-json, or manual ctx.body assignment.