{"id":15723460,"url":"https://github.com/sergiocarneiro/example-hono-api","last_synced_at":"2025-05-13T04:33:31.437Z","repository":{"id":172599281,"uuid":"613133372","full_name":"sergiocarneiro/example-hono-api","owner":"sergiocarneiro","description":"An example of how to create a publishable and fully type-safe API using Hono.","archived":false,"fork":false,"pushed_at":"2023-06-05T01:54:55.000Z","size":115,"stargazers_count":23,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-20T22:32:36.566Z","etag":null,"topics":["api","cloudflare-workers","hono","remix","rpc"],"latest_commit_sha":null,"homepage":"","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/sergiocarneiro.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}},"created_at":"2023-03-13T00:30:45.000Z","updated_at":"2024-10-16T00:36:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cb21745-f41e-4445-8af1-3f5556ca0a5a","html_url":"https://github.com/sergiocarneiro/example-hono-api","commit_stats":null,"previous_names":["sergiocarneiro/example-hono-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiocarneiro%2Fexample-hono-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiocarneiro%2Fexample-hono-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiocarneiro%2Fexample-hono-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiocarneiro%2Fexample-hono-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergiocarneiro","download_url":"https://codeload.github.com/sergiocarneiro/example-hono-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253876919,"owners_count":21977629,"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":["api","cloudflare-workers","hono","remix","rpc"],"created_at":"2024-10-03T22:11:44.171Z","updated_at":"2025-05-13T04:33:31.390Z","avatar_url":"https://github.com/sergiocarneiro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# example-hono-api\n\nAn example of how to create a publishable and fully type-safe API using [Hono](https://hono.dev).\n\nA [RPC client](https://hono.dev/guides/rpc) is exposed and can be published as a package to be consumed by other applications.\n\n## What's inside?\n\n### Projects\n\n- `api` – a [Cloudflare Worker](https://workers.cloudflare.com) that exposes a [RPC client](https://hono.dev/guides/rpc)\n- `app` – a [Remix](https://remix.run/) app that consumes the API\n\n### Tech Stack\n\n- [Hono](https://hono.dev)\n- [Cloudflare Workers](https://workers.cloudflare.com)\n- [Remix](https://remix.run)\n- [Turborepo](https://turbo.build/repo)\n- [pnpm](https://pnpm.io)\n\n## Setup\n\n\u003cdetails\u003e\n  \u003csummary\u003eEnvironment setup\u003c/summary\u003e\n\n  ### Install pnpm\n\n  ```sh\n  corepack prepare pnpm@latest --activate\n  ```\n  [More alternatives](https://pnpm.io/installation)\n\u003c/details\u003e\n\n### Install dependencies\n\n```sh\npnpm install -r\n```\n\n## Usage\n\nRun commands project-wide with `pnpm run \u003ccommand\u003e`.\n\n### Commands\n\n- `dev` – start the development servers\n- `build` – build the production bundles\n- `lint` – lint the codebase\n- `test` – run the tests\n\n### Dev\n\n#### 1. Start the development servers\n\n```sh\npnpm run dev\n```\n\nYou should see an output containing:\n\n```sh\napi:dev: ⬣ Listening at http://0.0.0.0:8787\n```\n```sh\napp:dev: Remix App Server started at http://localhost:3000\n```\n\n#### 2. Open the app\n\nFind the `app` URL in the output and open it in your browser.\n\n#### 3. Making changes\n\nYou can make changes in any of the projects and the development servers will automatically reload ✨\n\n## Perks\n\n- [Using with Remix](https://github.com/sergiocarneiro/example-hono-api/blob/main/apps/app/README.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiocarneiro%2Fexample-hono-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergiocarneiro%2Fexample-hono-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiocarneiro%2Fexample-hono-api/lists"}