{"id":19680616,"url":"https://github.com/oakserver/nat","last_synced_at":"2025-08-11T05:08:40.856Z","repository":{"id":57711819,"uuid":"500285547","full_name":"oakserver/nat","owner":"oakserver","description":"A server side rendering framework for Deno CLI and Deploy. 🦟 🦕","archived":false,"fork":false,"pushed_at":"2022-06-22T14:28:19.000Z","size":15,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T00:14:58.025Z","etag":null,"topics":["deno","framework","jsx","oak","router","tailwind","typescript"],"latest_commit_sha":null,"homepage":"https://deno.land/x/nat","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/oakserver.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}},"created_at":"2022-06-06T04:03:13.000Z","updated_at":"2024-09-08T22:54:11.000Z","dependencies_parsed_at":"2022-09-26T21:30:27.955Z","dependency_job_id":null,"html_url":"https://github.com/oakserver/nat","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/oakserver/nat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oakserver%2Fnat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oakserver%2Fnat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oakserver%2Fnat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oakserver%2Fnat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oakserver","download_url":"https://codeload.github.com/oakserver/nat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oakserver%2Fnat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269832882,"owners_count":24482330,"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-08-11T02:00:10.019Z","response_time":75,"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":["deno","framework","jsx","oak","router","tailwind","typescript"],"created_at":"2024-11-11T18:05:33.822Z","updated_at":"2025-08-11T05:08:40.835Z","avatar_url":"https://github.com/oakserver.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nat\n\nA server side rendering framework for Deno CLI and Deploy.\n\nIncorporating [acorn](https://deno.land/x/acorn/),\n[nano-jsx](https://nanojsx.io/), and [twind](https://twind.dev/), it provides\nthe tooling to provide a server centric framework for providing dynamic websites\nserved from the edge.\n\n## Getting started\n\nnat as a setup script which makes it easy to scaffold out a project and is the\neasiest way to get started. You will need the Deno CLI [installed]() locally and\nwill want to run the following command within the current directory you want to\nsetup:\n\n```\n\u003e deno run https://deno.land/x/nat/setup.ts\n```\n\nThe script will prompt you for read and write permissions to the current\ndirectory as well as ask for your confirmation to write out the initial setup\nfiles for the project.\n\nOnce the project is setup, edit the `main.tsx` and use `deno task start` to run\nyour server locally.\n\nYou can also deploy the project to [Deno Deploy](https://dash.deno.com/new).\n\n## Concepts\n\nThe framework includes the acorn\n[Router](https://doc.deno.land/https://deno.land/x/acorn/mod.ts/~/Router). An\ninstance of the router is returned from the\n[init()](https://doc.deno.land/https://deno.land/x/nat/mod.ts/~/init) function.\nThe acorn router is based of web standard [URLPattern]() API which allows\nmatching URLs and parsing out values to variables. Those variables are available\nin the handler's\n[context `.params` property](https://doc.deno.land/https://deno.land/x/acorn/mod.ts/~/Context#params).\n\nThe framework comes with [nano-jsx](https://nanojsx.io/) built in, which makes\nit easy to server-side render JSX/TSX as a response.\n\nThe framework also comes with [twind](https://twind.dev/) integrated which is\nwell suited to server side rendering of tailwind's functional CSS styles in a\nsuper efficient way.\n\n---\n\nCopyright 2022 the oak authors. All rights reserved. MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foakserver%2Fnat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foakserver%2Fnat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foakserver%2Fnat/lists"}