{"id":18799502,"url":"https://github.com/messa/aiohttp-nextjs-demo-chat","last_synced_at":"2025-07-29T00:09:43.318Z","repository":{"id":136842818,"uuid":"142790603","full_name":"messa/aiohttp-nextjs-demo-chat","owner":"messa","description":"Simple chat application using Python 3 asyncio with aiohttp, Next.js, Websocket and OAuth2 login","archived":false,"fork":false,"pushed_at":"2018-08-31T10:45:47.000Z","size":73,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T17:44:22.918Z","etag":null,"topics":["aiohttp-server","asyncio","demo-app","example","nextjs","oauth2","python3","websockets"],"latest_commit_sha":null,"homepage":"https://20180721chat.now.sh/","language":"Python","has_issues":true,"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/messa.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-07-29T19:43:56.000Z","updated_at":"2025-03-19T05:15:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"694d3bb6-05d6-4546-a81e-a33da83bbc2a","html_url":"https://github.com/messa/aiohttp-nextjs-demo-chat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/messa/aiohttp-nextjs-demo-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messa%2Faiohttp-nextjs-demo-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messa%2Faiohttp-nextjs-demo-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messa%2Faiohttp-nextjs-demo-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messa%2Faiohttp-nextjs-demo-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/messa","download_url":"https://codeload.github.com/messa/aiohttp-nextjs-demo-chat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messa%2Faiohttp-nextjs-demo-chat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267606699,"owners_count":24114771,"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-07-28T02:00:09.689Z","response_time":68,"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":["aiohttp-server","asyncio","demo-app","example","nextjs","oauth2","python3","websockets"],"created_at":"2024-11-07T22:15:34.396Z","updated_at":"2025-07-29T00:09:43.308Z","avatar_url":"https://github.com/messa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Chat demo web app created with aiohttp and next.js\n==================================================\n\nRequirements:\n\n- Python 3.6\n- aiohttp, requests_oauthlib etc. – Python dependencies managed by `setup.py`\n- node.js, npm\n\nSee `Dockerfile` or `Makefile` how to run this example.\n\nSee also my [`aiohttp.web` tips](https://github.com/messa/tips/blob/master/Python%20-%20aiohttp%20server.md) :)\n\n\nArchitecture\n------------\n\n### Production\n\n\n    Build phase:\n                    Next.js app                          Static files (prerendered)\n                    ~~~~~~~~~~~~~~~~     next export     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n                    pages/*.js         --------------\u003e   out/_next/…/page/*.js\n                    components/*.js                      out/_next/static/commons/main-….js\n                    util/*.js                            out/index.html\n                                                         out/chat/index.html                    \u003c-+\n                                                         out/login/index.html                     | serve\n                                                                                                  | HTML \u0026 JS\n                                                                                                  | as static\n                                                                                                  | files\n    Deployed:                                                                             request |\n                                                                                          path    | /*\n                    User           HTTPS, WSS    nginx or other    HTTP, WS    aiohttp    routing |\n                    Web browser  -------------\u003e  load balancer   -----------\u003e  web app  ----------+\n                                                                                                  | /api/*\n                                                                                                  | /auth/*\n                                                                                                  v\n                                                                                            JSON API with\n                                                                                              live data\n\n### Development\n\nUsing `npm run dev` that runs `next` with HMR etc.\n\n                                                               /api/*\n                                                               /auth/*\n                                                             +---------\u003e aiohttp web app\n    Developer     HTTP, WS   nginx with           proxy_pass |\n    Web browser -----------\u003e dev configuration  -------------+\n                             (see nginx.conf)                |\n                                                             | /*\n                                                             +--------\u003e Next.js development server\n\n\nLinks\n-----\n\nSimilar projects etc., not directly related to this repo\n\nhttps://steelkiwi.com/blog/an-example-of-a-simple-chat-written-in-aiohttp/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmessa%2Faiohttp-nextjs-demo-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmessa%2Faiohttp-nextjs-demo-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmessa%2Faiohttp-nextjs-demo-chat/lists"}