{"id":15685021,"url":"https://github.com/uki00a/fresh-mount","last_synced_at":"2025-10-19T20:29:33.875Z","repository":{"id":225496443,"uuid":"764592816","full_name":"uki00a/fresh-mount","owner":"uki00a","description":"Mount Hono and Oak applications as Fresh routes.","archived":false,"fork":false,"pushed_at":"2024-03-02T13:42:40.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T09:28:26.630Z","etag":null,"topics":["fresh","hono","oak"],"latest_commit_sha":null,"homepage":"https://deno.land/x/fresh_mount","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/uki00a.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}},"created_at":"2024-02-28T11:08:33.000Z","updated_at":"2024-03-02T13:43:55.000Z","dependencies_parsed_at":"2024-03-02T14:32:19.657Z","dependency_job_id":null,"html_url":"https://github.com/uki00a/fresh-mount","commit_stats":null,"previous_names":["uki00a/fresh-mount"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uki00a%2Ffresh-mount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uki00a%2Ffresh-mount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uki00a%2Ffresh-mount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uki00a%2Ffresh-mount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uki00a","download_url":"https://codeload.github.com/uki00a/fresh-mount/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246308051,"owners_count":20756482,"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":["fresh","hono","oak"],"created_at":"2024-10-03T17:22:56.710Z","updated_at":"2025-10-19T20:29:33.784Z","avatar_url":"https://github.com/uki00a.png","language":"TypeScript","readme":"# fresh-mount\n\nMount Hono and Oak applications as Fresh routes.\n\n## Usage\n\n### Mount Hono applications as Fresh routes\n\n```typescript\n// fresh.config.ts\nimport { defineConfig } from \"$fresh/server.ts\";\nimport { hono } from \"https://deno.land/x/fresh_mount@$MODULE_VERSION/hono/mod.ts\";\nimport { Hono } from \"https://deno.land/x/hono/mod.ts\";\n\nconst app = new Hono();\napp.get(\"/\", (c) =\u003e {\n  return c.text(\"Hello Hono!\");\n});\n\nexport default defineConfig({\n  plugins: [\n    // Mount a Hono application at `/api`\n    hono(\"/api\", app),\n  ],\n});\n```\n\n### Mount Oak applications as Fresh routes\n\n```typescript\n// fresh.config.ts\nimport { defineConfig } from \"$fresh/server.ts\";\nimport { oak } from \"https://deno.land/x/fresh_mount@$MODULE_VERSION/oak/mod.ts\";\nimport { Application, Router } from \"https://deno.land/x/oak/mod.ts\";\n\nconst app = new Application();\nconst router = new Router();\nrouter\n  .get(\"/\", (ctx) =\u003e {\n    ctx.response.body = \"Hello Oak!\";\n  });\napp.use(router.routes());\napp.use(router.allowedMethods());\n\nexport default defineConfig({\n  plugins: [\n    // Mount an Oak application at `/api`\n    oak(\"/api\", app),\n  ],\n});\n```\n\n## Acknowledgement\n\nThis package is inspired by the following projects.\n\n- [koa-mount](https://github.com/koajs/mount)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuki00a%2Ffresh-mount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuki00a%2Ffresh-mount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuki00a%2Ffresh-mount/lists"}