{"id":15286117,"url":"https://github.com/sinclairnick/webroute","last_synced_at":"2025-02-26T17:14:02.650Z","repository":{"id":220618149,"uuid":"749314278","full_name":"sinclairnick/webroute","owner":"sinclairnick","description":"🕸️ Web APIs, from the route up","archived":false,"fork":false,"pushed_at":"2024-08-26T10:05:20.000Z","size":1751,"stargazers_count":54,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-27T09:18:53.126Z","etag":null,"topics":["client","http","openapi","schema","trpc","typescript","web","web-standards"],"latest_commit_sha":null,"homepage":"https://webroute.vercel.app/docs","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/sinclairnick.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,"publiccode":null,"codemeta":null}},"created_at":"2024-01-28T07:51:08.000Z","updated_at":"2024-08-26T12:43:40.000Z","dependencies_parsed_at":"2024-03-23T05:31:49.740Z","dependency_job_id":"03de729a-00ce-4238-99f8-473bd3455ed6","html_url":"https://github.com/sinclairnick/webroute","commit_stats":null,"previous_names":["sinclairnick/harissa","sinclairnick/webroute"],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinclairnick%2Fwebroute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinclairnick%2Fwebroute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinclairnick%2Fwebroute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinclairnick%2Fwebroute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinclairnick","download_url":"https://codeload.github.com/sinclairnick/webroute/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240898276,"owners_count":19875151,"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":["client","http","openapi","schema","trpc","typescript","web","web-standards"],"created_at":"2024-09-30T15:10:33.489Z","updated_at":"2025-02-26T17:14:02.624Z","avatar_url":"https://github.com/sinclairnick.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n\t\n\u003ch1\u003eWebroute\u003c/h1\u003e\n\n\u003cp\u003e\n\t\u003cb\u003eWeb APIs, from the route-up.\u003c/b\u003e\n\u003c/p\u003e\n\n\u003c/div\u003e\n\n\u003cimg src=\"./static/webroute-cover.jpg\"/\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://webroute.vercel.app/docs\"\u003e\nDocs\n\u003c/a\u003e\n\u0026bull;\n\u003ca href=\"https://webroute.vercel.app/docs/building-apps/quick-start\"\u003e\nQuick Start\n\u003c/a\u003e\n\u0026bull;\n\u003ca href=\"https://webroute.vercel.app/docs/building-apps/routes\"\u003e\nRoute\n\u003c/a\u003e\n\u0026bull;\n\u003ca href=\"https://webroute.vercel.app/docs/building-apps/client\"\u003e\nClient\n\u003c/a\u003e\n\u0026bull;\n\u003ca href=\"https://webroute.vercel.app/docs/building-apps/openapi\"\u003e\nOpenAPI\n\u003c/a\u003e\n\u003c/div\u003e\n\n\u003e [!WARNING]  \n\u003e This project has been succeeded by a much simpler and better approach, called [Midwinter.js](https://github.com/sinclairnick/midwinter.js).\n\n## Overview\n\nWebroute helps you build self-sufficient, web-standard routes that have everything they need: path, method, I/O shape and validation, middleware and request handler.\n\nIt was invented to make building sophisticated APIs easier in the diverse ecosystem of serverless (but also serverful) full-stack and backend development.\n\n### Inspiration\n\nWebroute was heavily inspired by tRPC, but built specifically for HTTP. So if you're a fan of either, you'll probably like webroute.\n\n## Features\n\n- 👋 Unopinionated and minimal API, by design\n- 🔒 End-to-end type safety (including middleware)\n- ✅ First-class validation and schema support\n- 🕸️ HTTP based\n- 🚏 Works well with serverless routes\n- 🐳 ...or monolithic backends\n\n## Example Usage\n\nA basic webroute might look something like this:\n\n```ts\nimport { route } from \"@webroute/route\";\n\nconst myRoute = route(\"/user/:id\")\n  .use(authMiddleware)\n  .params(z.object({ id: z.string() }))\n  .handle(async (req) =\u003e {\n    // ...do work\n  });\n```\n\nWhich is just a regular web-standard request handler:\n\n```ts\nconst response = myRoute(new Request(\"...\"));\n```\n\nBeing web-standard and self-sufficient, it can be used directly, with no modification, with popular frameworks like `Next.js`, and `Hono` or within runtimes like `bun`, `deno` and node.\n\nRead the [Quick Start](https://webroute.vercel.app/docs/building-apps/quick-start).\n\n## What's in the box?\n\nWebroute provides the functionality of a full-blown framework, without being one. Instead, it offers a handful of packages which can be selectively installed to fill in the gaps, when your use case requires it.\n\nWebroute is \"full-stack\", in the sense it provides utilities and patterns for both the client-side and server-side. However, these client- and server-side tools are not dependent on the other - one can be used without the other.\n\n## Compatibility\n\nWebroute works with all runtimes or frameworks that conform to the WinterCG Minimum Web Standard.\n\n### Frameworks\n\n- [x] `Hono`\n- [x] `Next.js`\n- [x] `Remix`\n- [x] `SolidStart`\n- [x] `SvelteKit`\n\n### Runtimes\n\n- [x] `Bun`\n- [x] `Deno`\n- [x] `Node` \u003csmall\u003e(via adapter)\u003c/small\u003e\n- [x] `Cloudflare Workes`\n- [x] `Vercel Edge`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinclairnick%2Fwebroute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinclairnick%2Fwebroute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinclairnick%2Fwebroute/lists"}