Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,37 @@
.env
cursorrules.md
.cursorrules

# Dependencies
node_modules/
.pnp
.pnp.js

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
.venv/
venv/
ENV/
env/
*.egg-info/
dist/
build/
*.egg

# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
17 changes: 17 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
node_modules
.pnpm-store
dist
build
.next
.nuxt
.cache
coverage
*.min.js
*.min.css
package-lock.json
yarn.lock
pnpm-lock.yaml
.DS_Store
.env
.env.local

10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": false,
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"arrowParens": "always",
"endOfLine": "lf"
}
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ A comprehensive collection of ready-to-use automation templates demonstrating th
## 📁 Available Templates

### TypeScript Templates (`/typescript/`)

- **context** - AI-powered context switching and page analysis
- **CUA** - Computer Use Agent for autonomous web browsing and decision-making
- **formFilling** - Automated form submission and data entry
- **formFilling** - Automated form submission and data entry
- **giftfinder** - AI-powered product discovery and recommendation
- **pickleball** - Court booking automation with user interaction
- **proxies** - Proxy testing and geolocation verification
- **realEstateCheck** - License verification and data extraction

### Python Templates (`/python/`)

- **context** - AI-powered context switching and page analysis
- **CUA** - Computer Use Agent for autonomous web browsing and decision-making
- **formFilling** - Automated form submission and data entry
Expand All @@ -30,6 +32,7 @@ A comprehensive collection of ready-to-use automation templates demonstrating th
- **realEstateCheck** - License verification and data extraction

> **📖 Each template includes a comprehensive README with:**
>
> - Detailed setup instructions
> - Required environment variables
> - Use cases and examples
Expand All @@ -48,16 +51,19 @@ A comprehensive collection of ready-to-use automation templates demonstrating th
## 📚 Resources

### Documentation

- **Stagehand Docs**: https://docs.stagehand.dev/v3/first-steps/introduction
- **Browserbase Docs**: https://docs.browserbase.com
- **API Reference**: https://docs.browserbase.com/api

### Support

- **Community**: Join our Discord community
- **Email Support**: [email protected]
- **GitHub Issues**: Report bugs and request features

### Examples & Tutorials

- **Getting Started Guide**: Learn the basics of Stagehand
- **Advanced Patterns**: Complex automation workflows
- **Best Practices**: Tips for reliable automation
Expand All @@ -72,6 +78,7 @@ We welcome contributions! Here's how you can help:
4. **Share Templates**: Create and share your own templates

### Template Guidelines

- Follow the established structure and naming conventions
- Include comprehensive README documentation
- Add proper error handling and logging
Expand Down
30 changes: 30 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import prettierConfig from "eslint-config-prettier";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
prettierConfig,
{
files: ["**/*.{ts,tsx,js,jsx}"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
},
rules: {
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
},
{
ignores: ["node_modules/**", "dist/**", "build/**", "*.config.js"],
},
);

25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "stagehand-templates",
"version": "1.0.0",
"description": "Stagehand + Browserbase Templates",
"private": true,
"type": "module",
"scripts": {
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"",
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"",
"lint": "eslint \"**/*.{ts,tsx,js,jsx}\"",
"lint:fix": "eslint \"**/*.{ts,tsx,js,jsx}\" --fix",
"lint:python": "uvx ruff check python/",
"lint:python:fix": "uvx ruff check --fix python/",
"format:python": "uvx ruff format python/"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.50.1",
"@typescript-eslint/parser": "^8.50.1",
"eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.8",
"prettier": "^3.2.5",
"typescript-eslint": "^8.50.1"
},
"packageManager": "[email protected]"
}
Loading