# stencilproject/Stencil

Stencil is a simple and powerful template language for Swift.

Repository: https://github.com/stencilproject/Stencil
Canonical: https://ross.abutalabs.com/products/stencil
Homepage: https://stencil.fuller.li
Language: Swift
License: BSD-2-Clause
License Family: permissive
Last push: 2024-12-22T12:54:31+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4332, "days_push": 619, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2416, forks 219 (observed 2026-08-28T04:06:50.306744+00:00)

## What it is
Stencil is a template language and engine for Swift with a syntax similar to Django and Mustache. It lets Swift applications render text templates with variables, tags, and filters, and is used by tools like Sourcery and SwiftGen.

## Use cases
- render html templates in a swift server application
- generate swift code from templates
- use django-style templates in swift
- build a static site generator in swift
- separate presentation logic from swift code

## When to choose
- you are writing Swift and want Django/Mustache-style templating
- you need a mature template engine used by tools like Sourcery and SwiftGen
- you want extensible custom tags and filters in Swift

## When to avoid
- you need templating in a non-Swift language
- you want logic-heavy templates with embedded program code
- you need extremely high-performance streaming rendering

## Facets
- artifact type: library
- maturity: stable
- function: templating, parser
- domain: web-development, developer-tools, programming-languages
- platform: -
- tags: django-templates, mustache-like, swift-package, code-generation, swift, macos, linux, ios

## Member repositories
- stencilproject/Stencil (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:50.306744+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-30T02:33:10.026350+00:00, confidence not recorded.
  - readme: https://github.com/stencilproject/Stencil (fetched 2026-08-28T04:06:50.306744+00:00, sha 9642a622e82a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
