{"id":41518975,"url":"https://github.com/nodecraft/spawnpoint-express","last_synced_at":"2026-01-23T20:44:32.864Z","repository":{"id":2999416,"uuid":"48136433","full_name":"nodecraft/spawnpoint-express","owner":"nodecraft","description":"Express Plugin for Spawnpoint","archived":false,"fork":false,"pushed_at":"2026-01-01T15:55:12.000Z","size":907,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-06T20:48:01.427Z","etag":null,"topics":["express","spawnpoint"],"latest_commit_sha":null,"homepage":"https://github.com/nodecraft/spawnpoint","language":"JavaScript","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/nodecraft.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-12-16T21:34:01.000Z","updated_at":"2026-01-01T15:55:13.000Z","dependencies_parsed_at":"2024-12-15T16:41:21.897Z","dependency_job_id":null,"html_url":"https://github.com/nodecraft/spawnpoint-express","commit_stats":{"total_commits":86,"total_committers":8,"mean_commits":10.75,"dds":0.7325581395348837,"last_synced_commit":"aebe4eba61dedf3f54fba3cb5894d791c7a63b41"},"previous_names":["nodecraft/appframe-express.js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nodecraft/spawnpoint-express","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodecraft%2Fspawnpoint-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodecraft%2Fspawnpoint-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodecraft%2Fspawnpoint-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodecraft%2Fspawnpoint-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodecraft","download_url":"https://codeload.github.com/nodecraft/spawnpoint-express/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodecraft%2Fspawnpoint-express/sbom","scorecard":{"id":692360,"data":{"date":"2025-08-11","repo":{"name":"github.com/nodecraft/spawnpoint-express","commit":"8834fac1fc344691d7cef7122284953e53a06077"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"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/2 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":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/nodecraft/spawnpoint-express/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/nodecraft/spawnpoint-express/test.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:19","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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: MIT 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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"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-22T02:35:02.819Z","repository_id":2999416,"created_at":"2025-08-22T02:35:02.819Z","updated_at":"2025-08-22T02:35:02.819Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28699809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"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":["express","spawnpoint"],"created_at":"2026-01-23T20:44:32.813Z","updated_at":"2026-01-23T20:44:32.859Z","avatar_url":"https://github.com/nodecraft.png","language":"JavaScript","readme":"# Spawnpoint-express\n[Express](http://expressjs.com/) Plugin for [Spawnpoint](https://github.com/nodecraft/spawnpoint).\n\n[![npm version](https://badge.fury.io/js/spawnpoint-express.svg)](https://badge.fury.io/js/spawnpoint-express)\n[![dependencies Status](https://david-dm.org/nodecraft/spawnpoint-express/status.svg)](https://david-dm.org/nodecraft/spawnpoint-express)\n[![Actions Status](https://github.com/nodecraft/spawnpoint-express/workflows/Test/badge.svg)](https://github.com/nodecraft/spawnpoint-express/actions)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fnodecraft%2Fspawnpoint-express.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fnodecraft%2Fspawnpoint-express?ref=badge_shield) [![Greenkeeper badge](https://badges.greenkeeper.io/nodecraft/spawnpoint-express.svg)](https://greenkeeper.io/)\n\n## API\nThis api is mounted at `app.server` as a new express app. Also mounts `app.joi` for validation. Has following methods:\n\n##### `app.server.validate(fields)`\nMiddleware to validate fields on requests.\n - `fields` *object* - Key value where key is fieldname and value is joi validation object\n\n```javascript\n\napp.server.post('/validate', app.server.validate({\n        body: {\n            user: app.joi.string().required(),\n            email: app.joi.string().email(),\n        }\n    }), function(req, res){\n        if(req.body.user.length \u003c 2){\n            return res.invalid({\n                'user': app.code('user.username_invalid') // this code is not included\n            });\n        }\n        res.success('server.status_200', req.body);\n    });\n\n// outputs\n{\n    \"code\": \"server.validation\",\n    \"message\": \"There was a problem with your request. Please check the errors provided.\",\n    \"success\": false,\n    \"data\": {\n    \"fields\": {\n        \"user\": {\n            \"type\": \"custom_message\",\n            \"message\": \"Provided username is invalid.\"\n        }\n    }\n    },\n    \"error\": false\n}\n```\n##### `response.invalid(fields)`\nThrows a validation error on the fields.\n - `fields` *object* - Key value where key is fieldname and value is string error or app.code object\n\n```javascript\nres.invalid({\n    user: 'Provided username is invalid.'\n});\n\n// outputs\n{\n    \"code\": \"server.validation\",\n    \"message\": \"There was a problem with your request. Please check the errors provided.\",\n    \"success\": false,\n    \"data\": {\n    \"fields\": {\n        \"user\": {\n            \"type\": \"custom_message\",\n            \"message\": \"Provided username is invalid.\"\n        }\n    }\n    },\n    \"error\": false\n}\n```\n##### `response.fail(error [, data])`\nOutputs JSON object with code, message, and optional data.\n - `error` *mixed* - This corresponds an error code string, error code object, errorCode Spawnpoint Error, failCode Spawnpoint Error, or registered error from within Spawnpoint.\n - `data` *any* - This is attached to the JSON reply as `response.data`\n\n```javascript\nif(user === null){\n    var error = app.failCode('user.not_found');\n}\nres.fail(error);\n\n// outputs\n{\n    success: false,\n    error: false,\n    code: \"user.not_found\",\n    message: \"No user found by given id.\",\n    data: null\n}\n\n##### `response.success(code [, data])`\nOutputs JSON object with code, message, and optional data.\n - `code` *string* - This corresponds with an Spawnpoint code to populate response\n - `data` *any* - This is attached to the JSON reply as `response.data`\n\n```javascript\nres.success('user.found', {user: user});\n\n// outputs\n{\n    success: true,\n    code: \"user.found\",\n    message: \"The user was found by given id.\",\n    data: {\n        user: {...}\n    }\n}\n```\n##### `response.fail(error [, data])`\nOutputs JSON object with code, message, and optional data.\n - `error` *mixed* - This corresponds an error code string, error code object, errorCode Spawnpoint Error, failCode Spawnpoint Error, or registered error from within Spawnpoint.\n - `data` *any* - This is attached to the JSON reply as `response.data`\n\n```javascript\nif(user === null){\n    var error = app.failCode('user.not_found');\n}\nres.fail(error);\n\n// outputs\n{\n    success: false,\n    error: false,\n    code: \"user.not_found\",\n    message: \"No user found by given id.\",\n    data: null\n}\n```\n\n### Config `server.json5`\n- `host` *String* - HTTP server host address to bind on. Defaults to **127.0.0.1**.\n- `port` *String* - HTTP server port number to bind on. Defaults to **8080**.\n- `handle_error` *Boolean* - Automatically handle internal errors and 404 with generic JSON response codes. Defaults to **True**\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodecraft%2Fspawnpoint-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodecraft%2Fspawnpoint-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodecraft%2Fspawnpoint-express/lists"}