{"id":51505122,"url":"https://github.com/mmnaderi/antigravity-rtl","last_synced_at":"2026-07-07T23:02:57.631Z","repository":{"id":367367638,"uuid":"1279966845","full_name":"mmnaderi/antigravity-rtl","owner":"mmnaderi","description":"A smart RTL (Right-to-Left) UI patcher for Antigravity 2.0, bringing native support for Persian, Arabic, and Hebrew languages with customizable fonts.","archived":false,"fork":false,"pushed_at":"2026-07-03T22:56:53.000Z","size":9982,"stargazers_count":30,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-07-04T00:16:47.429Z","etag":null,"topics":["antigravity","arabic","electron","hebrew","patcher","persian","rtl"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mmnaderi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":null,"dco":null,"cla":null}},"created_at":"2026-06-25T06:47:03.000Z","updated_at":"2026-07-03T22:56:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mmnaderi/antigravity-rtl","commit_stats":null,"previous_names":["mmnaderi/antigravity-rtl"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mmnaderi/antigravity-rtl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmnaderi%2Fantigravity-rtl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmnaderi%2Fantigravity-rtl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmnaderi%2Fantigravity-rtl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmnaderi%2Fantigravity-rtl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmnaderi","download_url":"https://codeload.github.com/mmnaderi/antigravity-rtl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmnaderi%2Fantigravity-rtl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35245324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-07T02:00:07.222Z","response_time":90,"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":["antigravity","arabic","electron","hebrew","patcher","persian","rtl"],"created_at":"2026-07-07T23:02:57.005Z","updated_at":"2026-07-07T23:02:57.617Z","avatar_url":"https://github.com/mmnaderi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Antigravity Smart RTL \u0026 UI Patcher\n\nA smart and beautiful RTL (Right-to-Left) patch for the [Antigravity](https://github.com/google/antigravity) application.\n\nThis CLI tool automatically injects a sophisticated RTL engine into Antigravity, adding support for Persian (Farsi), Arabic, Hebrew, and other RTL languages, along with a sleek UI to configure fonts and settings on the fly.\n\nhttps://github.com/user-attachments/assets/f2e8722d-3aeb-47d3-a37e-c33b6a89676e\n\n## Features\n\n- **Smart Auto-Direction**: Automatically detects if a paragraph is RTL or LTR and aligns it perfectly.\n- **Force RTL Mode**: Want everything aligned to the right? Just toggle the switch.\n- **Custom Typography**: Define different fonts for your RTL text, English text, and Code blocks!\n- **Line Height Control**: A precise slider to adjust the line height for better readability.\n- **Persian Keyboard Fix**: Maps `Shift + 2` to type `@` instead of `٬` on Persian keyboards.\n- **Beautiful Settings Panel**: A floating, non-intrusive UI widget at the bottom right corner.\n- **Vazirmatn Built-in**: Comes with the beautiful Vazirmatn variable font by default.\n\n## Installation\n\nYou don't need to download any files. Just run the following command in your terminal:\n\n### macOS\nBefore running the patcher, make sure [Node.js](https://nodejs.org) is installed. You can install it from the official website, or if you already use Homebrew:\n```bash\nbrew install node\n```\nBecause the tool needs to modify the Antigravity application files, you must run it with `sudo`:\n```bash\nsudo npx antigravity-rtl\n```\n\u003e **macOS Users:** If you get a \"Permission Denied\" error even with sudo, ensure your terminal (e.g. Terminal, iTerm2, VS Code) has **App Management** permissions enabled in `System Settings \u003e Privacy \u0026 Security \u003e App Management`.\n\n### Linux\nBecause the tool needs to modify the Antigravity application files, you must run it with `sudo`:\n```bash\nsudo apt install nodejs npm # Skip this line if Node.js is already installed.\nsudo npx antigravity-rtl\n```\n\n### Windows\nOpen **PowerShell** as **Administrator** (Right-click -\u003e Run as Administrator), then run:\n```powershell\nwinget install OpenJS.NodeJS.LTS # Skip this line if Node.js is already installed.\nnpx antigravity-rtl\n```\n\n\u003e [!WARNING]\n\u003e **App Updates:** Since updating the Antigravity application overwrites its internal files, the RTL patch will be removed. You will need to run the installation command again after each update to re-apply the patch.\n\n## Restoring to Original (Uninstall)\n\nIf you ever want to revert Antigravity back to its original state (before the patch), simply run the command with the `--restore` flag:\n\n```bash\nsudo npx antigravity-rtl --restore\n```\n*(On Windows, run without `sudo` in an Administrator terminal)*\n\n## How it works\n\nThis CLI tool:\n1. Locates your Antigravity installation.\n2. Creates a safe backup of the original `app.asar` file.\n3. Extracts the application and safely injects the Smart RTL Engine into the core logic (`utils.js`).\n4. Repacks the application so you can start using it immediately.\n\n## Future Plans (Roadmap)\n\n- Add Right-to-Left (RTL) support for **Antigravity IDE**.\n\n## Contributing\n\nFeel free to open issues or submit pull requests. Let's make Antigravity accessible and beautiful for everyone!\n\n---\n\n\u003cdiv dir=\"rtl\"\u003e\n\n# اصلاح‌کنندهٔ هوشمند راست‌به‌چپ در Antigravity\n\nیک پچِ هوشمند و زیبا برای پشتیبانی از زبان‌های راست‌به‌چپ (RTL) در نرم‌افزار [Antigravity](https://github.com/google/antigravity).\n\nاین ابزارِ خط فرمان (CLI) به صورت کاملاً خودکار یک موتور پیشرفتهٔ RTL را به هستهٔ برنامهٔ آنتی‌گرویتی تزریق می‌کند تا از زبان‌های فارسی، عربی و عبری به بهترین شکل پشتیبانی شود. همچنین یک پنل تنظیماتِ (UI) برای تغییر زندهٔ فونت‌ها در اختیار شما قرار می‌دهد.\n\n## امکانات\n\n- **راست‌چین هوشمند (Smart Auto-Direction)**: سیستم به طور خودکار تشخیص می‌دهد که پاراگراف شما با حرف انگلیسی شروع شده یا فارسی، و چیدمان را بر همان اساس تنظیم می‌کند.\n- **حالت راست‌چینِ اجباری (Force RTL Mode)**: دوست دارید همه چیز (حتی پیام‌های انگلیسی) کاملاً در سمت راست قرار بگیرند؟ فقط کافیست سوئیچ را روشن کنید!\n- **تنظیماتِ پیشرفتهِ فونت**: می‌توانید برای متون فارسی، متون انگلیسی و کدهای برنامه‌نویسیِ داخل چت، فونت‌های کاملاً جداگانه‌ای تعریف کنید.\n- **کنترل فاصلهٔ خطوط (Line Height)**: با استفاده از اسلایدر می‌توانید فاصلهٔ خطوط را برای خوانایی بهتر متن تنظیم کنید.\n- **حل مشکل کیبورد فارسی**: این ابزار کلید ترکیبی `Shift + 2` روی کیبورد فارسی را اصلاح می‌کند تا به جای «٬» علامت `@` تایپ شود.\n- **پنل تنظیمات زیبا**: تمام این تنظیمات در یک ویجتِ کوچک، مدرن و شناور در پایینِ صفحه قرار گرفته‌اند.\n- **فونت وزیرمتن**: فونت زیبای Vazirmatn Variable به صورت پیش‌فرض در این افزونه گنجانده شده است.\n\n## آموزش نصب\n\nبدون نیاز به دانلود هیچ فایلی، فقط کافیست دستور زیر را در ترمینال سیستم خود اجرا کنید:\n\n### در مک (macOS)\nقبل از اجرای پچر، مطمئن شوید [Node.js](https://nodejs.org) روی سیستم شما نصب است. می‌توانید آن را از سایت رسمی Node.js نصب کنید، یا اگر از Homebrew استفاده می‌کنید:\n```bash\nbrew install node\n```\nاز آنجایی که این ابزار قرار است فایل‌های سیستمی آنتی‌گرویتی را ویرایش کند، باید حتماً دسترسی `sudo` داشته باشد:\n```bash\nsudo npx antigravity-rtl\n```\n\u003e **کاربران مک (macOS):** اگر با وجود استفاده از sudo باز هم خطای Permission Denied دریافت کردید، باید به ترمینال خود (مثل Terminal، iTerm2 یا VS Code) دسترسی **App Management** بدهید. برای این کار به مسیر `System Settings \u003e Privacy \u0026 Security \u003e App Management` بروید و دسترسی ترمینال خود را فعال کنید.\n\n### در لینوکس\nاز آنجایی که این ابزار قرار است فایل‌های سیستمی آنتی‌گرویتی را ویرایش کند، باید حتماً دسترسی `sudo` داشته باشد:\n```bash\nsudo apt install nodejs npm # اگر Node.js از قبل نصب است، این خط را رد کنید.\nsudo npx antigravity-rtl\n```\n\n### در ویندوز\nبرنامهٔ **PowerShell** را در حالت **Administrator** (راست‌کلیک -\u003e Run as Administrator) باز کنید و دستور زیر را بنویسید:\n```powershell\nwinget install OpenJS.NodeJS.LTS # اگر Node.js از قبل نصب است، این خط را رد کنید.\nnpx antigravity-rtl\n```\n\n\u003e [!WARNING]\n\u003e **به‌روزرسانی برنامه:** از آنجا که آپدیت کردنِ برنامهٔ آنتی‌گرویتی کدهای آن را بازنویسی می‌کند، پچِ اعمال‌شده از بین خواهد رفت و لازم است پس از هر بار آپدیت، دستور نصب را مجدداً اجرا کنید.\n\n## بازگردانی به حالت اولیه (Uninstall)\n\nاگر زمانی خواستید آنتی‌گرویتی را به حالتِ کارخانه (قبل از نصب این پچ) برگردانید، فقط کافیست دستور بالا را با فلگ `--restore` اجرا کنید:\n\n```bash\nsudo npx antigravity-rtl --restore\n```\n*(کاربران ویندوز این دستور را بدون `sudo` و در یک ترمینال ادمین اجرا کنند)*\n\n## این ابزار چگونه کار می‌کند؟\n\n1. ابزار به صورت خودکار محل نصب آنتی‌گرویتی را روی سیستم شما پیدا می‌کند.\n2. یک نسخهٔ پشتیبانِ امن از فایل اوریجینالِ `app.asar` تهیه می‌کند.\n3. فایل را استخراج کرده و کدهای موتورِ RTL را به ایمن‌ترین شکل ممکن به هستهٔ برنامه تزریق می‌کند.\n4. در نهایت برنامه را مجدداً بسته‌بندی می‌کند تا بتوانید بلافاصله از آن لذت ببرید.\n\n## کارهای آینده (Roadmap)\n\n- اضافه کردن قابلیت حل مشکل راست‌به‌چپ برای **Antigravity IDE**.\n\n## مشارکت در توسعه\n\nبا کمال میل از نظرات، گزارشِ باگ‌ها و Pull Request های شما استقبال می‌شود. \n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmnaderi%2Fantigravity-rtl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmnaderi%2Fantigravity-rtl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmnaderi%2Fantigravity-rtl/lists"}