Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Merge branch 'main' into #1174

Anurag Chatap6fc5f109313f
diff --cc .github/workflows/publish.yml
index c250c3e38,f8c05d62e..2e63ec08c
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@@ -1,60 -1,28 +1,60 @@@
-# This workflow will upload a Python Package using Twine when a release is created
-# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
-
-# This workflow uses actions that are not certified by GitHub.
-# They are provided by a third-party and are governed by
-# separate terms of service, privacy policy, and support
-# documentation.
-
-name: Upload Python Package
+name: Python Package Workflow
on:
+ push:
+ branches:
+ - main
release:
types: [published]
+ schedule:
+ - cron: "0 17 * * FRI" # Every Friday at 5 PM UTC
permissions:
- contents: read
+ contents: write
jobs:
- deploy:
+ pre_commit_and_tests:
+ if: github.event_name == 'push' && github.ref_name == 'main'
runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up Python
+ uses: actions/setup-python@v3
+ with:
+ python-version: "3.x"
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install pre-commit pytest
+ - name: Run pre-commit hooks
+ run: pre-commit run --all-files
+ - name: Run tests
+ run: pytest
+
+ tag_pre_release:
+ if: github.event_name == 'schedule'
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: Create pre-release tag
+ run: |
+ git fetch --tags
+ latest_tag=$(git tag --list --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+rc[0-9]+$' | head -n 1)
+ if [ -z "$latest_tag" ]; then
+ new_tag="v0.1.0rc1"
+ else
+ new_tag=$(echo $latest_tag | awk -F'rc' '{print $1 "rc" $2+1}')
+ fi
+ git tag $new_tag
+ git push origin $new_tag
+ deploy:
+ if: github.event_name == 'release'
+ runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Set up Python
- uses: actions/setup-python@v3
+ uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
diff --cc README.md
index 4311724fc,4a1f836d6..0a30227f2
--- a/README.md
+++ b/README.md
@@@ -112,25 -160,39 +160,57 @@@ We love contributions! Feel free to ope
To learn more about the library, check out the [local setup 📕](https://docs.browser-use.com/development/local-setup).
-
+# Browser Use
+
+## Branching and Tagging Strategy
+
+### Branches
+- **`stable`**: Reflects the latest stable release. Updated only when a new stable release is published.
+- **`main`**: The primary development branch. Updated frequently with the latest changes.
+
+### Tags
+- **`x.x.x`**: Stable release tags, created for production-ready releases.
+- **`x.x.xrcXX`**: Pre-release tags, created for testing and unstable releases.
+
+### Workflow
+- **Push to `main`**: Runs pre-commit hooks and tests.
+- **Stable Releases**: Published to PyPI and updates the `stable` branch.
+- **Pre-Releases**: Published to PyPI as pre-releases every Friday at 5 PM UTC.
+---
+
+ ## Cooperations
+
+ We are forming a commission to define best practices for UI/UX design for browser agents.
+ Together, we're exploring how software redesign improves the performance of AI agents and gives these companies a competitive advantage by designing their existing software to be at the forefront of the agent age.
+
+ Email [Toby](mailto:[email protected]?subject=I%20want%20to%20join%20the%20UI/UX%20commission%20for%20AI%20agents&body=Hi%20Toby%2C%0A%0AI%20found%20you%20in%20the%20browser-use%20GitHub%20README.%0A%0A) to apply for a seat on the committee.
+
+ ## Swag
+
+ Want to show off your Browser-use swag? Check out our [Merch store](https://browsermerch.com). Good contributors will receive swag for free 👀.
+
+ ## Citation
+
+ If you use Browser Use in your research or project, please cite:
+
+ ```bibtex
+ @software{browser_use2024,
+ author = {Müller, Magnus and Žunič, Gregor},
+ title = {Browser Use: Enable AI to control your browser},
+ year = {2024},
+ publisher = {GitHub},
+ url = {https://github.com/browser-use/browser-use}
+ }
+ ```
+
+ <div align="center"> <img src="https://github.com/user-attachments/assets/06fa3078-8461-4560-b434-445510c1766f" width="400"/>
+
+
+ [![Twitter Follow](https://img.shields.io/twitter/follow/Gregor?style=social)](https://x.com/gregpr07)
+ [![Twitter Follow](https://img.shields.io/twitter/follow/Magnus?style=social)](https://x.com/mamagnus00)
+
+ </div>
+
<div align="center">
- Made with ❤️ in Zurich and San Francisco
- </div>
+ Made with ❤️ in Zurich and San Francisco
+ </div>