# koajs/bodyparser

Koa body parsing middleware

Repository: https://github.com/koajs/bodyparser
Canonical: https://ross.abutalabs.com/products/bodyparser
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-03T01:24:06+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 35, longevity 100
- inputs: {"age_days": 4580, "days_push": 31, "days_rel": 221, "gap_med": 233, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1325, forks 121 (observed 2026-08-28T04:04:22.595819+00:00)

## What it is
@koa/bodyparser is the official body-parsing middleware for the Koa web framework, built on co-body. It parses incoming JSON, form, text, and XML request bodies and exposes them on ctx.request.body before your handlers run.

## Use cases
- parse  request bodies in koa
- handle form submissions in koa app
- parse urlencoded post data in node
- limit request body size in koa
- parse xml request body in koa
- access parsed body in koa middleware

## When to choose
- you use Koa and need to read JSON or urlencoded request bodies
- you want configurable body size limits and content-type parsing
- you need text or XML body parsing in Koa

## When to avoid
- you need multipart/form-data or file uploads - use @koa/multer instead
- you are not using the Koa framework

## Facets
- artifact type: library
- maturity: stable
- function: middleware, serialization, http-server
- domain: web-development, backend, apis
- platform: -
- tags: koa, body-parser, request-body, urlencoded, nodejs

## Member repositories
- koajs/bodyparser (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:22.595819+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:46:35.018912+00:00, confidence not recorded.
  - readme: https://github.com/koajs/bodyparser (fetched 2026-08-28T04:04:22.595819+00:00, sha c4ea9653ccd8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
