{"id":20697932,"url":"https://github.com/fly-apps/fly-replay-js","last_synced_at":"2026-03-07T16:34:31.493Z","repository":{"id":248655845,"uuid":"816731643","full_name":"fly-apps/fly-replay-js","owner":"fly-apps","description":"An example VanillaJS app showing off `fly-replay`","archived":false,"fork":false,"pushed_at":"2024-07-16T06:44:38.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-11T02:51:51.049Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/fly-apps.png","metadata":{"files":{"readme":"README.md","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":"2024-06-18T09:48:47.000Z","updated_at":"2024-10-30T00:06:25.000Z","dependencies_parsed_at":"2024-07-16T10:12:09.411Z","dependency_job_id":"c4f5669c-e07c-4b0a-acb5-22646393e997","html_url":"https://github.com/fly-apps/fly-replay-js","commit_stats":null,"previous_names":["fly-apps/fly-replay-js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fly-apps/fly-replay-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Ffly-replay-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Ffly-replay-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Ffly-replay-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Ffly-replay-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fly-apps","download_url":"https://codeload.github.com/fly-apps/fly-replay-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Ffly-replay-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30221511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T14:02:48.375Z","status":"ssl_error","status_checked_at":"2026-03-07T14:02:43.192Z","response_time":53,"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":[],"created_at":"2024-11-17T00:20:46.628Z","updated_at":"2026-03-07T16:34:31.465Z","avatar_url":"https://github.com/fly-apps.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# An example VanillaJS app showing off `fly-replay`\n\n[![Youtube Thumbnail](https://img.youtube.com/vi/riCh9Xeuf0s/0.jpg)](https://www.youtube.com/watch?v=riCh9Xeuf0s)\n\nDynamic Request Routing is a unique Fly.io networking feature that allows re-routing requests to other apps, regions, or machines. To use it, you must put an HTTP `fly-replay` header on a response to the request your app received. Once our proxy receives the response with the `fly-replay` header, it will re-send the request according to the header value - e.g., to another app. It is useful, for example, to implement a multi-region Postgres. `fly-replay` allows for re-routing write requests to the master Postgres node.\n\nHow to install flyctl: https://fly.io/docs/flyctl/install/\n\nDynamic Request Routing: https://fly.io/docs/networking/dynamic-request-routing/\n\nMulti-region databases and `fly-replay`: https://fly.io/docs/blueprints/multi-region-fly-replay/\n\nMulti-tenant apps with single-tenant SQLite databases in global Tigris buckets (relies on the fly-replay): https://fly.io/javascript-journal/single-tenant-sqlite-in-tigris/\n\nReal-Time Collaboration with Replicache and Fly-Replay: https://fly.io/blog/replicache-machines-demo/\n\nFly.io .internal DNS: https://fly.io/docs/networking/private-networking/ \n\n## Steps to run the demo\n\n1. Set up your app names in  `fly.v{1,2}.toml`\n2. Create the apps: `fly apps create js-replay-v{1,2}`.\n3. Deploy the apps: `fly deploy --config fly.v{1,2}.toml` \n\nCheck out the video to learn more.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Ffly-replay-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffly-apps%2Ffly-replay-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Ffly-replay-js/lists"}