{"id":20697987,"url":"https://github.com/fly-apps/replicache-websocket","last_synced_at":"2026-03-04T21:35:19.038Z","repository":{"id":104277861,"uuid":"551225985","full_name":"fly-apps/replicache-websocket","owner":"fly-apps","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-23T23:24:30.000Z","size":315,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-10-28T23:11:11.171Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/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,"zenodo":null}},"created_at":"2022-10-14T03:08:49.000Z","updated_at":"2024-06-02T20:10:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"9105218a-1ecc-4e30-b6ec-53dab631c424","html_url":"https://github.com/fly-apps/replicache-websocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fly-apps/replicache-websocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Freplicache-websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Freplicache-websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Freplicache-websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Freplicache-websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fly-apps","download_url":"https://codeload.github.com/fly-apps/replicache-websocket/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fly-apps%2Freplicache-websocket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30094037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T20:42:30.420Z","status":"ssl_error","status_checked_at":"2026-03-04T20:42:30.057Z","response_time":59,"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":"2024-11-17T00:21:24.902Z","updated_at":"2026-03-04T21:35:19.031Z","avatar_url":"https://github.com/fly-apps.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setup\n## Create your fly apps\n```shell\n# Create an app for the frontend\n$ flyctl apps create my-example-frontend-app\n$ flyctl ips allocate-v4 -a my-example-frontend-app\n$ flyctl ips allocate-v6 -a my-example-frontend-app\n\n# Create an app for the proxy\n$ flyctl apps create my-example-proxy-app\n$ flyctl ips allocate-v4 -a my-example-proxy-app\n$ flyctl ips allocate-v6 -a my-example-proxy-app\n\n# Create an app for the backend\n$ flyctl apps create my-example-backend-app\n$ flyctl ips allocate-v4 -a my-example-backend-app\n$ flyctl ips allocate-v6 -a my-example-backend-app\n```\n## Set secrets\n```shell\n# Get your fly token\n$ flyctl auth token\n$ flyctl secrets set -a my-example-proxy-app FLY_API_TOKEN=yourtoken BACKEND_APP_NAME=my-example-backend-app\n```\n## Edit files\nEdit `./client/react/src/index.tsx:15` and replace `replicache-proxy.fly.dev` with your proxy app name.\n## Build the docker images\n```shell\n$ docker buildx build --platform linux/amd64 --push -t registry.fly.io/my-example-frontend-app:latest -f Dockerfile.frontend .\n$ docker buildx build --platform linux/amd64 --push -t registry.fly.io/my-example-proxy-app:latest -f Dockerfile.proxy.\n$ docker buildx build --platform linux/amd64 --push -t registry.fly.io/my-example-backend-app:latest -f Dockerfile.backend.\n```\n## Run your machines\n```shell\n# Create a few backend machines\n$ flyctl m run -a my-example-backend-app -n backend-1 --memory 512 --cpus 2 -p 443:8080/tcp:http:tls registry.fly.io/my-example-backend-app:latest\n$ flyctl m run -a my-example-backend-app -n backend-2 --memory 512 --cpus 2 -p 443:8080/tcp:http:tls registry.fly.io/my-example-backend-app:latest\n$ flyctl m run -a my-example-backend-app -n backend-3 --memory 512 --cpus 2 -p 443:8080/tcp:http:tls registry.fly.io/my-example-backend-app:latest\n\n# Create your proxy machine\n$ flyctl m run -a my-example-proxy-app --memory 512 --cpus 2 registry.fly.io/my-example-proxy-app:latest \n\n# Create your frontend\n$ flyctl m run -a my-example-frontend-app -n frontend-1 -p 443:80/tcp:http:tls registry.fly.io/my-example-frontend-app:latest  \n```\n\n## Check it out\nCheck it all out at `my-example-frontend-app.fly.dev`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Freplicache-websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffly-apps%2Freplicache-websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffly-apps%2Freplicache-websocket/lists"}