{"id":37008806,"url":"https://github.com/askerakbar/gpt-trix-editor","last_synced_at":"2026-01-14T00:50:24.870Z","repository":{"id":149992198,"uuid":"622325105","full_name":"askerakbar/gpt-trix-editor","owner":"askerakbar","description":"The GPT Trix Editor is a form field component for the Filament PHP framework that enhances the Trix editor with OpenAI GPT features.","archived":false,"fork":false,"pushed_at":"2024-10-08T08:31:46.000Z","size":3906,"stargazers_count":45,"open_issues_count":5,"forks_count":16,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-04T13:55:31.669Z","etag":null,"topics":["filament-plugin","filamentphp","gpt-plugins","laravel","laravel-package"],"latest_commit_sha":null,"homepage":"https://filamentphp.com/plugins/asker-akbar-gpt-trix-editor","language":"Blade","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/askerakbar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2023-04-01T19:17:16.000Z","updated_at":"2025-02-18T18:37:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc60f192-0387-4ccd-988f-58080211b2f6","html_url":"https://github.com/askerakbar/gpt-trix-editor","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/askerakbar/gpt-trix-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askerakbar%2Fgpt-trix-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askerakbar%2Fgpt-trix-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askerakbar%2Fgpt-trix-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askerakbar%2Fgpt-trix-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/askerakbar","download_url":"https://codeload.github.com/askerakbar/gpt-trix-editor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askerakbar%2Fgpt-trix-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["filament-plugin","filamentphp","gpt-plugins","laravel","laravel-package"],"created_at":"2026-01-14T00:50:24.556Z","updated_at":"2026-01-14T00:50:24.843Z","avatar_url":"https://github.com/askerakbar.png","language":"Blade","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPT Trix Editor 🪄 \n\nThe GPT Trix Editor is a form field component for the Filament PHP framework that enhances the Trix editor with OpenAI GPT features.\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/askerakbar/gpt-trix-editor.svg?style=flat-square)](https://packagist.org/packages/askerakbar/gpt-trix-editor)\n[![Total Downloads](https://img.shields.io/packagist/dt/askerakbar/gpt-trix-editor.svg?style=flat-square)](https://packagist.org/packages/askerakbar/gpt-trix-editor)\n\n\nFeatures:\n\n### New - Call ChatGPT API on selected/highlighted text 👇\n\n\u003cimg src=\"https://raw.githubusercontent.com/askerakbar/gpt-trix-editor/main/demo/run-on-selected-text.gif\" width=\"75%\"/\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/askerakbar/gpt-trix-editor/main/demo/run.gif\" width=\"75%\"/\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/askerakbar/gpt-trix-editor/main/demo/check-grammar.gif\" width=\"75%\"/\u003e\n\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require askerakbar/gpt-trix-editor\n```\n\n## Quick Start\n\n1. Publish the configuration files by running the following commands:\n\n```bash\nphp artisan vendor:publish --provider=\"OpenAI\\Laravel\\ServiceProvider\"\nphp artisan vendor:publish --tag=\"gpt-trix-editor-config\"\nphp artisan vendor:publish --tag=\"gpt-trix-editor-translations\"\n```\n\n2. We're using https://github.com/openai-php/laravel laravel package to call the OpenAI APIs, so you need to set your OpenAI API key in the .env file or in the config/openapi.php file:\n```env\nOPENAI_API_KEY=YOUR_KEY\n```\nYou can also set the GPT model in the .env\n```env\nTRIX_GPT_MODEL=YOUR_MODEL\n```\n3. Optionally, you can customize the configuration file at config/gpt-trix-editor.php. This includes adding more prompts to the menu dropdown, setting temperature and max_tokens.\n4. Clear the configuration cache to make sure your changes take effect:\n```php artisan config:clear ```\n5. Done!\n\n# Usage\n\nImport the field component: \n```php\nuse AskerAkbar\\GptTrixEditor\\Components\\GptTrixEditor;\n```\n\nYou can use the GPT Trix Editor field component like any other field component:\n\n```php\nGptTrixEditor::make('content')-\u003ecolumnSpan('full');\n```\n\nBy default, the GPT Toolbar Button is enabled in the GP Trix Editor. However, if you want to disable it, you can do so like this:\n\n```php\nGptTrixEditor::make('content')-\u003edisableToolbarButtons([\n    'gptTools',\n])-\u003ecolumnSpan('full');\n```\n\n## To do \n- ✅ Run the GPT actions on selected/highlighted text\n\n## Contribute / Report a bug / Security Vulnerabilities\nIf you would like to contriubte, please feel free to submit pull requests or open issues.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskerakbar%2Fgpt-trix-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faskerakbar%2Fgpt-trix-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskerakbar%2Fgpt-trix-editor/lists"}