{"id":36707829,"url":"https://github.com/icha024/spur","last_synced_at":"2026-01-12T11:44:32.599Z","repository":{"id":57718268,"uuid":"88287534","full_name":"icha024/spur","owner":"icha024","description":"Sinatra inspired library for building REST microservices in Java 8","archived":false,"fork":false,"pushed_at":"2018-11-16T16:29:50.000Z","size":95,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T12:44:56.008Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icha024.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-04-14T17:15:44.000Z","updated_at":"2020-01-11T09:08:25.000Z","dependencies_parsed_at":"2022-09-14T22:41:52.771Z","dependency_job_id":null,"html_url":"https://github.com/icha024/spur","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/icha024/spur","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icha024%2Fspur","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icha024%2Fspur/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icha024%2Fspur/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icha024%2Fspur/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icha024","download_url":"https://codeload.github.com/icha024/spur/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icha024%2Fspur/sbom","scorecard":{"id":480231,"data":{"date":"2025-08-11","repo":{"name":"github.com/icha024/spur","commit":"3f904f6472f916e82073da7a05c988e0b6fb9ab2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: example/Dockerfile:2: pin your Docker image by updating ofayau/openjdk:8-compact2 to ofayau/openjdk:8-compact2@sha256:7173fa6b3b2caefb552b1ebd5ece38ac4a40cd22b17576b305a7d75d4548311f","Info:   0 out of   1 containerImage 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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"Vulnerabilities","score":0,"reason":"28 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-2w73-fqqj-c92p","Warn: Project is vulnerable to: GHSA-339q-62wm-c39w","Warn: Project is vulnerable to: GHSA-3jrv-jgp8-45v3","Warn: Project is vulnerable to: GHSA-8vh8-vc28-m2hf","Warn: Project is vulnerable to: GHSA-9442-gm4v-r222","Warn: Project is vulnerable to: GHSA-95rf-557x-44g5","Warn: Project is vulnerable to: GHSA-9623-mqmm-5rcf","Warn: Project is vulnerable to: GHSA-97cq-f4jm-mv8h","Warn: Project is vulnerable to: GHSA-cccf-7xw3-p2vr","Warn: Project is vulnerable to: GHSA-ch7q-gpff-h9hp","Warn: Project is vulnerable to: GHSA-fj7c-vg2v-ccrm","Warn: Project is vulnerable to: GHSA-g4cp-h53p-v3v8","Warn: Project is vulnerable to: GHSA-gv2w-88hx-8m9r","Warn: Project is vulnerable to: GHSA-jwgx-9mmh-684w","Warn: Project is vulnerable to: GHSA-m4mm-pg93-fv78","Warn: Project is vulnerable to: GHSA-mfhv-gwf8-4m88","Warn: Project is vulnerable to: GHSA-p9w3-gwc2-cr49","Warn: Project is vulnerable to: GHSA-pfcc-3g6r-8rg8","Warn: Project is vulnerable to: GHSA-qjwc-v72v-fq6r","Warn: Project is vulnerable to: GHSA-rf6q-vx79-mjxr","Warn: Project is vulnerable to: GHSA-rhcw-wjcm-9h6g","Warn: Project is vulnerable to: GHSA-v76w-3ph8-vm66","Warn: Project is vulnerable to: GHSA-vf6r-mmhc-3xcm","Warn: Project is vulnerable to: GHSA-vjxc-frw4-jmh5","Warn: Project is vulnerable to: GHSA-w6qf-42m7-vh68","Warn: Project is vulnerable to: GHSA-xpp6-8r3j-ww43","Warn: Project is vulnerable to: GHSA-xxgp-pcfc-3vgc","Warn: Project is vulnerable to: GHSA-7f88-5hhx-67m2"],"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-19T16:24:58.446Z","repository_id":57718268,"created_at":"2025-08-19T16:24:58.446Z","updated_at":"2025-08-19T16:24:58.446Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2026-01-12T11:44:32.540Z","updated_at":"2026-01-12T11:44:32.593Z","avatar_url":"https://github.com/icha024.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spur Framework\n [![Maven Central](https://img.shields.io/maven-central/v/com.clianz/spur-framework.svg)](http://search.maven.org/#search%7Cga%7C1%7Cspur-framework)\n [![Build Status](https://travis-ci.org/icha024/spur.svg?branch=master)](https://travis-ci.org/icha024/spur)\n\nA Sinatra inspired library for building REST microservices in Java 8. Spur for the cowboy in us!\n\nLightweight, at 4.6MB in size. \n\n## Simple\n```java\npackage com.example;\nimport com.clianz.spur.SpurServer;\n\npublic class BasicExample {\n    public static void main(final String[] args) {\n        new SpurServer()\n            .get(\"/\", (req, res) -\u003e res.send(\"Hello World\"))\n            .start();\n   }\n}\n```\n\n## Non-Blocking by Default\nThe server is build around single-threaded event loop by default (reactive pattern).\n\n*IMPORTANT:* Do not block the thread!\n- JDBC queries are blocking by default, look into NoSQL with an async clients instead.\n- Watchout for synchronous HTTP client, pick an async one instead.\n\n\nIf blocking code is necessary, it can still be enabled through options.\n```java\nserver.start(new SpurOptions().enableBlockableHandlers(false)\n```\n\n## Request Validator Built-in\n\nDeclare the model with Bean Validator 1.1 tags.\n```java\npublic class Car {\n    @Min(1)\n    private int doors;\n    private String name;\n    ...\n}\n```\nAny HTTP request body of this type will trigger the validation automatically.\n\n### Request/Response JSON Marshaling/Unmarshaling\nServer will automatically parse to/from JSON:\n```java\nnew SpurServer()\n        .post(\"/test-drive\", Car.class, (req, res) -\u003e {\n            Car car = req.body();\n            log.info(\"Validated with Bean Validator 1.1: \" + car.getName());\n            log.info(\"Sending request body back as response.\");\n            res.send(car);\n        })\n        .start();\n```\n\n## Simple Scheduler\n```java\nserver.schedule(60, () -\u003e LOGGER.info(\"This is a runnable task that triggers every 60 seconds\"));\n```\n\n## Server Side Event (SSE) Support\n```java\nserver.sse(\"/sse\");\nserver.broadcastSse(\"/sse\", \"A Server-Sent-Event (SSE) to everyone listening for events on the endpoint.\");\n\nserver.schedule(5,\n        () -\u003e server.broadcastSse(\"/sse\", sseConn -\u003e sseConn.send(\"Constant spam, by SSE\")));\n```\n\n## Web-Socket Support\n```java\nserver.websocket(\"/myapp\", res -\u003e {\n    LOGGER.info(\"[OnConnectEvent] A user has connected\");\n    res.send(\"Welcome!\");\n}, (msg, res) -\u003e {\n    LOGGER.info(\"[OnMessageEvent] User message received: \" + msg);\n    res.send(\"I heard you say: \" + msg);\n});\nserver.broadcastWebsockets(\"/myapp\", \"Everyone connected to the websocket path /myapp will see this\");\n\nserver.broadcastWebsockets(\"/myapp\",\n        \"This message will broadcast to websocket users on the path /myapp only if the predicate operator on the key's value is true\",\n        \"attrKey\", attrVal -\u003e attrVal != null);\n```\n\n## HTTP Request Filter/Validator\nSince this library does not support sessions by design, JWT should be used for auth.\n\nFilter/pre-request validator may be used for this:\n```java\nserver.preFilterRequests(req -\u003e !req.header(\"deny\")\n        .isPresent(), res -\u003e res.status(StatusCodes.FORBIDDEN)\n        .send());\n```\nNote: This is not applicable web-sockets or SSE.\n\n## Other Server Options\nSome other options that can be configured via `server.start(new SpurOptions()...)`\n- forceHttps\n- enableCorsHeaders\n- enableBlockableHandlers\n- enableGzip\n- gzipMaxSize\n- enableBasicAuth\n- host\n- port\n- enableHttps\n- sslContext (required when using https)\n- httpsPort\n- enableHttp2 (only with https)\n- requestParseTimeOut\n- maxEntitySize\n\n## Examples\nSee: [Examples code](/example/src/main/java/com/example)\n\nComplete sample project: https://github.com/icha024/spur-example\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficha024%2Fspur","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficha024%2Fspur","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficha024%2Fspur/lists"}