{"id":16789463,"url":"https://github.com/jcs224/hono_inertia","last_synced_at":"2025-07-28T20:09:03.140Z","repository":{"id":83863738,"uuid":"599957951","full_name":"jcs224/hono_inertia","owner":"jcs224","description":"Inertia.js adapter for Hono","archived":false,"fork":false,"pushed_at":"2023-08-19T04:55:49.000Z","size":5,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-14T20:10:23.228Z","etag":null,"topics":["deno","hacktoberfest","hono","inertia","inertiajs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jcs224.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-02-10T09:01:33.000Z","updated_at":"2024-11-26T01:40:01.000Z","dependencies_parsed_at":"2023-10-18T01:15:15.650Z","dependency_job_id":null,"html_url":"https://github.com/jcs224/hono_inertia","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jcs224/hono_inertia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcs224%2Fhono_inertia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcs224%2Fhono_inertia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcs224%2Fhono_inertia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcs224%2Fhono_inertia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcs224","download_url":"https://codeload.github.com/jcs224/hono_inertia/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcs224%2Fhono_inertia/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267578003,"owners_count":24110351,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":["deno","hacktoberfest","hono","inertia","inertiajs"],"created_at":"2024-10-13T08:27:13.536Z","updated_at":"2025-07-28T20:09:03.134Z","avatar_url":"https://github.com/jcs224.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inertia.js Adapter for Hono\n\n[Inertia.js](https://inertiajs.com) adapter for [Hono](https://honojs.dev). Only for Deno right now, coming soon to other runtimes supported by Hono (CF Workers, Bun, etc.)\n\n## Example (in Deno)\n\n```js\nimport { serve } from 'https://deno.land/std/http/mod.ts'\nimport { Hono } from 'https://deno.land/x/hono/mod.ts'\nimport { inertia } from 'https://deno.land/x/hono_inertia/mod.ts'\n\nconst app = new Hono()\n\n// Provide a template string\n// Put '@inertia' somewhere in the body, which will be replaced by the Inertia bootstrapping frontend code\nconst template = `\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n  \u003cmeta charset=\"UTF-8\"\u003e\n  \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"\u003e\n  \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n  \u003ctitle\u003eInertia Hono\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n  @inertia\n\u003c/body\u003e\n\u003c/html\u003e`\n\n// Optional function to determine Inertia version\nconst checkVersion = () =\u003e {\n  return Deno.env.get('OPTIONAL_INERTIA_VERSION')\n}\n\n// Add Inertia middleware with applied options to global Hono middleware stack\napp.use('*', inertia(template, checkVersion))\n\n// use the 'render()' method now attached to Hono to render an Inertia page\napp.get('/', (c, next) =\u003e {\n  const componentName = 'HomePage'\n  const payloadObject = {\n    username: 'johndoe',\n    email: 'jdizzle@example.com'\n  }\n\n  return c.get('inertia').render(componentName, payloadObject)\n})\n\nserve(app.fetch)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcs224%2Fhono_inertia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcs224%2Fhono_inertia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcs224%2Fhono_inertia/lists"}