ランキングに戻る

magnitudedev/browser-agent

TypeScriptmagnitude.run

Open-source, vision-first browser agent

testtypescriptautomationbrowserframeworkjavasciptaiplaywrightseleniumrpa
スター成長
スター
4.1k
フォーク
232
週間成長
Issue
26
2k3k4k
26年2月26年3月26年5月26年7月
成果物npmnpm install browser-agent
README
Magnitude Text Logo

Documentation License Discord Follow Tom Follow Anders

🚀 New: Magnitude is state-of-the-art, scoring 94% on WebVoyager!

Magnitude uses vision AI to enable you to control your browser with natural language.

  • 🧭 Navigate - Sees and understands any interface to plan out actions
  • 🖱️ Interact - Executes precise actions using mouse and keyboard
  • 🔍 Extract - Intelligently extracts useful structured data
  • Verify - Built-in test runner with powerful visual assertions

You can use it to automate tasks on the web, integrate between apps without APIs, extract data, test your web apps, or as a building block for your own browser agents.

Video showing Magnitude tests running in a terminal and agent taking actions in the browser

↕️ Magnitude in action! ↕️

// Magnitude can handle high-level tasks
await agent.act('Create a task', {
    // Optionally pass data that the agent will use where appropriate
    data: {
        title: 'Use Magnitude',
        description: 'Run "npx create-magnitude-app" and follow the instructions',
    },
});

// It can also handle low-level actions
await agent.act('Drag "Use Magnitude" to the top of the in progress column');

// Intelligently extract data based on the DOM content matching a provided zod schema
const tasks = await agent.extract(
    'List in progress tasks',
    z.array(z.object({
        title: z.string(),
        description: z.string(),
        // Agent can extract existing data or new insights
        difficulty: z.number().describe('Rate the difficulty between 1-5')
    })),
);

Get started

Running your first browser automation

npx create-magnitude-app

This will create a new project and walk you through the steps for setting up Magnitude. It will also create an example script that you can run right away!

Using the test runner

To install the test runner for use in an existing web app, please run:

npm i --save-dev magnitude-test && npx magnitude init

This will create a basic tests directory tests/magnitude with:

  • magnitude.config.ts: Magnitude test configuration file
  • example.mag.ts: An example test file

For information on how to run tests and integrate into CI/CD see here.

[!NOTE] Magnitude requires a large visually grounded model. We recommend Claude Sonnet 4 for the best performance, but are also compatible with Qwen-2.5VL 72B. See docs for more information.

Why Magnitude?

Problem #1: Most browser agents draw numbered boxes around page elements - doesn't generalize well due to complex modern sites

Solution: Vision-first architecture

  • Visually grounded LLM specifies pixel coordinates
  • True generalization independent of DOM structure
  • Future-proof architecture for desktop apps, VMs, etc.

Problem #2: Most browser agents follow "high-level prompt + tools = work until done" - works for demos, not production

Solution: Controllable & repeatable automation

  • Flexible abstraction levels (granular actions vs. flows)
  • Custom actions + prompts at agent and action level
  • Deterministic runs via native caching system (in progress)

Additional info

Please see our docs for more information on how to best build Magnitude automations and test cases.

Contact

If you are an enterprise and want more features or support, feel free to reach out to us at founders@magnitude.run or schedule a call here to discuss your needs.

You can also join our Discord community for help or any suggestions!

関連リポジトリ
microsoft/playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

TypeScriptnpmApache License 2.0playwrighttesting
playwright.dev
93.2k6.1k
typicode/json-server

Get a full fake REST API with zero coding in less than 30 seconds (seriously)

JavaScriptnpmMIT Licenseapifake
75.7k7.3k
bazelbuild/bazel

a fast, scalable, multi-language and extensible build system

JavaMavenApache License 2.0bazelbuild
bazel.build
25.6k4.5k
goldbergyoni/javascript-testing-best-practices

📗🌐 🚢 Comprehensive and exhaustive JavaScript & Node.js testing best practices (August 2025)

JavaScriptnpmMIT Licensenodejstesting
testjavascript.com
24.6k2.1k
mochajs/mocha

☕️ Classic, reliable, trusted test framework for Node.js and the browser

JavaScriptnpmMIT Licensemochajavascript
mochajs.org
22.9k3.1k
enzymejs/enzyme

JavaScript Testing utilities for React

JavaScriptnpmMIT Licenseenzymereact
enzymejs.github.io/enzyme/
19.8k2k
vitest-dev/vitest

Next generation testing framework powered by Vite.

TypeScriptnpmMIT Licensevitetest
vitest.dev
16.9k1.9k
pytest-dev/pytest

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing

PythonPyPIMIT Licenseunit-testingtest
pytest.org
14.4k3.3k
DevExpress/testcafe

A Node.js tool to automate end-to-end web testing.

JavaScriptnpmMIT Licensetestcafeend-to-end-testing
testcafe.io
9.9k680
webdriverio/webdriverio

Next-gen browser and mobile automation test framework for Node.js

TypeScriptnpmMIT Licensejavascriptwebdriverio
webdriver.io
9.8k2.7k
olistic/warriorjs

🏰 An exciting game of programming and Artificial Intelligence

TypeScriptnpmMIT Licensewarriorjswarrior
warriorjs.com
9.5k500
apache/jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services

JavaMavenApache License 2.0javaperformance
jmeter.apache.org
9.5k2.3k