{"id":20925919,"url":"https://github.com/phpjsnerd/flask-javascript","last_synced_at":"2026-04-30T20:31:58.105Z","repository":{"id":114196275,"uuid":"148592671","full_name":"phpjsnerd/flask-javascript","owner":"phpjsnerd","description":"Flask Javascript AJAX Example Using XMLHttpRequest, Fetch \u0026 JQuery.ajax","archived":false,"fork":false,"pushed_at":"2018-09-13T08:09:56.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-05T10:45:38.462Z","etag":null,"topics":["fetch","flask","javascript","jquery","python","rest"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/phpjsnerd.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2018-09-13T06:32:52.000Z","updated_at":"2023-03-04T05:03:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e3eed2b-d9ee-49d4-91e3-b9e7a8a8c4ac","html_url":"https://github.com/phpjsnerd/flask-javascript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phpjsnerd/flask-javascript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpjsnerd%2Fflask-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpjsnerd%2Fflask-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpjsnerd%2Fflask-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpjsnerd%2Fflask-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpjsnerd","download_url":"https://codeload.github.com/phpjsnerd/flask-javascript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpjsnerd%2Fflask-javascript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32476682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":["fetch","flask","javascript","jquery","python","rest"],"created_at":"2024-11-18T20:35:44.360Z","updated_at":"2026-04-30T20:31:58.081Z","avatar_url":"https://github.com/phpjsnerd.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"JavaScript Ajax Example\n=======================\n\n.. image:: https://api.codacy.com/project/badge/Grade/45dec1a1afbb4f62a1557160a07d280e\n   :alt: Codacy Badge\n   :target: https://app.codacy.com/app/phpjsnerd/flask-javascript?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=phpjsnerd/flask-javascript\u0026utm_campaign=Badge_Grade_Settings\n\nDemonstrates how to post form data and process a JSON response using\nJavaScript. This allows making requests without navigating away from the\npage. Demonstrates using |XMLHttpRequest|_, |fetch|_, and\n|jQuery.ajax|_. See the `Flask docs`_ about jQuery and Ajax.\n\n.. |XMLHttpRequest| replace:: ``XMLHttpRequest``\n.. _XMLHttpRequest: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest\n\n.. |fetch| replace:: ``fetch``\n.. _fetch: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch\n\n.. |jQuery.ajax| replace:: ``jQuery.ajax``\n.. _jQuery.ajax: https://api.jquery.com/jQuery.ajax/\n\n.. _Flask docs: http://flask.pocoo.org/docs/patterns/jquery/\n\n\nInstall\n-------\n\n::\n\n    python3 -m venv venv\n    . venv/bin/activate\n    pip install -e .\n\n\nRun\n---\n\n::\n\n    export FLASK_APP=js_example\n    flask run\n\nOpen http://127.0.0.1:5000 in a browser.\n\n\nTest\n----\n\n::\n\n    pip install -e '.[test]'\n    coverage run -m pytest\n    coverage report\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpjsnerd%2Fflask-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpjsnerd%2Fflask-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpjsnerd%2Fflask-javascript/lists"}