# valyala/quicktemplate

Fast, powerful, yet easy to use template engine for Go. Optimized for speed, zero memory allocations in hot paths. Up to 20x faster than html/template

Repository: https://github.com/valyala/quicktemplate
Canonical: https://ross.abutalabs.com/products/quicktemplate
Language: Go
License: MIT
License Family: permissive
Topics: golang, template-engine, fast
Last push: 2024-07-21T02:16:20+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3832, "days_push": 774, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3326, forks 145 (observed 2026-08-28T04:07:56.397897+00:00)

## What it is
quicktemplate is a fast template engine for Go that compiles templates into Go code, catching most errors at compile time. It claims up to 20x faster rendering than html/template with zero memory allocations in hot paths.

## Use cases
- render html pages fast in go
- compile templates into a go binary
- avoid template runtime errors in production
- generate text output with zero allocations
- template inheritance in go
- replace html/template for performance

## When to choose
- you need maximum template rendering speed in Go
- you want template errors caught at compile time
- templates can be baked into a single binary
- you want Go-like syntax instead of a new template language

## When to avoid
- you need to update templates on the fly in production
- you want strict separation of logic and markup
- you need a simple dynamically reloaded template engine (use fasttemplate)

## Facets
- artifact type: library
- maturity: stable
- function: templating, web-framework
- domain: web-development, backend, developer-tools
- platform: go, windows, cross-platform
- tags: template-engine, compiled-templates, zero-allocation, performance, html-templates, linux, macos

## Member repositories
- valyala/quicktemplate (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:56.397897+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-29T18:41:47.409105+00:00, confidence not recorded.
  - readme: https://github.com/valyala/quicktemplate (fetched 2026-08-28T04:07:56.397897+00:00, sha dceb39e7711d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
