{"id":27233077,"url":"https://github.com/expresso/server","last_synced_at":"2026-03-10T14:34:37.531Z","repository":{"id":33082955,"uuid":"151322504","full_name":"expresso/server","owner":"expresso","description":"Expresso webserver","archived":false,"fork":false,"pushed_at":"2024-08-27T12:00:51.000Z","size":13901,"stargazers_count":3,"open_issues_count":8,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-08T16:27:44.203Z","etag":null,"topics":["http-server","server"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/expresso.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":"2018-10-02T20:57:49.000Z","updated_at":"2024-08-27T12:00:54.000Z","dependencies_parsed_at":"2024-08-30T00:18:02.729Z","dependency_job_id":null,"html_url":"https://github.com/expresso/server","commit_stats":{"total_commits":27,"total_committers":3,"mean_commits":9.0,"dds":0.5185185185185186,"last_synced_commit":"07d371b37f6561d454fb625246a51a6f04dee4f9"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/expresso/server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expresso%2Fserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expresso%2Fserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expresso%2Fserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expresso%2Fserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/expresso","download_url":"https://codeload.github.com/expresso/server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expresso%2Fserver/sbom","scorecard":{"id":388474,"data":{"date":"2025-08-11","repo":{"name":"github.com/expresso/server","commit":"209ff28fa572f7b9bcbab05facdd7a2fb217e1ec"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/17 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":"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":"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":"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 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":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"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-18T17:14:41.939Z","repository_id":33082955,"created_at":"2025-08-18T17:14:41.939Z","updated_at":"2025-08-18T17:14:41.939Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30337305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T12:41:07.687Z","status":"ssl_error","status_checked_at":"2026-03-10T12:41:06.728Z","response_time":106,"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":["http-server","server"],"created_at":"2025-04-10T14:11:21.367Z","updated_at":"2026-03-10T14:34:37.514Z","avatar_url":"https://github.com/expresso.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server\n\n\u003e Server middleware for Expresso\n\n## Summary\n\n- [Server](#server)\n  - [Summary](#summary)\n  - [What is this](#what-is-this)\n  - [Basic usage](#basic-usage)\n  - [API](#api)\n    - [Options](#options)\n    - [Transformers](#transformers)\n  - [Envs](#envs)\n\n## What is this\n\nExpresso is opinionated, so this means we export our own server with our own configs, which are basically none. This package exposes a single simple Node HTTP Server in order to bind express to it.\n\n## Basic usage\n\nInstall it:\n\n```sh\n$ npm i @expresso/server\n```\n\nImport and use:\n\n```ts\nimport { privKey } from './config'\nimport expresso from '@expresso/app'\nimport server from '@expresso/server'\nimport { IExpressoConfigOptions } from '@expresso/app'\n\ninterface IAppConfig extends IAuthConfig, IExpressoConfigOptions {}\n\nconst appFactory = expresso((app, config: IAppConfig, environment) =\u003e {\n // your expresso app\n})\n\nserver.start(appFactory, { name: 'appname', jwt: { algorithms: ['HS256'], audience: 'audience', issuer: 'your-issuer', secret: privKey } })\n```\n\n## API\n\nThe server exposes a single `start` method with the following signature:\n\n```ts\nasync function start\u003cTConfig extends IServerConfig\u003e (appFactory: IExpressoAppFactory\u003cTConfig\u003e, options: TConfig, serverTransformer?: IServerTransformer)\n```\n\nThe `appFactory` is your expresso app.\n\n### Options\n\nThe options object follows this signature:\n\n```ts\nexport interface IServerConfig {\n  name: string\n  server?: {\n    printOnListening?: boolean\n    binding?: {\n      ip: string\n      port: number\n    }\n  }\n}\n```\n\n- **Name:** Server or app name\n- **Server (optional)**:\n  - **printOnListening (boolean):** Enables or disables the informative text line `Expresso server listening on...`\n  - **binding:**\n    - **ip (string):** The IP on which the server will bind to\n    - **port (number):** The port the server will listen to\n\n### Transformers\n\nThe server exposes a `serverTransformer` parameter, this is made in order to allow you to change and customize your server on on the fly. It is a function with the following signature:\n\n```ts\n(server: http.Server, config: Required\u003cIServerConfig\u003e): Promise\u003cvoid\u003e\n```\n\nIn this function you can modify the `server` object to bind, include or change whatever configuration you need. Since objects are passed as references to functions in JS, there's no need to return it\n\n## Envs\n\nYou can also set envs to change the default `PORT` and `HOST` of the server.\n\n- `SERVER_BINDING_PORT` or `PORT`: Will have the same effect as adding `{ server: { binding: { port: xxxx } } }` to your config file\n- `SERVER_BINDING_IP` or `HOST`: Will have the same effect as adding `{ server: { binding: { ip: 'xxx.xxx.xxx.xxx' } } }` to your config file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpresso%2Fserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexpresso%2Fserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpresso%2Fserver/lists"}