{"id":49354985,"url":"https://github.com/yzdame/gikz","last_synced_at":"2026-04-27T13:01:41.432Z","repository":{"id":341192726,"uuid":"1167679972","full_name":"YZDame/Gikz","owner":"YZDame","description":"Zero-dependency Node.js CLI for converting GeoGebra (.ggb/.xml) into clean TikZ","archived":false,"fork":false,"pushed_at":"2026-02-28T14:33:00.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-28T16:22:51.354Z","etag":null,"topics":["cli","code-cleaner","converter","geogebra","latex","tikz"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gikz","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YZDame.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-26T15:07:02.000Z","updated_at":"2026-02-28T14:33:03.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/YZDame/Gikz","commit_stats":null,"previous_names":["yzdame/gikz"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/YZDame/Gikz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YZDame%2FGikz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YZDame%2FGikz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YZDame%2FGikz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YZDame%2FGikz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YZDame","download_url":"https://codeload.github.com/YZDame/Gikz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YZDame%2FGikz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32337274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","code-cleaner","converter","geogebra","latex","tikz"],"created_at":"2026-04-27T13:01:39.922Z","updated_at":"2026-04-27T13:01:41.413Z","avatar_url":"https://github.com/YZDame.png","language":"JavaScript","readme":"# Gikz\n\n[![npm version](https://img.shields.io/npm/v/gikz)](https://www.npmjs.com/package/gikz)\n[![license](https://img.shields.io/npm/l/gikz)](LICENSE)\n[![node](https://img.shields.io/node/v/gikz)](https://nodejs.org)\n[![downloads](https://img.shields.io/npm/dm/gikz)](https://www.npmjs.com/package/gikz)\n\n**[中文文档](README_zh.md)**\n\n**Clean GeoGebra TikZ exports into concise, readable LaTeX code.**\n\nA zero-dependency Node.js CLI tool that transforms GeoGebra's verbose TikZ output into clean, hand-written-style code ready for your `.tex` files. Also supports direct conversion from `.ggb` and `.xml` files.\n\n\u003e Derived from [GGB-Tikz-Code-Filter](https://github.com/By990920/GGB-Tikz-Code-Filter) by [By990920](https://github.com/By990920). Licensed under GPL-2.0.\n\n## Features\n\n- Strips redundant styles (`line width`, colors, `scriptsize` wrappers)\n- Rounds coordinates to 3 decimal places (configurable)\n- Replaces raw coordinates with named labels (`(A)`, `(B)`, …)\n- Smart label positioning based on point geometry\n- Converts line styles (`dash pattern=...` → `dashed`)\n- Supports: points, lines, circles, ellipses, arcs, sectors, angle marks, function plots, Bézier curves, text labels\n- **Direct conversion from `.ggb` (GeoGebra project) and `.xml` files**\n- Output as `tikzpicture` fragment or complete `standalone` document\n- Batch processing \u0026 stdin/stdout piping\n\n## Installation\n\n```bash\n# Global install (recommended)\nnpm install -g gikz\n\n# Or run directly\nnpx gikz export.txt\n\n# Or clone and use\ngit clone https://github.com/YZDame/gikz.git\ncd gikz\nnode gikz.js export.txt\n```\n\n## Usage\n\n```bash\n# Clean a TikZ export\ngikz export.txt\n\n# Convert a GeoGebra project file directly\ngikz figure.ggb\n\n# Convert a GeoGebra XML file\ngikz geogebra.xml\n\n# Standalone document — ready for pdflatex\ngikz -s export.txt\n\n# Write to file\ngikz -s -o clean.tex figure.ggb\n\n# Batch — multiple files to a directory\ngikz fig1.ggb fig2.txt fig3.xml -o output/\n\n# Pipe from stdin\ncat export.txt | gikz -s \u003e clean.tex\n\n# Skip points and labels\ngikz --no-points --no-labels export.txt\n\n# Keep original coordinate precision\ngikz --no-round export.txt\n```\n\n## Supported Input Formats\n\n| Format | Description |\n|---|---|\n| `.txt` / `.tex` | GeoGebra TikZ export (cleans verbose code) |\n| `.ggb` | GeoGebra project file (direct conversion) |\n| `.xml` | GeoGebra XML file (direct conversion) |\n\n## Options\n\n| Flag | Description |\n|---|---|\n| `-s`, `--standalone` | Output complete `standalone` LaTeX document |\n| `-t`, `--tikzonly` | Output `tikzpicture` fragment only (default) |\n| `--no-points` | Omit point markers (`\\draw[fill=black]...`) |\n| `--no-labels` | Omit point labels (`\\node...`) |\n| `--no-round` | Keep original coordinate precision |\n| `-o`, `--output \u003cpath\u003e` | Write to file (or directory for batch) |\n| `-h`, `--help` | Show help |\n\n## Example\n\n**Input** (GeoGebra export):\n```latex\n\\draw [line width=2pt,color=rvwvcq] (-2.75,2.1)-- (-4.89,-2.06);\n\\draw [fill=rvwvcq] (-2.75,2.1) circle (2.5pt);\n\\draw[color=rvwvcq] (-2.6468416958718426,2.3645220512615386) node {$A$};\n```\n\n**Output** (Gikz):\n```latex\n\\coordinate (A) at (-2.75,2.1);\n\\draw (A) -- (B);\n\\draw[fill=black] (A) circle (1pt);\n\\node [above] at (A) {$A$};\n```\n\n## AI Coding Agent Integration\n\nGikz includes skill files for AI coding agents:\n\n| Agent | File | Usage |\n|---|---|---|\n| Claude Code | `CLAUDE.md` | Auto-detected in workspace |\n| OpenAI Codex | `AGENTS.md` | Auto-detected in workspace |\n\nThese files teach the agent how to invoke Gikz to clean TikZ code within your project.\n\n## Requirements\n\n- Node.js ≥ 14\n\nNo other dependencies.\n\n## License\n\nGPL-2.0 — See [LICENSE](LICENSE).\n\nDerived from [GGB-Tikz-Code-Filter](https://github.com/By990920/GGB-Tikz-Code-Filter) by [By990920](https://github.com/By990920).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyzdame%2Fgikz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyzdame%2Fgikz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyzdame%2Fgikz/lists"}