{"id":20291777,"url":"https://github.com/samuelnovaes/easy-cgi","last_synced_at":"2026-05-14T07:35:55.511Z","repository":{"id":57218353,"uuid":"113782918","full_name":"samuelnovaes/easy-cgi","owner":"samuelnovaes","description":"Easily create a CGI server","archived":false,"fork":false,"pushed_at":"2017-12-10T23:05:20.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-19T03:59:04.345Z","etag":null,"topics":["cgi","easy","http","server","web"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samuelnovaes.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":"2017-12-10T20:56:20.000Z","updated_at":"2023-04-11T21:44:59.000Z","dependencies_parsed_at":"2022-08-28T21:01:54.302Z","dependency_job_id":null,"html_url":"https://github.com/samuelnovaes/easy-cgi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samuelnovaes/easy-cgi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelnovaes%2Feasy-cgi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelnovaes%2Feasy-cgi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelnovaes%2Feasy-cgi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelnovaes%2Feasy-cgi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samuelnovaes","download_url":"https://codeload.github.com/samuelnovaes/easy-cgi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelnovaes%2Feasy-cgi/sbom","scorecard":{"id":798502,"data":{"date":"2025-08-11","repo":{"name":"github.com/samuelnovaes/easy-cgi","commit":"ac55880d2863ef03f66a7d265b58506a8f7c3aa0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-w2xw-44r3-4v9g","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T09:43:34.275Z","repository_id":57218353,"created_at":"2025-08-23T09:43:34.275Z","updated_at":"2025-08-23T09:43:34.275Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33015595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["cgi","easy","http","server","web"],"created_at":"2024-11-14T15:13:52.334Z","updated_at":"2026-05-14T07:35:55.494Z","avatar_url":"https://github.com/samuelnovaes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easily create a CGI server\n\n[![NPM](https://nodei.co/npm/easy-cgi.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/easy-cgi/)\n\n# Installation\n\n- Install [Node.js](https://nodejs.org)\n- Install easy-cgi\n\n```\nnpm install -g easy-cgi\n```\n\n# Example (Using Bash)\n\nCreate a directory for your app whith your CGI executable files.\n\nApp directory\n\n```\napp\n└---hello.sh\n```\n\napp/hello.sh\n\n```bash\n#!/bin/sh\n\n# Headers are written first. The special \"Status\"\n# header indicates the response status code\necho \"Status: 200\"\necho \"Content-Type: text/plain\"\necho\n\n# Followed by a response body\necho \"Hello World!\"\n```\n\n\nGive execute permissions to the file\n```bash\nchmod +x hello.sh\n```\n\nThen start your CGI server\n\n```bash\ncgi\n```\n\n\nAccess the address http://localhost:8080/hello in the browser\n\n# Routing\n\nThe routes are created automatically by file name\n\nExample:\n\n- For the `app/hello.sh` file, the route is `/hello`\n- For the `app/foo/bar.sh` file, the route is `/foo/bar`\n- For the `app/index.sh` file, the route is `/`\n- For the `app/foo/index.sh` file, the route is `/foo`\n\n\u003e If you create a `app/src` directory, it will be ignored\n\n### Dynamic routes\n\nDynamic routes are created adding underscore in file name or directory\n\nExample:\n\n- For the `app/users/_id.sh` file, the route is `/users/\u003cid\u003e`\n- For the `app/_foo/bar.sh` file, the route is `/\u003cfoo\u003e/bar`\n\n# Get request values\n\nYou can access the request values ​​through the REQUEST environment variable in JSON format\n\nThe REQUEST environment variable looks like\n\n```json\n{\n\t\"body\": {},\n\t\"params\": {},\n\t\"query\": {},\n\t\"headers\": {},\n\t\"files\": {}\n}\n```\n\n\u003e No sessions are supported yet\n\n# Static files\n\nTo serve static files, create a `static` directory\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelnovaes%2Feasy-cgi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelnovaes%2Feasy-cgi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelnovaes%2Feasy-cgi/lists"}