# unrolled/render

Go package for easily rendering JSON, XML, binary data, and HTML templates responses.

Repository: https://github.com/unrolled/render
Canonical: https://ross.abutalabs.com/products/unrolled-render
Language: Go
License: MIT
License Family: permissive
Topics: golang, go, html, json, xml, binary, text, jsonp
Last push: 2026-05-01T20:44:15+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 80, release rhythm 49, longevity 100
- inputs: {"age_days": 4467, "days_push": 124, "days_rel": 124, "gap_med": 579, "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 1998, forks 151 (observed 2026-08-28T04:06:03.653150+00:00)

## What it is
A Go package that simplifies rendering HTTP responses as JSON, XML, JSONP, plain text, binary data, or HTML templates. It wraps Go's standard library marshaling and html/template packages and works with any web framework that exposes http.ResponseWriter.

## Use cases
- render  responses in a go http handler
- serve html templates from a go web server
- return xml responses from an api
- write binary data to an http response
- render p callbacks for cross-domain requests
- use one response rendering library across any go web framework

## When to choose
- you are building Go web services and want consistent, easy response rendering
- you need to mix JSON, XML, text, binary, and HTML template responses in one app
- you want a framework-agnostic rendering layer that works with net/http or any router

## When to avoid
- you use a full web framework that already includes response rendering
- you need advanced templating features beyond Go's html/template
- you are not writing Go

## Facets
- artifact type: library
- maturity: stable
- function: templating, serialization, http-server, middleware
- domain: web-development, backend, apis
- platform: go, windows, cross-platform
- tags: go-library, http-responses, html-templates, xml, p, response-rendering, linux, macos

## Member repositories
- unrolled/render (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:03.653150+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-30T03:02:14.515780+00:00, confidence not recorded.
  - readme: https://github.com/unrolled/render (fetched 2026-08-28T04:06:03.653150+00:00, sha 139fe8d00292)
- Data as of 2026-08-30T08:39:29.467469+00:00.
