{"id":21758738,"url":"https://github.com/jupegarnica/garn-static","last_synced_at":"2026-05-19T15:31:45.986Z","repository":{"id":62422345,"uuid":"422827114","full_name":"jupegarnica/garn-static","owner":"jupegarnica","description":"Super simple server for static files that works in deno deploy","archived":false,"fork":false,"pushed_at":"2021-11-03T09:56:29.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-27T10:10:39.808Z","etag":null,"topics":["deno","typescript"],"latest_commit_sha":null,"homepage":"https://deno.land/x/static","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/jupegarnica.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":"2021-10-30T08:36:04.000Z","updated_at":"2022-02-26T13:48:42.000Z","dependencies_parsed_at":"2022-11-01T17:31:27.771Z","dependency_job_id":null,"html_url":"https://github.com/jupegarnica/garn-static","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"valencia-io/deno-playground-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jupegarnica%2Fgarn-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jupegarnica%2Fgarn-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jupegarnica%2Fgarn-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jupegarnica%2Fgarn-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jupegarnica","download_url":"https://codeload.github.com/jupegarnica/garn-static/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244734202,"owners_count":20501018,"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":["deno","typescript"],"created_at":"2024-11-26T11:23:36.255Z","updated_at":"2026-05-19T15:31:44.843Z","avatar_url":"https://github.com/jupegarnica.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# garn-static\n\nSuper simple server for static files that works in deno deploy\n\n## Usage\n\nAs code:\n\n```ts\nimport { serve } from \"https://deno.land/x/static/main.ts\";\n\n// default serving folder . at port 8080\nconst server = serve();\n\n// serving folder ./dist at port 1234\nconst server = serve(\"./dist\", 1234);\n\n// await until completion\nawait server.promise;\n\n// or to close the server\nawait server.abort();\n```\n\nAs installed script:\n\n```bash\ndeno install --allow-net --allow-read -fn static https://deno.land/x/static/main.ts\n\nstatic dist 80\n\n# or with default args\nstatic\n```\n\nRun remotely\n\n```bash\ndeno run --allow-net --allow-read  https://deno.land/x/static/main.ts  dist 8081\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjupegarnica%2Fgarn-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjupegarnica%2Fgarn-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjupegarnica%2Fgarn-static/lists"}