{"id":23473021,"url":"https://github.com/caltechlibrary/wsfn","last_synced_at":"2026-06-15T22:00:49.573Z","repository":{"id":57553834,"uuid":"110271527","full_name":"caltechlibrary/wsfn","owner":"caltechlibrary","description":"Go package for standardize web service functionality across our library's go projects","archived":false,"fork":false,"pushed_at":"2026-06-15T19:28:15.000Z","size":13214,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-06-15T20:22:17.349Z","etag":null,"topics":["caltechlibrary","web-service"],"latest_commit_sha":null,"homepage":"https://caltechlibrary.github.io/wsfn","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caltechlibrary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json","zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-11-10T17:02:11.000Z","updated_at":"2026-06-15T19:28:26.000Z","dependencies_parsed_at":"2024-06-19T05:19:12.626Z","dependency_job_id":"e38c0eb9-5eb9-4473-be25-182336629e0f","html_url":"https://github.com/caltechlibrary/wsfn","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/caltechlibrary/wsfn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caltechlibrary%2Fwsfn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caltechlibrary%2Fwsfn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caltechlibrary%2Fwsfn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caltechlibrary%2Fwsfn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caltechlibrary","download_url":"https://codeload.github.com/caltechlibrary/wsfn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caltechlibrary%2Fwsfn/sbom","scorecard":{"id":263234,"data":{"date":"2025-08-11","repo":{"name":"github.com/caltechlibrary/wsfn","commit":"0b9ce8305e69ec53b0a55f6de48aa6d5a2e3e3ea"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"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":"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":"Code-Review","score":0,"reason":"Found 0/28 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":"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":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","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":"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":"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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.13 not signed: https://api.github.com/repos/caltechlibrary/wsfn/releases/212326768","Warn: release artifact v0.0.12 not signed: https://api.github.com/repos/caltechlibrary/wsfn/releases/202894141","Warn: release artifact v0.0.10 not signed: https://api.github.com/repos/caltechlibrary/wsfn/releases/104452540","Warn: release artifact v0.0.9 not signed: https://api.github.com/repos/caltechlibrary/wsfn/releases/93195353","Warn: release artifact v0.0.13 does not have provenance: https://api.github.com/repos/caltechlibrary/wsfn/releases/212326768","Warn: release artifact v0.0.12 does not have provenance: https://api.github.com/repos/caltechlibrary/wsfn/releases/202894141","Warn: release artifact v0.0.10 does not have provenance: https://api.github.com/repos/caltechlibrary/wsfn/releases/104452540","Warn: release artifact v0.0.9 does not have provenance: https://api.github.com/repos/caltechlibrary/wsfn/releases/93195353"],"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 'main'"],"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":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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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"}}]},"last_synced_at":"2025-08-17T11:19:10.523Z","repository_id":57553834,"created_at":"2025-08-17T11:19:10.523Z","updated_at":"2025-08-17T11:19:10.523Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34381762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"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":["caltechlibrary","web-service"],"created_at":"2024-12-24T17:14:44.696Z","updated_at":"2026-06-15T22:00:49.565Z","avatar_url":"https://github.com/caltechlibrary.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# wsfn\n\n_wsfn_ is a package for common web functions Caltech Library uses \nin various Golang based Caltech Library tools and services. The goal \nis to standardize our handling of web interactions.\n\n+ wsfn.CORSPolicy is a structure for adding CORS headers to a http Handler\n+ StaticRouter is a http Handler Function for working with static routes\n+ RedirectRouter handles simple target prefix, destination prefix redirect handling\n    + AddRedirectRoute adds a target prefix and destination prefix\n    + HasRedirectRoutes return true if any redirect routes are configured\n    + RedirectRouter uses the internal redirect data to handle redirects\n+ ReverseProxy router lets front other web services.\n\nAn example **webserver** is also provided to demonstrate some of the\nfunctionality available with this package. The **webserver** is\nintended for instructional purposes only and shouldn't be used in a\nproduction setting.\n\n## Release Notes\n\n- version: 0.1.0\n- status: inactive\n- released: 2026-01-05\n\n- Added reverse proxy support.\n- Upgraded Go to v1.26.4\n\n\n### Authors\n\n- Doiel, R. S.\n\n\n\n### Maintainers\n\n- https://orcid.org/0000-0003-0900-6903\n\n## Software Requirements\n\n- Go \u003e= 1.26.4\n\n### Software Suggestions\n\n- GNU Make \u003e 3.8\n- Pandoc \u003e= 3.9\n- CMTools \u003e= 0.0.45b\n\n\n\n## Related resources\n\n\n- [Download](https://github.com/caltechlibrary/wsfn/releases)\n- [Getting Help, Reporting bugs](https://github.com/caltechlibrary/wsfn/issues)\n- [LICENSE](https://caltechlibrary.github.io/wsfn/LICENSE)\n- [Installation](INSTALL.md)\n- [About](about.md)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaltechlibrary%2Fwsfn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaltechlibrary%2Fwsfn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaltechlibrary%2Fwsfn/lists"}