# marcoroth/herb

🌿 Powerful and seamless HTML-aware ERB toolchain.

Repository: https://github.com/marcoroth/herb
Canonical: https://ross.abutalabs.com/products/herb
Homepage: https://herb-tools.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: erb, html, parser, ruby, engine, hacktoberfest, views
Last push: 2026-09-02T18:07:22+00:00

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

## Adoption (not part of the score)
Stars 1295, forks 134 (observed 2026-09-03T02:15:14.702006+00:00)

## What it is
Herb is an HTML-aware ERB toolchain built around a fast C parser that produces detailed syntax trees for HTML+ERB templates. It ships developer tools (CLI, language server, formatter, linter), language bindings for Ruby, Node.js, Java, Rust, and WebAssembly, and an Erubi-compatible rendering engine.

## Use cases
- parse html.erb templates into a syntax tree
- lint and format ERB view files
- add ERB language server support to an editor
- replace Erubi with an HTML-aware ERB rendering engine
- analyze Rails templates for HTML validation and security checks
- highlight or minify HTML+ERB templates

## When to choose
- you work with .html.erb files in Rails or other Ruby web frameworks and want modern tooling
- you need accurate, error-tolerant parsing of interleaved HTML and Ruby code
- you want editor integration (LSP), formatting, or linting for ERB templates

## When to avoid
- you use templating languages other than ERB (broader support is still planned)
- you need a fully stable formatter, which is still experimental
- your project has no HTML+ERB templates

## Facets
- artifact type: library
- maturity: active
- function: parser, linter, formatter, templating, cli, editor, developer-tools
- domain: web-development, parsers, developer-tools, frontend
- platform: ruby, rust, cli, wasm, cross-platform
- tags: erb, html, language-server, syntax-tree, rails, ruby-tooling, lsp, nodejs

## Member repositories
- marcoroth/herb (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:14.702006+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:55:39.550577+00:00, confidence not recorded.
  - readme: https://github.com/marcoroth/herb (fetched 2026-09-03T02:15:14.702006+00:00, sha e59b9abc0989)
  - homepage: https://herb-tools.dev (fetched 2026-08-29T12:11:46.147180+00:00, sha 205cde8381c8)
  - site_page: https://herb-tools.dev/overview (fetched 2026-08-29T12:11:46.179720+00:00, sha 5d46552a6676)
- Data as of 2026-08-30T08:39:29.467469+00:00.
