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

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
thx avatar

thx/gogocode

0
View on GitHub↗
6,075 Stars·465 Forks·JavaScript·mit·10 Aufrufe

Gogocode

GoGoCode is an AST-based code transformation toolkit that enables developers to query, match, and rewrite JavaScript source code using jQuery-style selectors and wildcard patterns. At its core, it provides a programmatic code refactoring library that manipulates parsed AST nodes, allowing precise structural modifications without worrying about formatting differences. The toolkit also functions as a JavaScript AST query engine, finding code patterns through snippet-based matching with wildcards that capture unknown or variable-length fragments.

What distinguishes GoGoCode is its callback-driven dynamic replacement system, where transformation callbacks receive matched wildcard values and return context-aware replacement code. The jQuery-style selector syntax makes AST traversal intuitive without manual tree walking, while the wildcard-based pattern matching handles both fixed and variable-length code fragments during queries. The toolkit includes a multi-framework migration engine that automates upgrading Vue 2 components to Vue 3 syntax, converting Element UI imports to Element Plus equivalents, and migrating iView to iView 4, with full Vue template-aware parsing for single-file component transformations.

The code transformation capabilities cover AST node insertion, deletion, and replacement, along with positional code insertion methods like append, prepend, before, and after. For querying, it supports code existence checks, matched node iteration, and AST-to-code generation for output or inspection. The framework migration tools specifically handle Vue template transformations alongside JavaScript, enabling full-stack code modifications in a single pass.

Features

  • AST-Based Refactorers - Provides AST-based refactoring by matching and replacing code patterns using queries and wildcards.
  • Source Code Rewriting - Provides AST-based source code rewriting for precise structural modifications without formatting concerns.
  • JavaScript AST Transformations - Provides an AST manipulation library for querying, replacing, and generating JavaScript code.
  • Code Refactoring Tools - Provides a programmatic code rewriting system that inserts, removes, and replaces AST nodes.
  • Pattern Wildcards - Matches code patterns with wildcards that capture unknown or variable-length fragments during AST queries.
  • Code Fragment Wildcards - Ships wildcard-based pattern matching for capturing unknown code fragments in AST queries.
  • Code Fragment Wildcards - Uses wildcards in code selectors to match unknown or variable-length code fragments during AST queries.
  • Template-Aware Transformations - Parses and transforms Vue template syntax alongside JavaScript for full-stack code modifications.
  • Pattern-Based Code Manipulation - Finds code snippets by pattern with wildcards and performs insert, remove, or replace operations.
  • Framework Migrations - Automates framework version upgrades by rewriting imports, APIs, and component syntax using AST-based pattern matching.
  • AST Node Querying - Provides jQuery-style AST node selection for pattern-based code queries without manual traversal.
  • Migration Automation - Automates upgrading Vue 2 components to Vue 3 syntax and migrating Element UI to Element Plus.
  • Version Migration Tools - Automates rewriting Vue 2 component syntax and lifecycle hooks to Vue 3 equivalents.
  • Template Syntax Transformers - Parses and transforms Vue template syntax alongside JavaScript for full-stack code modifications.
  • Vue Template Parsers - Parses and transforms Vue template syntax alongside JavaScript for single-file component transformations.
  • UI Library Migration Tools - Rewrites iView component imports and API calls to match iView 4's updated interface.
  • CSS-Like Selectors - Implements jQuery-style selector syntax for intuitive AST node selection without manual tree walking.
  • Callback-Driven Replacements - Accepts callback functions that receive matched wildcard values and return context-aware replacement code.
  • Wildcard Callback Replacements - Ships callback-driven dynamic replacement where callbacks receive wildcard matches and return replacement code.
  • jQuery-Style Selectors - Selects AST nodes using a jQuery-like syntax for intuitive code traversal without manual tree walking.
  • Migration Upgrades - Automates converting Element UI imports and usage patterns to Element Plus equivalents.
  • Migration Automation - Converts component imports and usage patterns between UI libraries like Element UI to Element Plus.
  • Miscellaneous Tools - Code transformation tool for refactoring.

Star-Verlauf

Star-Verlauf für thx/gogocodeStar-Verlauf für thx/gogocode

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Open-Source-Alternativen zu Gogocode

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Gogocode.
  • openrewrite/rewriteAvatar von openrewrite

    openrewrite/rewrite

    3,312Auf GitHub ansehen↗

    OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic tree parser to represent source code as type-aware trees that preserve original whitespace and formatting, enabling precise and deterministic modifications. The project utilizes a declarative refactoring pipeline where sequences of transformations are defined in YAML to resolve breaking changes and technical debt. It features type-aware pattern matching and cross-language model mapping to apply similar refactoring patterns across different programming languages. The framework

    Javaabstract-syntax-treeastcode-search
    Auf GitHub ansehen↗3,312
  • rectorphp/rectorAvatar von rectorphp

    rectorphp/rector

    10,199Auf GitHub ansehen↗

    Rector is an automated PHP refactoring and modernization tool designed to upgrade language versions and modernize syntax using predefined rules. It functions as a static analysis engine that inspects code structures and types to identify refactoring targets without executing the code. The project provides a framework for defining custom transformation logic to automate project-specific changes. It distinguishes itself by offering specialized capabilities for migrating legacy or custom frameworks to modern alternatives and converting docblock annotations into native language attributes. The s

    PHPastautomated-upgradesinstant-upgrades
    Auf GitHub ansehen↗10,199
  • biomejs/gritqlAvatar von biomejs

    biomejs/gritql

    4,530Auf GitHub ansehen↗

    GritQL is an AST-based code transformation engine and structural search tool. It uses a declarative query language to identify and rewrite source code patterns across multiple programming languages by matching abstract syntax tree nodes rather than literal text. The system functions as an automated refactoring framework for large-scale migrations and API updates. It distinguishes itself by utilizing sequential transformation pipelines and reusable blueprints that can be synced between local environments and remote repositories. The tool covers a broad range of capabilities including static a

    Rustastcodemodjavascript
    Auf GitHub ansehen↗4,530
  • benjamn/recastAvatar von benjamn

    benjamn/recast

    5,246Auf GitHub ansehen↗

    Recast is a JavaScript AST parser and printer designed for automated code refactoring. It converts source code into abstract syntax trees that can be modified and then printed back into source code. The project focuses on formatting-preserving transformations, storing original whitespace and indentation metadata within syntax tree nodes to reconstruct code without losing its original layout. It also generates character-level source maps to maintain precise correspondences between original input and transformed output. The toolkit includes utilities for syntax tree manipulation using a visito

    TypeScript
    Auf GitHub ansehen↗5,246
Alle 30 Alternativen zu Gogocode anzeigen→

Häufig gestellte Fragen

Was macht thx/gogocode?

GoGoCode is an AST-based code transformation toolkit that enables developers to query, match, and rewrite JavaScript source code using jQuery-style selectors and wildcard patterns. At its core, it provides a programmatic code refactoring library that manipulates parsed AST nodes, allowing precise structural modifications without worrying about formatting differences. The toolkit also functions as a JavaScript AST query engine, finding code patterns through snippet-based…

Was sind die Hauptfunktionen von thx/gogocode?

Die Hauptfunktionen von thx/gogocode sind: AST-Based Refactorers, Source Code Rewriting, JavaScript AST Transformations, Code Refactoring Tools, Pattern Wildcards, Code Fragment Wildcards, Template-Aware Transformations, Pattern-Based Code Manipulation.

Welche Open-Source-Alternativen gibt es zu thx/gogocode?

Open-Source-Alternativen zu thx/gogocode sind unter anderem: openrewrite/rewrite — OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic… rectorphp/rector — Rector is an automated PHP refactoring and modernization tool designed to upgrade language versions and modernize… biomejs/gritql — GritQL is an AST-based code transformation engine and structural search tool. It uses a declarative query language to… benjamn/recast — Recast is a JavaScript AST parser and printer designed for automated code refactoring. It converts source code into… python-mode/python-mode — python-mode is a Vim IDE plugin that provides an integrated toolset for Python development. It incorporates a… kotlin/kotlin-lsp — kotlin-lsp is a language server implementation that integrates editors with the Kotlin compiler and build tools to…