awesome-repositories.com
Blog
MCP
awesome-repositories.com

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectServer MCPDespreCum realizăm clasamentulPresă
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
evilmartians avatar

evilmartians/lefthook

0
View on GitHub↗
7,598 stele·265 fork-uri·Go·mit·13 vizualizărilefthook.dev↗

Lefthook

Lefthook is a Git hook manager and workflow automation tool designed to execute user-defined scripts during version control events. It automates the execution of linters, tests, and formatters to validate changes and maintain code quality before commits or pushes.

The project distinguishes itself through a parallel execution model that runs multiple shell commands concurrently to reduce latency. It supports complex configuration management, including the ability to merge global, remote, and local settings and synchronize configurations from external repositories to standardize development environments across teams.

Its broader capabilities cover command-line automation, such as commit message validation and automatic file staging. The tool also provides advanced filtering for hook execution based on glob patterns, file types, or branch names, and includes specialized support for monorepo structures via subdirectory script execution.

Lefthook is distributed as a standalone binary and is available via various package managers, with integration support for Devbox and the Swift Package Manager.

Features

  • Git Hook Definitions - Defines automation steps and scripts to execute during Git events via structured configuration files.
  • Git Hook Managers - Automates the installation and execution of Git hooks to validate or modify the development workflow.
  • Configuration Layering Systems - Merges global, remote, and local configuration files to support environment-specific overrides of hook behaviors.
  • Input Filtering - Restricts hook execution to specific files using glob patterns and file type filters.
  • File Filtering Utilities - Restricts files passed to commands using glob patterns and skips execution when no matches are found.
  • Parallel Command Execution - Executes multiple commands and scripts concurrently to significantly reduce total execution time.
  • Parallel Execution - Runs multiple shell commands concurrently using a worker model to reduce total workflow latency.
  • Pre-commit Hooks - Automates the execution of linters, tests, and formatters as quality checks before commits.
  • Shell Script Execution Engines - Executes specified shell scripts or commands as part of a workflow to automate quality checks.
  • Configuration-Defined Scripts - Maps version control events to user-defined scripts via YAML or JSON configuration files.
  • Configuration Merging - Combines local and external configuration files using glob patterns to share and synchronize settings across teams.
  • Command Argument Templates - Substitutes placeholders in commands with real-time data like staged or tracked file paths.
  • Monorepo Script Coordination - Executes commands within specified relative paths to support monorepo structures and separated folders.
  • Command - Substitutes placeholders in command strings with real-time data such as staged file paths before execution.
  • Argument Injection Utilities - Substitutes command templates with real-time data such as staged files or hook arguments during execution.
  • CLI Output Controllers - Filters console logs and suppresses standard output to only show errors during hook execution.
  • Task Runner Extensions - Supports executing tasks in different environments, including native shells and containers.
  • Hook Argument Injection - Appends custom arguments or templates to commands to modify script behavior or override configurations.
  • Commit Message Validation - Checks commit messages against a predefined set of rules to ensure they follow a consistent format.
  • Configuration Importing - Downloads and merges configuration files from external repositories to share setup across projects.
  • Dynamic File Target Selection - Executes custom shell commands to determine which files or directories should be passed to a hook.
  • Environment Configuration - Loads custom configuration files via environment variables to modify behavior without changing version-controlled settings.
  • Index Staging Operations - Automatically adds modified files to the Git index after a script completes to ensure changes are committed.
  • Git Hook Bypassing Mechanisms - Allows users to temporarily skip the execution of configured hooks using environment variables.
  • Binary Shims - Implements a lightweight binary shim in the git hooks directory to delegate execution to the main manager.
  • Manual Task Triggering - Allows running specific groups of commands or custom tasks on demand via the CLI.
  • Subdirectory Script Execution - Supports monorepo structures by allowing script execution within specific subdirectories.
  • Local Overrides - Supports user-specific configuration files that override global project settings to isolate developer environments.
  • Local Hook Configuration Overrides - Enables the creation of secondary configuration files for hooks that remain local to the machine.
  • Real-Time Output Streaming - Displays the standard output of running scripts in real time rather than waiting for completion.
  • Remote Configuration Synchronization - Fetches the latest configuration from a remote source on every execution to keep scripts up to date.
  • Script Management Tools - Allows specifying a directory for script files excluded from version control to enable machine-specific automation.
  • Task Filtering - Assigns labels to commands to selectively include or exclude tasks during the execution of hooks.
  • Task Tagging Systems - Assigns labels to commands to allow selective execution or exclusion of related tasks.
  • Scripted Interaction Prompts - Connects executed scripts to the terminal TTY to support real-time user interaction and prompts.
  • Command Configuration Overrides - Allows local overrides of global command definitions to adapt execution environments for specific users.
  • Working Directory Configuration - Controls the filesystem context for task execution and filters file paths to optimize hook runs.
  • Commit Message Generation - Prompts users to create structured commit messages based on specific conventions to maintain project history.
  • Conditional Command Executions - Runs specific commands or hooks only when defined conditions are met, such as matching a branch pattern.
  • Sequential and Parallel Job Groups - Executes sets of scripts simultaneously or sequentially with shared environment settings to coordinate complex steps.
  • Environment Variable Configurations - Defines custom environment variables and extends the system path to ensure scripts have necessary tool access.
  • Git Ref-Based Execution Filters - Limits the execution of hooks to specific branches or tags to prevent scripts from running in unwanted environments.
  • Hook Execution Skipping - Provides mechanisms to prevent specific scripts from running based on the active branch or system state.
  • Development Environment Standardization - Enables team-wide consistency by sharing and synchronizing hook configurations via remote files.
  • Execution Failure Policies - Halts the execution of subsequent commands in a sequence if any single task fails.
  • Execution Filters - The tool executes specific scripts based on file properties such as MIME types or binary status.
  • Worktree State Enforcement - Triggers a non-zero exit status when tracked files are modified to signal failure in CI environments.

Istoric stele

Graficul istoricului de stele pentru evilmartians/lefthookGraficul istoricului de stele pentru evilmartians/lefthook

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Alternative open-source pentru Lefthook

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Lefthook.
  • j178/prekAvatar j178

    j178/prek

    6,297Vezi pe GitHub↗

    Prek is a Git hook manager written in Rust that runs configured hooks as a single binary without requiring Python or other external runtimes. It executes hooks faster than standard tools through parallel processing and bundled Rust implementations, and includes a built-in hook repository that enables fully offline operation without network access or environment setup. The tool supports both TOML and YAML configuration formats with identical semantics, and can run hooks from existing pre-commit configuration files without modification. Prek distinguishes itself through workspace-aware monorepo

    Rustgitgit-hookspre-commit
    Vezi pe GitHub↗6,297
  • sds/overcommitAvatar sds

    sds/overcommit

    4,008Vezi pe GitHub↗

    Overcommit is a Git hook manager and pre-commit validation framework designed to automate the execution of scripts and checks during various Git events. It serves as a workflow automation tool that ensures code quality and project standards are met before changes are committed or pushed to a remote repository. The system distinguishes itself through a comprehensive YAML-based configuration that allows for detailed hook behavior control, including file execution filtering, conditional skipping, and the management of hook dependencies. It provides specialized roles such as a commit message vali

    Ruby
    Vezi pe GitHub↗4,008
  • arkweid/lefthookAvatar Arkweid

    Arkweid/lefthook

    8,434Vezi pe GitHub↗

    Lefthook is a Git hook manager and workflow automator that uses a configuration-driven approach to manage scripts triggered by version control events. It functions as a parallel task runner, executing multiple scripts simultaneously to reduce the time required for pre-commit or pre-push checks. The project provides a containerized hook runner to ensure consistent dependencies and toolsets across different developer machines. It also supports monorepo orchestration by executing scripts within specific subdirectories and managing complex project structures. The system includes capabilities for

    Go
    Vezi pe GitHub↗8,434
  • typicode/huskyAvatar typicode

    typicode/husky

    35,156Vezi pe GitHub↗

    Husky is a Git hook manager that automates the installation and execution of version control lifecycle events within a project repository. It functions by redirecting standard version control event triggers to a centralized configuration directory, allowing teams to standardize development workflows and enforce code quality without requiring manual setup on every machine. The tool enables custom workflow automation by triggering shell scripts during operations such as committing or pushing code. It distinguishes itself by integrating directly into package manager lifecycles, ensuring that aut

    JavaScriptcommitgithooks
    Vezi pe GitHub↗35,156
Vezi toate cele 30 alternative pentru Lefthook→

Întrebări frecvente

Ce face evilmartians/lefthook?

Lefthook is a Git hook manager and workflow automation tool designed to execute user-defined scripts during version control events. It automates the execution of linters, tests, and formatters to validate changes and maintain code quality before commits or pushes.

Care sunt principalele funcționalități ale evilmartians/lefthook?

Principalele funcționalități ale evilmartians/lefthook sunt: Git Hook Definitions, Git Hook Managers, Configuration Layering Systems, Input Filtering, File Filtering Utilities, Parallel Command Execution, Parallel Execution, Pre-commit Hooks.

Care sunt câteva alternative open-source pentru evilmartians/lefthook?

Alternativele open-source pentru evilmartians/lefthook includ: j178/prek — Prek is a Git hook manager written in Rust that runs configured hooks as a single binary without requiring Python or… sds/overcommit — Overcommit is a Git hook manager and pre-commit validation framework designed to automate the execution of scripts and… arkweid/lefthook — Lefthook is a Git hook manager and workflow automator that uses a configuration-driven approach to manage scripts… typicode/husky — Husky is a Git hook manager that automates the installation and execution of version control lifecycle events within a… phpro/grumphp — GrumPHP is a Git commit validator and PHP code quality orchestrator. It functions as a Git hook manager that automates… brigade/overcommit — Overcommit is a Git hook manager and workflow automation system used to configure, deploy, and orchestrate scripts…