Back to Projects
Developer Tooling · Go Backend & Container Orchestration

YamlAnchor — Local CI/CD Pipeline Simulator

A high-performance developer tool that eliminates the painful "commit-push-fail-tweak-push-fail" cycle of debugging GitHub Actions remotely. Scans repositories via Abstract Syntax Tree (AST) analysis, synthesizes valid CI workflows, and dry-runs them in local Docker containers with live streaming logs.

Go 1.22Next.js App RouterTypeScriptDocker SDKAST EngineNDJSON Stream
View on GitHub

01 / Overview

A high-performance developer tool that eliminates the painful "commit-push-fail-tweak-push-fail" cycle of debugging GitHub Actions remotely. Scans repositories via Abstract Syntax Tree (AST) analysis, synthesizes valid CI workflows, and dry-runs them in local Docker containers with live streaming logs.

02 / The Problem

Developers routinely push 10+ throwaway git commits just to debug syntax errors, environment misconfigurations, and broken shell commands in GitHub Actions workflow YAML files, wasting cloud build minutes and polluting repository histories.

03 / My Solution & Architecture

Hybrid architecture combining a high-performance Go backend with a modern Next.js Studio UI. The Go backend parses codebase dependencies (Go, TypeScript, Python) using language AST parsers, synthesizes workflow steps, orchestrates isolated Docker container runs via the Docker Engine API, and streams NDJSON log events to the UI.

Key Engineering Decisions & Trade-Offs

Native Go AST Parser over Brittle Regex Matching

Regex scanning frequently fails on multiline scripts and nested dependencies. Native AST parsing parses Go mod files, package.json scripts, and Python requirements deterministically.

Direct Docker Engine SDK Integration

Interfacing directly with the Docker socket via the official Go SDK allows precise control over container lifecycle, volume mounts, resource quotas, and streaming stdout/stderr buffers.

Client-Side NDJSON Event Streaming

Streaming JSON logs line-by-line enables real-time terminal rendering in Next.js without websocket connection overhead.

04 / Technologies Used

Go 1.22Next.js App RouterTypeScriptDocker SDKAST EngineNDJSON Stream

Every technology in this stack was chosen for direct architectural fitness, verifiable benchmarking ability, and clean maintainability in a production or research setting.

05 / How It Works & Interactive Visualizer

Here is a breakdown of how the system functions in practice:

  • AST-driven repository dependency analysis across Go, TypeScript, and Python.
  • Automated GitHub Actions workflow YAML synthesis based on detected project test suites.
  • Local Docker runner simulation reproducing standard GitHub Actions Ubuntu environments.
  • Proactive secret interception and environment variable mocking.
  • Intelligent self-healing engine suggesting indentation and syntax patches.

Interactive Technical Visualizer

How to interact: Use the controls above to trigger live states, test inputs, and observe system data flow directly in your browser.

06 / Results & Verified Findings

  • Zero remote test commits: Developers validate complex multi-stage pipelines entirely on localhost.
  • Sub-second AST analysis and pipeline synthesis across multi-language monorepos.
  • Proactive secret interception before code ever touches a remote Git origin.

07 / What I Learned & Direct Contributions

Key engineering responsibilities and lessons gained during this project:

  • Built multi-language AST codebase scanner in Go (backend/pkg/simulator) to automatically discover project test commands and dependency manifests.
  • Engineered Docker container execution engine that simulates GitHub Actions runner environments locally via the Docker Engine SDK.
  • Implemented local secret scanner and mock injector (backend/pkg/secrets) preventing leaked production keys during testing.
  • Constructed Next.js App Router Studio interface with real-time NDJSON log streaming and intelligent error remediation suggestions.

08 / Future Improvements

Self-healing engine currently provides structured error analysis and remediation suggestions; fully autonomous YAML patch application is currently under validation.

Email copied to clipboard