{
  "markdown": "# TOON Extension for Gemini CLI\n\n[![CI](https://github.com/javydreamercsw/gemini-cli-toon-extension/actions/workflows/ci.yml/badge.svg)](https://github.com/javydreamercsw/gemini-cli-toon-extension/actions/workflows/ci.yml)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n\n**TOON (Token-Oriented Object Notation)** is a lossless, indentation-based encoding of the JSON data model, specifically optimized for LLM context windows. This extension integrates TOON into the Gemini CLI, allowing the AI to handle large datasets while saving up to **45-60% in token usage**.\n\n## Why use TOON?\n\n- **Token Efficiency**: Reduces the character count of large arrays by omitting redundant brackets, braces, and property names.\n- **Improved Context Management**: Fit more data (logs, database results, search results) into the same context window.\n- **Human & AI Readable**: Combines YAML-style indentation with CSV-style tabular layouts.\n\n## Installation\n\n1. Clone this repository or download the source.\n2. Build the project:\n   ```bash\n   npm install\n   npm run build\n   ```\n3. Link it to your Gemini CLI:\n   ```bash\n   gemini extensions link .\n   ```\n\n## Available Tools\n\n### `toon_encode`\nEncodes a JSON array or object into TOON format.\n- **Input**: `{ \"data\": [...] }`\n- **Output**: A TOON-encoded string.\n\n### `toon_decode`\nDecodes a TOON string back into a standard JSON array/object.\n- **Input**: `{ \"toon\": \"...\" }`\n- **Output**: A standard JSON structure.\n\n## Usage Example\n\n**Standard JSON (Verbose):**\n```json\n[\n  {\"id\": 1, \"name\": \"Alice\", \"role\": \"admin\"},\n  {\"id\": 2, \"name\": \"Bob\", \"role\": \"user\"}\n]\n```\n\n**TOON Tabular (Compact):**\n```toon\n[2]{id,name,role}:\n  1,Alice,admin\n  2,Bob,user\n```\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.\n",
  "bytes": 1888,
  "sha": "431c3c775705001447fdeacbbbe0f298262797d53c746f6333d0d7039f2ed39f",
  "repo_slug": "javydreamercsw/gemini-cli-toon-extension",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_javydreamercsw_gemini_cli_toon_extension_3fc1d967/readme"
}