# yann-shi/hero

A handy, fast and powerful go template engine.

Repository: https://github.com/yann-shi/hero
Canonical: https://ross.abutalabs.com/products/yann-shi-hero
Homepage: https://shiyanhui.github.io/hero
Language: Go
License: NOASSERTION
License Family: other
Topics: template-engine, hero, go
Last push: 2020-01-09T01:41:22+00:00

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

## Adoption (not part of the score)
Stars 1564, forks 92 (observed 2026-08-28T04:05:04.115193+00:00)

## What it is
Hero is a fast Go template engine that pre-compiles HTML templates into Go code for high-performance rendering. It includes a CLI compiler with watch mode and supports template Extend and Include.

## Use cases
- compile html templates to go code
- fast server-side html rendering in go
- precompile templates for a go web app
- auto-recompile templates when files change
- use layouts and includes in go templates
- minimize memory usage when rendering templates

## When to choose
- you need the fastest possible template rendering in Go
- you want type-safe templates compiled to Go code
- you prefer compile-time errors over runtime template errors

## When to avoid
- you need runtime-editable templates without recompilation
- you use standard library html/template syntax and ecosystem
- you need a template engine for a non-Go language

## Facets
- artifact type: library
- maturity: maintenance
- function: templating, web-framework, cli
- domain: web-development, frontend, developer-tools
- platform: go, cli, cross-platform
- tags: template-engine, html-templates, code-generation, precompilation, high-performance

## Member repositories
- yann-shi/hero (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:04.115193+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:00:14.628395+00:00, confidence not recorded.
  - readme: https://github.com/yann-shi/hero (fetched 2026-08-28T04:05:04.115193+00:00, sha 9fda2e0eb5d0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
