{"id":37021145,"url":"https://github.com/mthmulders/spark-flash","last_synced_at":"2026-01-14T02:29:16.366Z","repository":{"id":37105319,"uuid":"289865686","full_name":"mthmulders/spark-flash","owner":"mthmulders","description":"Flash support for Spark, the micro framework for creating web applications with minimal effort.","archived":false,"fork":false,"pushed_at":"2025-12-14T13:56:40.000Z","size":442,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-16T20:22:45.061Z","etag":null,"topics":["microframework","spark-java"],"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/mthmulders.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":"2020-08-24T08:03:20.000Z","updated_at":"2025-12-14T13:56:43.000Z","dependencies_parsed_at":"2023-12-02T09:26:04.036Z","dependency_job_id":"a181785f-f348-4a28-923f-27ca82d8f1cb","html_url":"https://github.com/mthmulders/spark-flash","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/mthmulders/spark-flash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthmulders%2Fspark-flash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthmulders%2Fspark-flash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthmulders%2Fspark-flash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthmulders%2Fspark-flash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mthmulders","download_url":"https://codeload.github.com/mthmulders/spark-flash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mthmulders%2Fspark-flash/sbom","scorecard":{"id":586711,"data":{"date":"2025-08-11","repo":{"name":"github.com/mthmulders/spark-flash","commit":"85565ea4e2b5f2e0824b42a0bc32d833f76cdaac"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"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":"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":"Maintained","score":10,"reason":"21 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/mthmulders/spark-flash/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/mthmulders/spark-flash/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/mthmulders/spark-flash/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/mthmulders/spark-flash/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/mthmulders/spark-flash/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:80: update your workflow using https://app.stepsecurity.io/secureworkflow/mthmulders/spark-flash/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/mthmulders/spark-flash/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/mthmulders/spark-flash/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/mthmulders/spark-flash/main.yml/master?enable=pin","Info:   0 out of   9 GitHub-owned GitHubAction 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.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":"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":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":"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":"SAST","score":10,"reason":"SAST tool detected","details":["Info: SAST configuration detected: Sonar","Info: all commits (18) 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":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-hmr7-m48g-48f6","Warn: Project is vulnerable to: GHSA-qh8g-58pp-2wxh","Warn: Project is vulnerable to: GHSA-g8m5-722r-8whq","Warn: Project is vulnerable to: GHSA-p26g-97m4-6q7c","Warn: Project is vulnerable to: GHSA-q4rv-gq96-w7c5","Warn: Project is vulnerable to: GHSA-qw69-rqj8-6qw8","Warn: Project is vulnerable to: GHSA-58qw-p7qm-5rvh"],"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-20T20:42:07.448Z","repository_id":37105319,"created_at":"2025-08-20T20:42:07.448Z","updated_at":"2025-08-20T20:42:07.448Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["microframework","spark-java"],"created_at":"2026-01-14T02:29:15.600Z","updated_at":"2026-01-14T02:29:16.361Z","avatar_url":"https://github.com/mthmulders.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flash support for Spark Java ⚡\n\n![Run tests](https://github.com/mthmulders/spark-flash/workflows/Run%20tests/badge.svg)\n[![SonarCloud quality gate](https://sonarcloud.io/api/project_badges/measure?project=mthmulders_spark-flash\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=mthmulders_spark-flash)\n[![SonarCloud vulnerability count](https://sonarcloud.io/api/project_badges/measure?project=mthmulders_spark-flash\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=mthmulders_spark-flash)\n[![SonarCloud technical debt](https://sonarcloud.io/api/project_badges/measure?project=mthmulders_spark-flash\u0026metric=sqale_index)](https://sonarcloud.io/dashboard?id=mthmulders_spark-flash)\n[![Dependabot Status](https://api.dependabot.com/badges/status?host=github\u0026repo=mthmulders/spark-flash)](https://dependabot.com)\n[![Mutation testing badge](https://img.shields.io/endpoint?style=plastic\u0026url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fmthmulders%2Fspark-flash%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/mthmulders/spark-flash/master)\n[![Maven Central](https://img.shields.io/maven-central/v/it.mulders.spark-flash/spark-flash.svg?color=brightgreen\u0026label=Maven%20Central)](https://search.maven.org/artifact/it.mulders.spark-flash/spark-flash)\n[![](https://img.shields.io/github/license/mthmulders/spark-flash.svg)](./LICENSE)\n\n## TL;DR\n\nThis module adds a \"flash scope\" to [Spark Java](http://sparkjava.com/).\n\n## Flash scope?\nImagine a server-rendered web application.\nWhen a user submits a form with some data - typically using HTTP POST - and hits the \"refresh\" button, the form shouldn't be submitted twice.\nThe [Post-Redirect-Get pattern](https://en.wikipedia.org/wiki/Post/Redirect/Get) makes this possible: it answers the POST with a redirect.\nThe browser will follow that redirect, and perform a GET on the specified location.\n\nThe question is: how to convey information about the form processing to that new page?\n**That's where the \"flash scope\" comes in.**\nIt allows the developer to temporarily store some information and retrieve it in the next request.\n\nSo when form processing is done, you store a bit of information in the flash scope.\nIt can be a simple message, like \"order placed\" or \"validation failed\", or even be more complex.\nYou redirect the user, and in the next page, you access the flash scope again to retrieve that information you stored earlier.\n\n## How to use?\nFirst, add this module to your POM:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eit.mulders.spark-flash\u003c/groupId\u003e\n    \u003cartifactId\u003espark-flash\u003c/artifactId\u003e\n    \u003cversion\u003e0.1.11\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n**Important:** register the cleanup filter.\nIf you omit this step, your application will use a lot more memory and users may see odd results because the flash scope is kept as long as their session lives.\n \n```java\nimport spark.flash.CleanFlashScopeFilter;\nimport static spark.Spark.after;\n\npublic class App {\n  public static void main(final String... args){\n    after(new CleanFlashScopeFilter());    \n  }\n}\n```\n\nFinally, use the flash scope in your routes to implement user interface logic:\n\n```java\nimport static spark.Spark.get;\nimport static spark.Spark.post;\n\npublic class App {\n  public static void main(final String... args){\n    post(\"/order\", (req, res) -\u003e {\n      // Do complex order processing\n      flash(req, \"status\", \"Order placed successfully\");\n      redirect(\"/confirmation\");\n      return null;\n    });\n    get(\"/confirmation\", (req, res) -\u003e {\n      return \"Your order status is \" + flash(req, \"status\");\n    });\n  }\n}\n```\n\n## License\nThis module is licensed to you under the terms of the Apache License, version 2.0.\nSee the file LICENSE for the full text of this license. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmthmulders%2Fspark-flash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmthmulders%2Fspark-flash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmthmulders%2Fspark-flash/lists"}