react-hcl

JSON →
library 0.2.2 ·javascript
verified May 1, 2026

react-hcl (v0.2.2) is an experimental JSX/TSX-to-Terraform (.tf) transpiler that leverages a custom JSX runtime to convert React-like components directly into HCL, Terraform's configuration language. Unlike traditional Infrastructure as Code tools (e.g., Pulumi, CDKTF) which use actual programming languages to generate infrastructure, react-hcl translates JSX syntax at build time into pure Terraform files, enabling a declarative, component-based approach without any runtime overhead. It integrates with TypeScript (peer dep ^5), ships TypeScript definitions, and is intended for static compilation only—no runtime dependencies. Release cadence is experimental; breaking changes expected.

total hits 16
actors 3 distinct systems
last hit 3d ago AhrefsBot
GPTBot
5
ClaudeBot
1
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇬🇧 United Kingdom · 🇸🇬 Singapore