For BLAST contributors
# Create virtual environment python -m venv blast-venv source blast-venv/bin/activate # Linux/macOS # or blast-venv\Scripts\activate # Windows
# Install browser dependencies python -m playwright install chromium
git clone https://github.com/stanford-mast/blast.git cd blast
# Install Python dependencies pip install -e ".[dev]" # Install frontend dependencies cd blastai/frontend npm install
blastai serve
# dev_config.yaml settings: persist_cache: false # Disable cache persistence on disk (also use "no-cache" to disable in memory) blastai_log_level: "debug" browser_use_log_level: "debug" constraints: max_concurrent_browsers: 2 allow_parallelism: task: true data: true
# Run all tests (probably don't since our test suite needs to be distilled a bit) pytest # Run specific test file pytest tests/test_engine.py # Run with coverage pytest --cov=blastai
settings: persist_cache: false blastai_log_level: "debug" browser_use_log_level: "debug"
# Enable browser debugging constraints = Constraints(require_headless=False)