Show HN: Write GitHub Actions in any language: Loopt github.com · 9 points · 4 c...
Show HN @show
Show HN: Write GitHub Actions in any language: Loopt github.com · 9 points · 4 comments · HN thread
TL;DR Loopt is a Show HN tool that lets you author GitHub Actions workflows in TypeScript, Python, Go, Rust, or a custom language via a plugin protocol, then generates the standard .github/workflows YAML from that source. It can also import existing workflow YAML into editable code. The thread is small, with four comments that are mostly positive and one question about generating YAML at runtime.
- Loopt ships first-party support for TypeScript, Python, Go, and Rust, and custom languages plug in through a plugin protocol.
- Running loopt gen compiles the source under .loopt/workflows into standard .github/workflows/*.yml files; generated files are marked not to be edited directly.
- loopt init writes a starter workflow whose steps follow detected project files (package.json, Cargo.toml, go.mod, pyproject.toml and similar), with a read-only token and pinned actions/checkout.
- loopt import converts existing workflow YAML into source, and loopt gen --check fails if committed YAML drifts from the source.
- Prebuilt binaries are published for macOS arm64 and Linux x86_64 with an install script; the authoring language's runtime (Node.js 26+, Python 3, Go, or Cargo) must be installed.
- Other commands include loopt lint for correctness and security checks, action bindings, a secrets inventory, and a uses: pin lockfile; the project is MIT licensed.
Discussion The thread is short and friendly. Commenters welcome the idea of writing workflows in a familiar language instead of YAML, and the maintainer replies to both comments. The main technical exchange is whether the YAML could be generated at runtime without committing it, and the answer is no, because GitHub requires workflow files to live in .github/.
- Writing workflows in a preferred language is a welcome idea (most): Commenters say they already mix JavaScript via actions/github-script and inline Python, so authoring whole workflows in one language sounds appealing. The maintainer agrees and suggests GitHub should have supported this much earlier.
- Generate YAML at runtime instead of committing it (a few): One commenter asks whether the YAML could be produced at runtime without committing generated files. The maintainer says this is not possible because GitHub only reads workflows from the .github/ directory, so generated files must be committed.