{"id":32118527,"url":"https://github.com/mariofdezzz/toruk","last_synced_at":"2026-02-21T11:31:47.157Z","repository":{"id":65164554,"uuid":"584857275","full_name":"mariofdezzz/toruk","owner":"mariofdezzz","description":"🦕 Deno router fast, lightweight, close to runtime best practices","archived":false,"fork":false,"pushed_at":"2024-09-04T13:01:06.000Z","size":85,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-06T14:30:14.670Z","etag":null,"topics":["deno","router"],"latest_commit_sha":null,"homepage":"https://toruk.mariofdezzz.dev","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/mariofdezzz.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":"2023-01-03T17:36:53.000Z","updated_at":"2024-09-04T16:33:29.000Z","dependencies_parsed_at":"2024-08-27T12:59:35.982Z","dependency_job_id":null,"html_url":"https://github.com/mariofdezzz/toruk","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/mariofdezzz/toruk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariofdezzz%2Ftoruk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariofdezzz%2Ftoruk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariofdezzz%2Ftoruk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariofdezzz%2Ftoruk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mariofdezzz","download_url":"https://codeload.github.com/mariofdezzz/toruk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariofdezzz%2Ftoruk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29679808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T11:29:27.227Z","status":"ssl_error","status_checked_at":"2026-02-21T11:29:20.292Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["deno","router"],"created_at":"2025-10-20T17:21:23.004Z","updated_at":"2026-02-21T11:31:47.152Z","avatar_url":"https://github.com/mariofdezzz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toruk\n\n![Code Coverage](https://soft-deer-77.deno.dev/?last)\n\nDeno router fast, lightweight, close to runtime best practices.\nThe easiest way to enjoy Deno.\n\n## Getting Started\n\n```ts\nimport { App } from 'https://deno.land/x/toruk/mod.ts'\n\nnew App()\n .get('/', () =\u003e new Response('Hello World'))\n .get('/users/:id', ({ params }) =\u003e new Response(`User ${params.id}`))\n .serve()\n```\n\nPath uses [URLPattern](https://developer.mozilla.org/en-US/docs/Web/API/URLPattern/URLPattern) matching.\n\nHandler functions follow the same signature as [Deno's serve handler](https://deno.land/api@v1.44.4?s=Deno.ServeHandler).\n\n```ts\nimport { App } from 'https://deno.land/x/toruk/mod.ts'\n\nnew App()\n .post('/users/:id/posts', async ({ request, info, params }) =\u003e {\n  const body = await request.json()\n\n  return new Response(`Post ${body.id} created for user ${params.id}`)\n })\n .serve()\n```\n\n## Alternative Syntaxes\n\n### Object\n\n```ts\nimport { App } from 'https://deno.land/x/toruk/mod.ts'\n\nnew App({\n router: {\n  routes: [\n   {\n    path: '/',\n    handler: () =\u003e new Response('Hello World'),\n    children: [\n     {\n      path: 'users/:id',\n      handler: ({ params }) =\u003e new Response(`User ${params.id}`),\n     },\n    ],\n   },\n  ],\n },\n})\n .serve()\n```\n\n## Middlewares\n\n```ts\nimport { App } from 'https://deno.land/x/toruk/mod.ts'\nimport { cors } from 'https://deno.land/x/toruk/middlewares/mod.ts'\n\nnew App()\n .use(cors())\n .get('/', () =\u003e new Response('Hello World'))\n .serve()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariofdezzz%2Ftoruk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariofdezzz%2Ftoruk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariofdezzz%2Ftoruk/lists"}