# thx/gogocode

GoGoCode is a transformer for JavaScript/Typescript/HTML based on AST but providing a more intuitive API.

Repository: https://github.com/thx/gogocode
Canonical: https://ross.abutalabs.com/products/gogocode
Language: JavaScript
License: MIT
License Family: permissive
Topics: ast, jscodeshift, babel, recast, vue
Last push: 2024-04-11T02:24:33+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2009, "days_push": 875, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6083, forks 463 (observed 2026-08-28T04:09:34.891332+00:00)

## What it is
GoGoCode is a JavaScript/TypeScript/HTML code transformation library built on ASTs with a jQuery-like API and regex-like matching syntax. It simplifies writing codemods for parsing, finding, and rewriting code compared to raw Babel or jscodeshift.

## Use cases
- write codemods to refactor javascript codebases
- migrate a project from vue2 to vue3
- transform elementui code to elementplus
- find and replace code patterns ignoring formatting
- parse and generate javascript/typescript/html from ast

## When to avoid
- you need actively evolving tooling with frequent updates
- you only need simple string-based refactoring without AST precision
- you work outside the JavaScript/TypeScript/HTML ecosystem

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, developer-tools, plugin-system
- domain: developer-tools, web-development, frontend, parsers
- platform: cli, browser
- tags: ast, codemod, code-transformation, jscodeshift-alternative, vue-migration, nodejs

## Member repositories
- thx/gogocode (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:34.891332+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:48:19.865933+00:00, confidence not recorded.
  - readme: https://github.com/thx/gogocode (fetched 2026-08-28T04:09:34.891332+00:00, sha 092385f28354)
  - registry_npm: https://registry.npmjs.org/gogocode (fetched 2026-08-29T08:45:08.920147+00:00, sha fdca4e89804f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
