{"id":50968046,"url":"https://github.com/thepushkarp/dalaal-env","last_synced_at":"2026-06-18T22:32:56.966Z","repository":{"id":350053952,"uuid":"1192438233","full_name":"thepushkarp/dalaal-env","owner":"thepushkarp","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-08T16:55:32.000Z","size":345,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-08T18:36:17.209Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/thepushkarp.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},"funding":{"github":"thepushkarp","ko_fi":"thepushkarp","buy_me_a_coffee":"thepushkarp","thanks_dev":"thepushkarp"}},"created_at":"2026-03-26T08:07:14.000Z","updated_at":"2026-04-08T16:55:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thepushkarp/dalaal-env","commit_stats":null,"previous_names":["thepushkarp/dalaal-env"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/thepushkarp/dalaal-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepushkarp%2Fdalaal-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepushkarp%2Fdalaal-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepushkarp%2Fdalaal-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepushkarp%2Fdalaal-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thepushkarp","download_url":"https://codeload.github.com/thepushkarp/dalaal-env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepushkarp%2Fdalaal-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34510286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"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":[],"created_at":"2026-06-18T22:32:54.909Z","updated_at":"2026-06-18T22:32:56.961Z","avatar_url":"https://github.com/thepushkarp.png","language":"HTML","funding_links":["https://github.com/sponsors/thepushkarp","https://ko-fi.com/thepushkarp","https://buymeacoffee.com/thepushkarp","https://thanks.dev/thepushkarp"],"categories":[],"sub_categories":[],"readme":"---\ntitle: Dalaal Env\nemoji: \"\\U0001F310\"\ncolorFrom: blue\ncolorTo: purple\nsdk: docker\napp_port: 7860\n---\n\n# dalaal-env: Browser-Use RL Environment\n\nAn OpenEnv-compatible reinforcement learning environment where agents learn to interact with web pages through an **accessibility tree** interface.\n\nThe agent observes a structured text representation of the page (like a screen reader) and takes discrete actions — click, type, scroll, select — to complete browser tasks.\n\n## Architecture\n\n```\nAgent (LLM) ←→ OpenEnv Client ←→ WebSocket ←→ OpenEnv Server ←→ Playwright (headless Chromium)\n```\n\n## Observation Space\n\nThe agent sees the page as a numbered accessibility tree:\n\n```\n[1] heading \"My Todo List\" level=1\n[2] textbox \"Add a new todo\"\n[3] button \"Add\"\n[4] checkbox \"Complete: Walk the dog\" checked=false\n[5] button \"Delete: Walk the dog\"\n```\n\n## Action Space\n\n| Action | Parameters | Description |\n|--------|-----------|-------------|\n| `click` | `element_id` | Click an element by its tree ID |\n| `type` | `element_id`, `text` | Clear and type text into an input |\n| `select_option` | `element_id`, `text` | Select a dropdown option by label |\n| `press_key` | `key` | Press a keyboard key (Enter, Tab, etc.) |\n| `scroll` | `direction` | Scroll up or down |\n| `go_back` | — | Browser back |\n| `done` | — | Signal task completion |\n\n## Available Tasks\n\n| Task ID | Description | Max Steps |\n|---------|-------------|-----------|\n| `todo_add` | Add \"Buy milk\" to a todo list | 10 |\n| `todo_add_and_complete` | Add \"Buy milk\" and mark complete | 15 |\n| `login` | Log in with credentials | 10 |\n| `search_and_click` | Search and click first result | 10 |\n| `add_to_cart` | Add headphones to cart | 10 |\n| `add_to_cart_and_checkout` | Add to cart and checkout | 15 |\n| `fill_registration` | Fill a multi-field registration form | 15 |\n\n## Reward\n\n- **+1.0** on task success (verified by DOM-based success criteria)\n- **-0.01** per step (encourages efficiency)\n- **0.0** on failure or timeout\n- Final score clamped to [0, 1]\n\n## Quick Start\n\n```bash\n# Install\nuv sync\n\n# Install Playwright browser\nuv run playwright install chromium\n\n# Run server\nuv run uvicorn server.app:app --host 0.0.0.0 --port 8000\n\n# Run inference\nexport HF_TOKEN=your_token\nexport MODEL_NAME=Qwen/Qwen2.5-72B-Instruct\nuv run python inference.py\n```\n\n## Docker\n\n```bash\ncd server \u0026\u0026 docker build -t dalaal-env .\n```\n\n## Validation\n\n```bash\nuv run openenv validate\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepushkarp%2Fdalaal-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthepushkarp%2Fdalaal-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepushkarp%2Fdalaal-env/lists"}