{"id":22107894,"url":"https://github.com/yshmarov/hotwire_native_rails","last_synced_at":"2025-04-04T17:03:46.546Z","repository":{"id":265778728,"uuid":"895197746","full_name":"yshmarov/hotwire_native_rails","owner":"yshmarov","description":"A Hotwire Native generator for Rails applications","archived":false,"fork":false,"pushed_at":"2025-03-11T23:47:47.000Z","size":76,"stargazers_count":104,"open_issues_count":12,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T16:04:01.188Z","etag":null,"topics":["hotwire","hotwire-native","rails"],"latest_commit_sha":null,"homepage":"https://superails.com/playlists/turbo-native","language":"Ruby","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/yshmarov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2024-11-27T18:31:23.000Z","updated_at":"2025-03-17T05:25:26.000Z","dependencies_parsed_at":"2024-11-30T22:40:12.151Z","dependency_job_id":"3615beb9-c809-4941-87c2-149966d4e8ab","html_url":"https://github.com/yshmarov/hotwire_native_rails","commit_stats":null,"previous_names":["yshmarov/hotwire_native_rails"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yshmarov%2Fhotwire_native_rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yshmarov%2Fhotwire_native_rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yshmarov%2Fhotwire_native_rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yshmarov%2Fhotwire_native_rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yshmarov","download_url":"https://codeload.github.com/yshmarov/hotwire_native_rails/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217174,"owners_count":20903008,"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":["hotwire","hotwire-native","rails"],"created_at":"2024-12-01T08:27:55.018Z","updated_at":"2025-04-04T17:03:46.528Z","avatar_url":"https://github.com/yshmarov.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Hotwire Native Rails generator\n\nPower pack to make your Rails app [Hotwire Native](https://native.hotwired.dev)\n\n## Installation\n\nInstall the gem:\n\n```sh\nbundle add hotwire_native_rails\n```\n\nRun the generator:\n\n```sh\nrails g hotwire_native\n```\n\n## Usage\n\nRecommended to use with [my fork of iOS Hotwire Native starter app](https://github.com/yshmarov/hotwire-native-ios/tree/superails-extensions-2/Demo).\n\n#### Helpers\n- `viewport_meta_tag` - forbid zooming on mobile/native\n- use `data: { turbo_action: replace_if_native }` to submit authentication forms \u0026 forms in modals\n- `:mobile` request variant. `index.html+mobile.erb`\n- override `link_to` to not open internal links in in-app browser on native app\n- conditionally override page `\u003ctitle\u003e` for native apps\n\n#### CSS\n- `hotwire-native:` css variant (works with CSS and Tailwind)\n\n#### Bridge Components\n- install Hotwire Native Bridge (works with Importmaps and Node)\n- add default bridge components (`Form`, `Menu`, `Button`)\n- add `Nav` (UIMenu) component\n- add `Review Prompt` component\n- `bridge_form_with` - easily apply Bridge `Form` component\n\n#### Path Configuration\n- `path_configuration_controller` for `ios` and `android`\n- Tabs controller - re-route native tabs\n\n## Development\n\nRun the local version of the gem:\n\n```ruby\ngem 'hotwire_native_rails', path: '/Users/myusername/Documents/GitHub.nosync/hotwire_native_rails'\n```\n\nMake a release to rubygems:\n\n```sh\n# 1. update version in version.rb\n# 2. zip the gem\ngem build hotwire_native_rails.gemspec\n# 3. push the zip to rubygems\ngem push hotwire_native_rails-0.4.0.gem\n```\n\n- [Github source](https://github.com/yshmarov/hotwire_native_rails)\n- [Rubygems source](https://rubygems.org/gems/hotwire_native_rails)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyshmarov%2Fhotwire_native_rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyshmarov%2Fhotwire_native_rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyshmarov%2Fhotwire_native_rails/lists"}