{"id":13454678,"url":"https://github.com/honojs/examples","last_synced_at":"2025-05-15T05:07:18.810Z","repository":{"id":38407070,"uuid":"486064963","full_name":"honojs/examples","owner":"honojs","description":"Examples using Hono.","archived":false,"fork":false,"pushed_at":"2025-03-04T07:37:16.000Z","size":1008,"stargazers_count":737,"open_issues_count":27,"forks_count":65,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-14T08:11:26.075Z","etag":null,"topics":["bun","cloudflare","cloudflare-workers","deno"],"latest_commit_sha":null,"homepage":"https://hono.dev","language":"TypeScript","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/honojs.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":"2022-04-27T05:58:37.000Z","updated_at":"2025-04-11T09:49:41.000Z","dependencies_parsed_at":"2023-12-14T10:31:11.414Z","dependency_job_id":"b7d715cb-1330-41e2-b52f-d7340ef37058","html_url":"https://github.com/honojs/examples","commit_stats":{"total_commits":116,"total_committers":13,"mean_commits":8.923076923076923,"dds":"0.35344827586206895","last_synced_commit":"ed977294ba4a75b48eb407b29af8e4ecd77ec009"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honojs%2Fexamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honojs%2Fexamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honojs%2Fexamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honojs%2Fexamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/honojs","download_url":"https://codeload.github.com/honojs/examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254276447,"owners_count":22043867,"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":["bun","cloudflare","cloudflare-workers","deno"],"created_at":"2024-07-31T08:00:56.748Z","updated_at":"2025-05-15T05:07:13.794Z","avatar_url":"https://github.com/honojs.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","deno"],"sub_categories":[],"readme":"# Hono Examples\n\nThis repository contains examples that use [Hono](https://hono.dev).\n\n## Included Examples\n\n- [basic](./basic/) - basic usage of routing, middleware, and `Context`\n- [blog](./blog/) - CRUD example\n- [durable-objects](./durable-objects/) - simple example with Cloudflare Durable Objects\n- [env-vars](./env-vars/) - example using environment variables with Hono in Typescript: `Bindings` \u0026 `Variables`\n- [jsx-ssr](./jsx-ssr/) - JSX Server Side Rendering with `JSX` Middleware\n- [hono-vite-jsx](./hono-vite-jsx/) - Example of using `hono/jsx/dom` with `vite`\n- [serve-static](./serve-static/) - example of serving static files using Cloudflare Workers\n- [deno](./deno/) - Deno example\n- [bun](./bun/) - Bun example\n- [pages-stack](./pages-stack/) - Zod + Zod Validator + `hc` + React on Cloudflare Pages\n\n## Running Examples\n\nInstall dependencies\n\n```bash\nnpm install\n```\n\nFor running the examples, run the below command and replace `[workspace]` with the example name.\n\n```bash\nnpm -w [workspace] run dev\n```\n\nOr if you have cloned a specific example, you can follow the instructions in the example's README.\n\n### For deno examples\n\n```bash\ndeno run --allow-net hello.ts\n```\n\nor allow to read files on local disk:\n\n```bash\ndeno run --allow-net --allow-read jsx.tsx\n```\n\n### For bun examples\n\nInstall dependencies\n\n```bash\nbun install\n```\n\nRun the example\n\n```bash\nbun run hello.ts\n```\n\n## Author\n\nYusuke Wada https://github.com/yusukebe\n\n## License\n\nDistributed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhonojs%2Fexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhonojs%2Fexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhonojs%2Fexamples/lists"}