{"id":15599470,"url":"https://github.com/leerob/hono-vercel-edge-functions","last_synced_at":"2025-04-30T11:33:34.325Z","repository":{"id":65825168,"uuid":"600553531","full_name":"leerob/hono-vercel-edge-functions","owner":"leerob","description":"Vercel Edge Functions + Hono Router + Wasm + Rust","archived":false,"fork":false,"pushed_at":"2023-02-11T21:05:45.000Z","size":14,"stargazers_count":70,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T15:47:11.555Z","etag":null,"topics":["rust","vercel","wasm"],"latest_commit_sha":null,"homepage":"https://hono-rust-wasm.vercel.app/api/hello","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/leerob.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-02-11T21:02:45.000Z","updated_at":"2025-03-06T02:54:14.000Z","dependencies_parsed_at":"2023-02-25T15:15:27.019Z","dependency_job_id":null,"html_url":"https://github.com/leerob/hono-vercel-edge-functions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leerob%2Fhono-vercel-edge-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leerob%2Fhono-vercel-edge-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leerob%2Fhono-vercel-edge-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leerob%2Fhono-vercel-edge-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leerob","download_url":"https://codeload.github.com/leerob/hono-vercel-edge-functions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251691657,"owners_count":21628366,"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":["rust","vercel","wasm"],"created_at":"2024-10-03T01:58:34.537Z","updated_at":"2025-04-30T11:33:34.290Z","avatar_url":"https://github.com/leerob.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vercel Edge Functions + Hono Router + Wasm + Rust\n\nThis example shows the following:\n\n1. You are able to write Rust code inside `wasm/src`\n1. The Rust code gets compiled to WebAssembly\n1. The WebAssembly code is used in an API Route using the Edge Runtime\n1. This API Route can be deployed to [Vercel Edge Functions](https://vercel.com/docs/concepts/functions/edge-functions)\n1. The [Hono Router](https://github.com/honojs/hono) is used to write all routes in a single API Route\n\n\u003e **Note:** This example is using Next.js \"headless\" through the local dev server, using `next dev` to serve API Routes. It's _not_ doing any rendering of pages, so React is not being used. Why? [Hono](https://honojs.dev/) does not currently work with vanilla Vercel Edge Functions, which are served through `vercel dev`. Hono `v3` adds support for Next.js, which enabled me to create this example.\n\n## Example\n\n- https://hono-rust-wasm.vercel.app/api/hello\n- https://hono-rust-wasm.vercel.app/api/world\n\n## Running Locally\n\n```\npnpm i\npnpm dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleerob%2Fhono-vercel-edge-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleerob%2Fhono-vercel-edge-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleerob%2Fhono-vercel-edge-functions/lists"}