{"id":27996212,"url":"https://github.com/fedify-dev/h3","last_synced_at":"2025-05-08T21:16:39.277Z","repository":{"id":247079229,"uuid":"824990733","full_name":"fedify-dev/h3","owner":"fedify-dev","description":"Integrate Fedify with h3","archived":false,"fork":false,"pushed_at":"2025-02-28T09:21:01.000Z","size":47,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T21:16:33.790Z","etag":null,"topics":["fedify","h3"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@fedify/h3","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/fedify-dev.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}},"created_at":"2024-07-06T13:19:37.000Z","updated_at":"2025-04-16T17:02:35.000Z","dependencies_parsed_at":"2024-08-06T09:16:19.459Z","dependency_job_id":"3322a6f7-54f6-428f-bdab-f229b928729d","html_url":"https://github.com/fedify-dev/h3","commit_stats":null,"previous_names":["dahlia/fedify-h3","fedify-dev/h3"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedify-dev%2Fh3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedify-dev%2Fh3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedify-dev%2Fh3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedify-dev%2Fh3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fedify-dev","download_url":"https://codeload.github.com/fedify-dev/h3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253149621,"owners_count":21861740,"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":["fedify","h3"],"created_at":"2025-05-08T21:16:38.674Z","updated_at":"2025-05-08T21:16:39.227Z","avatar_url":"https://github.com/fedify-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"@fedify/h3: Integrate Fedify with h3\n====================================\n\n[![npm][npm badge]][npm]\n[![Matrix][Matrix badge]][Matrix]\n[![Follow @fedify@hollo.social][@fedify@hollo.social badge]][@fedify@hollo.social]\n\nThis package provides a simple way to integrate [Fedify] with [h3],\nan HTTP server framework behind [Nitro], [Analog], [Vinxi],\n[SolidStart], [TanStack Start], and other many web frameworks.\n\nThe integration code looks like this:\n\n~~~~ typescript\nimport { createApp, createRouter } from \"h3\";\nimport { integrateFederation, onError } from \"@fedify/h3\";\nimport { federation } from \"./federation\";  // Your `Federation` instance\n\nexport const app = createApp({ onError });\napp.use(\n  integrateFederation(\n    federation,\n    (event, request) =\u003e \"context data goes here\"\n  )\n);\n\nconst router = createRouter();\napp.use(router);\n~~~~\n\n\u003e [!NOTE]\n\u003e Your app has to configure `onError` to let Fedify negotiate content types.\n\u003e If you don't do this, Fedify will not be able to respond with a proper error\n\u003e status code when a content negotiation fails.\n\n[npm]: https://www.npmjs.com/package/@fedify/h3\n[npm badge]: https://img.shields.io/npm/v/@fedify/h3?logo=npm\n[Matrix]: https://matrix.to/#/#fedify:matrix.org\n[Matrix badge]: https://img.shields.io/matrix/fedify%3Amatrix.org\n[@fedify@hollo.social badge]: https://fedi-badge.deno.dev/@fedify@hollo.social/followers.svg\n[@fedify@hollo.social]: https://hollo.social/@fedify\n[Fedify]: https://fedify.dev/\n[h3]: https://h3.unjs.io/\n[Nitro]: https://nitro.unjs.io/\n[Analog]: https://analogjs.org/\n[Vinxi]: https://vinxi.vercel.app/\n[SolidStart]: https://start.solidjs.com/\n[TanStack Start]: https://tanstack.com/start\n\n\nChangelog\n---------\n\n### Version 0.1.3\n\nTo be released.\n\n### Version 0.1.2\n\nReleased on February 28, 2025.\n\n -  Made the package compatible with Fedify 1.0.0 or later.\n\n### Version 0.1.1\n\nReleased on August 6, 2024.\n\n -  Added missing entry points to the *package.json*.\n\n### Version 0.1.0\n\nInitial release.  Released on July 6, 2024.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedify-dev%2Fh3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedify-dev%2Fh3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedify-dev%2Fh3/lists"}