browser-use-nodejs
v0.0.1
Published
A package that allows using Node.js modules in the browser
Downloads
13
Readme
Browser Use NodeJS 🤖
🌐 Browser Use NodeJS is the Node.js version of browser-use, providing an easy way to connect your AI agents with the browser using Node.js.
Quick Start
Install the package:
npm install browser-use-nodejsBasic usage example:
const { Agent } = require('browser-use-nodejs');
async function main() {
const agent = new Agent({
task: "Compare the price of GPT-4 and Claude",
llm: "gpt-4" // or any other supported LLM
});
await agent.run();
}
main().catch(console.error);Features
- Node.js native implementation of browser-use
- Full browser automation capabilities
- Support for multiple LLM providers
- Easy-to-use API
- TypeScript support
Configuration
Add your API keys to your environment variables:
OPENAI_API_KEY=your_key_here
ANTHROPIC_API_KEY=your_key_here
# Add other API keys as neededExamples
Task: Add items to cart and checkout
const agent = new Agent({
task: "Add milk and bread to my cart on example.com and proceed to checkout",
llm: "gpt-4"
});Task: LinkedIn to CRM Integration
const agent = new Agent({
task: "Add my latest LinkedIn follower to my CRM system",
llm: "claude"
});Vision
Tell your computer what to do, and it gets it done - now in Node.js!
Roadmap
- Improve agent memory and context handling
- Enhance DOM extraction capabilities
- Add support for more LLM providers
- Improve error handling and recovery
- Add TypeScript definitions
- Create comprehensive documentation
Contributing
We welcome contributions! Feel free to open issues for bugs or feature requests.
License
MIT
Author
luka2chat [email protected]
Made with ❤️ using Node.js
