{"id":41190194,"url":"https://github.com/zk1tty/wf-backend","last_synced_at":"2026-01-22T20:22:33.277Z","repository":{"id":298928978,"uuid":"1001556346","full_name":"zk1tty/wf-backend","owner":"zk1tty","description":"FastAPI backend server for Rebrowse workflows","archived":false,"fork":false,"pushed_at":"2025-11-13T02:08:02.000Z","size":936,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-13T04:08:09.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zk1tty.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-13T15:27:49.000Z","updated_at":"2025-11-13T02:08:06.000Z","dependencies_parsed_at":"2025-06-13T17:36:17.775Z","dependency_job_id":"7d748e73-0a10-4696-bc1b-bc910b8931ba","html_url":"https://github.com/zk1tty/wf-backend","commit_stats":null,"previous_names":["zk1tty/wf-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zk1tty/wf-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk1tty%2Fwf-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk1tty%2Fwf-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk1tty%2Fwf-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk1tty%2Fwf-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zk1tty","download_url":"https://codeload.github.com/zk1tty/wf-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk1tty%2Fwf-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28670371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T19:36:09.361Z","status":"ssl_error","status_checked_at":"2026-01-22T19:36:05.567Z","response_time":144,"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":"2026-01-22T20:22:33.200Z","updated_at":"2026-01-22T20:22:33.267Z","avatar_url":"https://github.com/zk1tty.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rebrowse Workflow — FastAPI service\n\n- ENV: `dev` or `prod`\n- venv installation\n    ```\n    # Init venv\n    uv venv --python 3.11\n    source .venv/bin/activate\n\n    # Manage Python packages with a pip-compatible interface\n    uv pip install -r requirements.txt\n\n    # Run uvicorn\n    ENV=dev uvicorn backend.api:app --reload\n    ```\n\n\nIf you get issue like `ModuleNotFoundError: No module named 'supabase`?\n\n- instalation help command\n    ```\n    # Check which Python is being used\n    which python\n\n    # Check Python version\n    python --version\n\n    # Check installed packages (in uv environment)\n    uv pip list\n\n    # Check specific package\n    uv pip list | grep supabase\n    ```\n\nThis is the python package for Workflow Use. It is used to create and execute workflows.\n\nCurrently only used to reserve the pypi package name.\n\n## Test command\n\n```bash\nuv run pytest -q test/test_cookies_api.py #single test file\n```\n\n## Public API endopint\n\n📊 API | Endpoints | Available\n--|--|--\nMethod | Endpoint | Description\nPOST |\t/workflows/{id}/execute/session\t| Execute workflow with session auth\nGET\t| /workflows/tasks/{task_id}/status\t| Check execution status\nPOST |\t/workflows/tasks/{task_id}/cancel\t| Cancel workflow execution\nGET\t| /workflows/logs/{task_id}\t| Get execution logs\nGET\t| /health\tHealth check for | monitoring\n\n## Auth ENdpoint\n\n📊 | Authentication | API\n--|--|--\nMethod | Endpoint | Description\nGET | /auth/validate | Validate session token\n\n\n## Browser instance \n\nEnvironment\t| Browser Type\t| GUI | Use Case | Triggered When\n--|--|--|--|--\nLocal Development | Standard Browser | ✅ Yes | Development, Testing | RAILWAY_ENVIRONMENT not set\nRailway Production | Headless Chromium | ❌ No | Production, Automation | RAILWAY_ENVIRONMENT=production\nRender Production | Headless Chromium | ❌ No | Production, Automation | RENDER=true\nManual Production | Headless Chromium | ❌ No | Testing Production Config | Set env var manually\n\n### 🖥️ Local Browser (Development Mode)\n\n- 🖼️ GUI Enabled: Opens visible browser windows\n- 🎯 Full Features: All browser features available\n- 🔧 Easy Debugging: Can see what's happening visually\n- 💻 Local Chromium: Uses your system's installed browser\n\n```bash\n# Local development\npython -m uvicorn backend.api:app --reload\n\n# Local testing\npython test_browser_local.py\n\n# CLI usage\npython cli.py run-workflow workflow.json\n```\n\n### ☁️ Remote Headless Browser (Production Mode)\n\nCharacteristics:\n- 🚫 No GUI: Runs completely headless\n- ⚡ Optimized: Memory and CPU efficient\n- 🔒 Container-Safe: Works in Docker/Railway containers\n- 🎯 Production-Ready: Stable for server environments\n\n\nWhen Triggered:\n- ✅ Deployed on Railway (sets RAILWAY_ENVIRONMENT=production)\n- ✅ Deployed on Render (sets RENDER=true)\n- ✅ Any environment with these variables set\n\nConfig\n```python\nprofile = BrowserProfile(\n    headless=True,  # No GUI\n    disable_security=True,\n    args=[\n        '--no-sandbox',\n        '--disable-dev-shm-usage',\n        '--disable-gpu',\n        '--single-process',\n        # ... many optimization flags\n    ]\n)\nreturn Browser(browser_profile=profile)\n```\n\n\n## Conversion test\n```\ncurl -X POST \"http://localhost:8000/workflows/build-from-recording\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"recording\": {\"name\":\"Test\",\"description\":\"Test\",\"version\":\"1.0\",\"steps\":[{\"type\":\"navigation\",\"url\":\"https://amazon.com\",\"timestamp\":1650000000000}],\"input_schema\":[]},\n    \"goal\": \"Shop for products on Amazon\",\n    \"name\": null\n  }'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzk1tty%2Fwf-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzk1tty%2Fwf-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzk1tty%2Fwf-backend/lists"}