{"id":22089853,"url":"https://github.com/speakeasy-api/hono-openapi-example","last_synced_at":"2025-10-11T23:30:49.855Z","repository":{"id":265748472,"uuid":"881855632","full_name":"speakeasy-api/hono-openapi-example","owner":"speakeasy-api","description":"An example repo for creating OpenAPI from a Hono App","archived":false,"fork":false,"pushed_at":"2025-08-04T20:49:03.000Z","size":133,"stargazers_count":2,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-16T08:57:06.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/speakeasy-api.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":"2024-11-01T11:41:04.000Z","updated_at":"2025-08-04T20:49:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"55edee37-e22b-4fa1-8bc3-e2b649ea9c1d","html_url":"https://github.com/speakeasy-api/hono-openapi-example","commit_stats":null,"previous_names":["speakeasy-api/hono-openapi-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/speakeasy-api/hono-openapi-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-api%2Fhono-openapi-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-api%2Fhono-openapi-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-api%2Fhono-openapi-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-api%2Fhono-openapi-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/speakeasy-api","download_url":"https://codeload.github.com/speakeasy-api/hono-openapi-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speakeasy-api%2Fhono-openapi-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009392,"owners_count":26084580,"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-10-11T02:00:06.511Z","response_time":55,"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":[],"created_at":"2024-12-01T02:14:28.986Z","updated_at":"2025-10-11T23:30:49.845Z","avatar_url":"https://github.com/speakeasy-api.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n \u003ca href=\"https://www.speakeasy.com/\" target=\"_blank\"\u003e\n  \u003cimg width=\"1500\" height=\"500\" alt=\"Speakeasy\" src=\"https://github.com/user-attachments/assets/0e56055b-02a3-4476-9130-4be299e5a39c\" /\u003e\n \u003c/a\u003e\n \u003cbr /\u003e\n \u003cbr /\u003e\n  \u003cdiv\u003e\n   \u003ca href=\"https://speakeasy.com/docs/create-client-sdks/\" target=\"_blank\"\u003e\u003cb\u003eDocs Quickstart\u003c/b\u003e\u003c/a\u003e\u0026nbsp;\u0026nbsp;//\u0026nbsp;\u0026nbsp;\u003ca href=\"https://go.speakeasy.com/slack\" target=\"_blank\"\u003e\u003cb\u003eJoin us on Slack\u003c/b\u003e\u003c/a\u003e\n  \u003c/div\u003e\n \u003cbr /\u003e\n\n\u003c/div\u003e\n\u003chr /\u003e\n\n\u003ch2\u003eSpeakeasy Hono OpenAPI Example\u003c/h2\u003e\n\nThis example Hono app demonstrates Speakeasy-recommended practices for creating clear OpenAPI specifications and SDKs.\n\nThis project was bootstrapped with the [Hono Node.js starter template](https://hono.dev/docs/getting-started/basic#starter). It has three example API endpoints in `src/routes/users/users.index.ts`, which can be used to get all users, get a user by id, and create a user.\n\n## Prerequisites\n\nYou need to have [Node.js version \u003e= 18](https://nodejs.org/) installed on your system to run this project.\n\nTo generate an SDK, you'll also need to [install Speakeasy CLI](https://github.com/speakeasy-api/speakeasy#installation) or use the Speakeasy dashboard.\n\n## Installation\n\nInstall the application on your local machine.\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/speakeasy-api/hono-openapi-example.git\n    ```\n\n2. Navigate into the directory:\n\n    ```bash\n    cd hono-openapi-example\n    ```\n\n3. Install all dependencies for the application using NPM:\n\n    ```bash\n    npm install\n    ```\n\n4. Install Speakeasy CLI:\n\n    ```bash\n    brew install speakeasy-api/homebrew-tap/speakeasy\n    ```\n\n## Running the application\n\nStart the server:\n\n```bash\nnpm run start\n```\n\n### For development\n\nYou can use the provided script to run the application in development mode. It will detect any changes in the source code and automatically restart the server.\n\n```bash\nnpm run dev\n```\n\nBefore starting the dev server, move the `sdk-typescript` folder to a new location outside this project.\n\n## Creating an OpenAPI specification\n\nRun the following command to create an OpenAPI spec YAML file in your root folder:\n\n```bash Terminal\nnpm run create:openapi\n```\n\n## Creating an SDK with Speakeasy\n\nRun the following command to create a Speakeasy SDK:\n\n```bash\nspeakeasy quickstart\n```\n\n## License\n\nThis project is licensed under the terms of the Apache 2.0 license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeakeasy-api%2Fhono-openapi-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspeakeasy-api%2Fhono-openapi-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeakeasy-api%2Fhono-openapi-example/lists"}