{"id":34962961,"url":"https://github.com/guyernest/mesop-chat","last_synced_at":"2026-05-15T16:01:57.713Z","repository":{"id":247141638,"uuid":"825099650","full_name":"guyernest/mesop-chat","owner":"guyernest","description":"Alternative chat interface for bedrock-agent","archived":false,"fork":false,"pushed_at":"2024-07-08T04:33:22.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-08T22:15:59.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/guyernest.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}},"created_at":"2024-07-06T19:14:32.000Z","updated_at":"2024-07-08T04:33:25.000Z","dependencies_parsed_at":"2024-07-06T21:49:23.841Z","dependency_job_id":null,"html_url":"https://github.com/guyernest/mesop-chat","commit_stats":null,"previous_names":["guyernest/mesop-chat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/guyernest/mesop-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyernest%2Fmesop-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyernest%2Fmesop-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyernest%2Fmesop-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyernest%2Fmesop-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guyernest","download_url":"https://codeload.github.com/guyernest/mesop-chat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyernest%2Fmesop-chat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33071582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2025-12-26T22:50:26.612Z","updated_at":"2026-05-15T16:01:57.708Z","avatar_url":"https://github.com/guyernest.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Alternative chat interface for Bedrock Agent\n\nThis repository is part of the [Bedrock Agent](https://github.com/guyernest/bedrock-agent) project. It contains the code for the alternative chat interface for the Bedrock Agent, using the [mesop](https://google.github.io/mesop/) library. The chat interface in the main project is built using the [FastAPI](https://fastapi.tiangolo.com/) Python library, [Jinja](https://jinja.palletsprojects.com/), and [HTMX](https://htmx.org/) JavaScript library.\n\nThe chat interface is still in Python as we want to build the Bedrock agent end-to-end in Python, including the CDK code, Lambda functions, and the chat interface. The benefit of using mesop is that it allows us to build a chat interface with the minimal and simplest code possible (less than 100 lines of code in [chat_ui.py](chat_ui.py)).\n\n## CDK Python project\n\nTo manually create a virtualenv on MacOS and Linux:\n\n```shell\npython3 -m venv .venv\n```\n\nAfter the init process completes and the virtualenv is created, you can use the following\nstep to activate your virtualenv.\n\n```shell\nsource .venv/bin/activate\n```\n\nIf you are a Windows platform, you would activate the virtualenv like this:\n\n```shell\n.venv\\Scripts\\activate.bat\n```\n\nOnce the virtualenv is activated, you can install the required dependencies.\n\n```shell\npip install -r requirements.txt\n```\n\nAt this point you can now synthesize the CloudFormation template for this code.\n\n```shell\ncdk synth\n```\n\nTo add additional dependencies, for example other CDK libraries, just add\nthem to your `setup.py` file and rerun the `pip install -r requirements.txt`\ncommand.\n\n## Useful commands\n\n * `cdk ls`          list all stacks in the app\n * `cdk synth`       emits the synthesized CloudFormation template\n * `cdk deploy`      deploy this stack to your default AWS account/region\n * `cdk diff`        compare deployed stack with current state\n * `cdk docs`        open CDK documentation\n\nEnjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguyernest%2Fmesop-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguyernest%2Fmesop-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguyernest%2Fmesop-chat/lists"}