{"id":23802597,"url":"https://github.com/agx/flask-xstatic-files","last_synced_at":"2026-05-19T14:34:34.136Z","repository":{"id":57430899,"uuid":"114985416","full_name":"agx/flask-xstatic-files","owner":"agx","description":"Flask extension to serve xstatic packaged files","archived":false,"fork":false,"pushed_at":"2018-10-09T07:33:39.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-06T22:05:14.485Z","etag":null,"topics":["flask","flask-extensions"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"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/agx.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2017-12-21T09:04:44.000Z","updated_at":"2018-10-09T07:33:41.000Z","dependencies_parsed_at":"2022-08-27T10:51:19.708Z","dependency_job_id":null,"html_url":"https://github.com/agx/flask-xstatic-files","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/agx/flask-xstatic-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agx%2Fflask-xstatic-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agx%2Fflask-xstatic-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agx%2Fflask-xstatic-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agx%2Fflask-xstatic-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agx","download_url":"https://codeload.github.com/agx/flask-xstatic-files/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agx%2Fflask-xstatic-files/sbom","scorecard":{"id":171461,"data":{"date":"2025-08-11","repo":{"name":"github.com/agx/flask-xstatic-files","commit":"24270c805bd84d5e3463ed21dfb841417a5d0130"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.2,"checks":[{"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":"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":"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":"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 1/12 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":"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 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"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2018-66 / GHSA-562c-5r94-xh97","Warn: Project is vulnerable to: PYSEC-2019-179 / GHSA-5wv5-4vpf-pj6m","Warn: Project is vulnerable to: PYSEC-2023-62 / GHSA-m2qf-hxjv-5gpq"],"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-16T16:36:20.193Z","repository_id":57430899,"created_at":"2025-08-16T16:36:20.193Z","updated_at":"2025-08-16T16:36:20.193Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274831645,"owners_count":25357883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"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":["flask","flask-extensions"],"created_at":"2025-01-01T22:27:09.360Z","updated_at":"2026-05-19T14:34:33.142Z","avatar_url":"https://github.com/agx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Flask-XStatic-Files\n===================\n\n.. image:: https://travis-ci.org/agx/flask-xstatic-files.svg?branch=master\n    :target: https://travis-ci.org/agx/flask-xstatic-files\n\n.. highlight:: python\n\nA `Flask`_ extionsion to serve `XStatic`_ files. Can be useful if you\ndon't use an asset pipeline and want to serve e.g. XStatic packaged\njavascript files like `JQuery`_ directly.\n\nSetup\n-----\nUpon initialization tell Flask about the XStatic modules you want to\nuse. This example uses JQuery and D3::\n\n    app = Flask(__name__)\n    app.config.from_object(__name__)\n    app.config.['XSTATIC_MODULES'] = ['jquery', 'd3']\n    xsf = XStaticFiles(app)\n\nThe modules can be given as list or comma separated (``jquery,d3``).\n\nServing Files\n-------------\nThe extension already installs a route handler for you so files under\n``/xstatic/\u003cmodule\u003e/`` are served automatically. To generate these\nURLs you can use ``url_for``::\n\n  xsf.url_for('jquery', 'jquery.min.js')\n\nIn templates you can use ``xstatic_url_for``:\n\n.. code-block:: html\n\n    \u003cscript type=text/javascript src=\"{{ xstatic_url_for(module='jquery', path='jquery.min.js') }}\"\u003e\u003c/script\u003e\n\nto generate these URLs.  This has the advantage that you can later\nserve files from a static web server by adjusting ``XSTATIC_ROOT`` and\n``XSTATIC_PROTO`` without having to modify any code.\n\nIn case you want to serve XStatic files from other URLs use ``serve``\nor ``serve_or_404``::\n\n  @app.route('/somewhere-else/jquery/jquery.min.js')\n  def serve_jquery():\n      return xsf.serve_or_404('jquery', 'jquery.min.js')\n\n.. _Flask: http://flask.pocoo.org/\n.. _XStatic: https://xstatic.readthedocs.io/en/latest/\n.. _JQuery: https://pypi.python.org/pypi/XStatic-jQuery\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagx%2Fflask-xstatic-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagx%2Fflask-xstatic-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagx%2Fflask-xstatic-files/lists"}