{"id":17054597,"url":"https://github.com/rehiy/webox-node","last_synced_at":"2026-02-14T01:04:33.423Z","repository":{"id":98254747,"uuid":"194617562","full_name":"rehiy/webox-node","owner":"rehiy","description":"a Dynamic JS HTTP server","archived":false,"fork":false,"pushed_at":"2025-01-01T14:01:55.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-19T07:56:19.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.rehiy.com/post/135/?v1","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rehiy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-07-01T07:01:01.000Z","updated_at":"2025-01-01T14:01:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b8a2fa4-771b-4f40-81f4-431670d5c201","html_url":"https://github.com/rehiy/webox-node","commit_stats":{"total_commits":84,"total_committers":2,"mean_commits":42.0,"dds":"0.20238095238095233","last_synced_commit":"6dbf3f1e8d8754a2baee92d7201055450b2a3185"},"previous_names":["anrip/webox-node"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/rehiy/webox-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehiy%2Fwebox-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehiy%2Fwebox-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehiy%2Fwebox-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehiy%2Fwebox-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rehiy","download_url":"https://codeload.github.com/rehiy/webox-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehiy%2Fwebox-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29427663,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T22:20:51.549Z","status":"ssl_error","status_checked_at":"2026-02-13T22:20:49.838Z","response_time":78,"last_error":"SSL_read: 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":[],"created_at":"2024-10-14T10:15:13.911Z","updated_at":"2026-02-14T01:04:33.401Z","avatar_url":"https://github.com/rehiy.png","language":"JavaScript","readme":"# Webox-node is a Dynamic JS HTTP server\n\nWebox-node can execute js file through node-cli, just like CGI. It can also load js file as commonjs module, just like PHP and ASP.\n\n## install\n\n```shell\nnpm i webox-node\n```\n\n## simple start\n\n```shell\nnpx webox\n```\n\nThe web server will listen on `127.0.0.1:80` and use `./webroot` as the root directory.\n\n## publish your website\n\n```shell\nnpx webox 0.0.0.0:80 public\n```\n\nThe web server will listen on `0.0.0.0:80` and use `./public` as the root directory.\n\nOther users can use your internal ip to access your published site.\n\n## execute js as cgi script\n\nDynamically parse `*.cgi` or '`*.cgi.js`, and then output the result to browser.\n\n## load js as commonjs module\n\nDynamically parse `*.cjs` or '`*.cjs.js`, and then output the result to browser.\n\n## normal exit with 0 or 1\n\nSet `process.env.WEBOX_EXIT_CODE` to `1`, Even if the program exits normally, an error will be reported.\n\n## config with file\n\nPlease set `process.env.WEBOX_CONF_FILE` to config file path.\n\n```js\nmodule.exports = {\n\n    WEBOX_MODE: 'development',\n\n    WEBOX_HOST: '127.0.0.1',\n\n    WEBOX_PORT: 80,\n\n    WEBOX_ROOT: 'webroot',\n\n    WEBOX_INDEX: [\n        'index.html',\n        'index.htm'\n    ],\n\n    WEBOX_ERROR: {\n        200: '%s',\n        400: 'Bad Request: %s',\n        403: 'Forbidden : %s',\n        404: 'NO Found: %s',\n        500: 'Internal Server Error: %s',\n        503: 'Service Unavilable: %s'\n    }\n\n};\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frehiy%2Fwebox-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frehiy%2Fwebox-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frehiy%2Fwebox-node/lists"}