{"id":29297406,"url":"https://github.com/grace-plugins/grace-inertia","last_synced_at":"2026-05-18T11:07:46.022Z","repository":{"id":236728375,"uuid":"791971068","full_name":"grace-plugins/grace-inertia","owner":"grace-plugins","description":"Grace Plugin for using Grace app with Inertia.js","archived":false,"fork":false,"pushed_at":"2025-07-05T08:20:16.000Z","size":587,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-05T09:24:22.438Z","etag":null,"topics":["grace","grace-plugin","graceframework","grails","inertiajs"],"latest_commit_sha":null,"homepage":"https://plugins.graceframework.org/grace-inertia/latest/","language":"Groovy","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/grace-plugins.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}},"created_at":"2024-04-25T18:15:03.000Z","updated_at":"2025-07-05T08:20:19.000Z","dependencies_parsed_at":"2024-06-22T03:59:13.011Z","dependency_job_id":"de6c0fd7-aafa-4e9b-ae89-7bdad1aeee5d","html_url":"https://github.com/grace-plugins/grace-inertia","commit_stats":null,"previous_names":["grace-plugins/grace-inertia"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/grace-plugins/grace-inertia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grace-plugins%2Fgrace-inertia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grace-plugins%2Fgrace-inertia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grace-plugins%2Fgrace-inertia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grace-plugins%2Fgrace-inertia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grace-plugins","download_url":"https://codeload.github.com/grace-plugins/grace-inertia/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grace-plugins%2Fgrace-inertia/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263940225,"owners_count":23533006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["grace","grace-plugin","graceframework","grails","inertiajs"],"created_at":"2025-07-06T17:01:00.952Z","updated_at":"2026-05-18T11:07:40.997Z","avatar_url":"https://github.com/grace-plugins.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Main branch build status](https://github.com/grace-plugins/grace-inertia/workflows/Grace%20CI/badge.svg?style=flat)](https://github.com/grace-plugins/grace-inertia/actions?query=workflow%3A%Grace+CI%22)\n[![Apache 2.0 license](https://img.shields.io/badge/License-APACHE%202.0-green.svg?logo=APACHE\u0026style=flat)](https://opensource.org/licenses/Apache-2.0)\n[![Latest version on Maven Central](https://img.shields.io/maven-central/v/org.graceframework.plugins/inertia.svg?label=Maven%20Central\u0026logo=apache-maven\u0026style=flat)](https://search.maven.org/search?q=g:org.graceframework.plugins)\n[![Grace Document](https://img.shields.io/badge/Grace_Document-latest-blue?style=flat\u0026logo=asciidoctor\u0026logoColor=E40046\u0026labelColor=ffffff\u0026color=f49b06)](https://plugins.graceframework.org/grace-inertia/latest/)\n[![Grace on X](https://img.shields.io/twitter/follow/graceframework?style=social)](https://x.com/graceframework)\n\n[![Groovy Version](https://img.shields.io/badge/Groovy-3.0.22-blue?style=flat\u0026color=4298b8)](https://groovy-lang.org/releasenotes/groovy-3.0.html)\n[![Grace Version](https://img.shields.io/badge/Grace-2022.2.8-blue?style=flat\u0026color=f49b06)](https://github.com/graceframework/grace-framework/releases/tag/v2022.2.8)\n\n# Grace with Inertia\n\nGrace Plugin for using Grace/Grails app with [Inertia.js](https://inertiajs.com).\n\n## Ducumentation\n\n* [Latest](https://plugins.graceframework.org/grace-inertia/latest/)\n\n## Usage\n\nAdd dependency to the `build.gradle`,\n\n```gradle\n\nrepositories {\n    mavenCentral()\n}\n\ndependencies {\n    implementation \"org.graceframework.plugins:inertia:VERSION\"\n}\n```\n\nInertia plugin supports controller-specific `withFormat()` method,\n\n```groovy\nclass BookController {\n\n    def list() {\n        def books = Book.list()\n\n        withFormat {\n            inertia {\n                render(inertia: \"Book/List\", props: [bookList: books])\n            }\n            json {\n                render books as JSON\n            }\n        }\n    }\n}\n```\n\nAlso, this plugin supports extendsions for Grails Request and Response,\n\n```groovy\n// You can get Inertia request headers from Grails Request\n\nrequest.inertia.version == request.getHeader('X-Inertia-Version')\n\n// Check Inertia request?\nif (request.inertia as boolean) { // or use request.isInertia()\n    template = 'book-detail'\n}\n\n// You can set Inertia response headers in Grails\n\nresponse.inertia.location = 'http://localhost:8080/book/1'\n\n```\n\n## Development\n\n### Build from source\n\n```\ngit clone https://github.com/grace-plugins/grace-inertia.git\ncd grace-inertia\n./gradlew publishToMavenLocal\n```\n\n## Support Version\n\n* Grace 2022.0.0+\n* Grails 5.0+\n\n## Roadmap\n\n### 1.x\n\n* Inertia 1.x\n\n## License\n\nThis plugin is available as open source under the terms of the [APACHE LICENSE, VERSION 2.0](http://apache.org/Licenses/LICENSE-2.0)\n\n## Links\n\n- [Grace Framework](https://github.com/graceframework/grace-framework)\n- [Grace Plugins](https://github.com/grace-plugins)\n- [Grace Inertia Plugin](https://github.com/grace-plugins/grace-inertia)\n- [Inertia](https://inertiajs.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrace-plugins%2Fgrace-inertia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrace-plugins%2Fgrace-inertia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrace-plugins%2Fgrace-inertia/lists"}