{"id":18438674,"url":"https://github.com/seapagan/fastapi-jinja-websockets","last_synced_at":"2026-05-05T20:42:02.777Z","repository":{"id":253628703,"uuid":"844067339","full_name":"seapagan/fastapi-jinja-websockets","owner":"seapagan","description":"A quick simple example to show using FastAPI and Jinja templates using WebSockets to update an already served template.","archived":false,"fork":false,"pushed_at":"2025-03-24T15:39:20.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T13:53:23.334Z","etag":null,"topics":["fastapi","jinja2","python","templates","websockets"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seapagan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-08-18T09:27:00.000Z","updated_at":"2025-03-24T15:39:22.000Z","dependencies_parsed_at":"2024-11-06T06:24:13.696Z","dependency_job_id":"cc460dbc-52e4-4991-bff1-609392f677cf","html_url":"https://github.com/seapagan/fastapi-jinja-websockets","commit_stats":null,"previous_names":["seapagan/fastapi-jinja-websockets"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seapagan%2Ffastapi-jinja-websockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seapagan%2Ffastapi-jinja-websockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seapagan%2Ffastapi-jinja-websockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seapagan%2Ffastapi-jinja-websockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seapagan","download_url":"https://codeload.github.com/seapagan/fastapi-jinja-websockets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886916,"owners_count":21177776,"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","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":["fastapi","jinja2","python","templates","websockets"],"created_at":"2024-11-06T06:21:05.505Z","updated_at":"2026-05-05T20:42:02.738Z","avatar_url":"https://github.com/seapagan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example FastAPI / Websocket application\n\nA quick simple example to show using FastAPI and Jinja templates using\nWebSockets to update an already served template.\n\nThis also uses `GraphQL` to access the GitHub API, and ties into the 'uvicorn'\ndefault logger to keep consistent formatting.\n\nNo attempt has ben made to style this app, it's just for my testing and for\nothers to learn. Eventually I will add this a a FastAPI/Jinja based projects\nshowcase.\n\n## GitHub Token\n\nYou need to add your GitHub token as an environment variable:\n\n```console\nexport GITHUB_TOKEN=ghp_xxxxxxxxxxxx\n```\n\n\u003e [!IMPORTANT]\n\u003e You need to have [poetry](https://python-poetry.org/) installed as that is\n\u003e used for dependency management\n\nInstall the dependencies and enter the virtualenv:\n\n```console\npoetry install\npoetry shell\n```\n\nThen, run the app using `uvicorn`:\n\n```console\nuvicorn main:app --reload\n```\n\nOpen the app in your browser as \u003chttp://localhost:8000\u003e to see the app. There\nis a 'Refresh Stats' button to update from the WebSocket\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseapagan%2Ffastapi-jinja-websockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseapagan%2Ffastapi-jinja-websockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseapagan%2Ffastapi-jinja-websockets/lists"}