aicoolies logo
Midscene.js logo
Midscene.js logo

Midscene.js

AI-powered vision-driven UI automation for web, Android, and iOS

open sourceupdated Apr 21, 2026

Midscene.js is an open-source UI automation framework from ByteDance's Web Infra team that uses vision-based AI models to understand and interact with interfaces. It replaces fragile CSS selectors with natural language descriptions, supporting web browsers via Playwright and Puppeteer, Android via ADB, and iOS via WebDriverAgent from a unified JavaScript SDK.

Midscene.js introduces a paradigm shift in UI automation by replacing traditional DOM selector approaches with vision-based AI understanding. Instead of writing brittle selectors like clicking on a specific CSS class, you describe interactions in natural language such as click the login button and the AI model visually locates and interacts with the correct element. This approach survives UI redesigns that would break conventional selectors, dramatically reducing test maintenance overhead.

The framework supports multiple platforms from a single JavaScript SDK. Web automation works through Playwright or Puppeteer integration, Android automation connects via ADB, and iOS automation uses WebDriverAgent. A Chrome Extension provides immediate in-browser experimentation without any code setup. The MCP server integration exposes Midscene actions as tools for AI agents, enabling higher-level automation orchestration through natural language.

Built by ByteDance's Web Infra team and released under the MIT license with over 8,000 GitHub stars, Midscene.js supports multiple AI backends including GPT-4o, Claude, Gemini, Qwen-VL, and ByteDance's open-source UI-TARS model for self-hosted deployments. The caching system records AI planning results so repeated test runs execute at near-native automation speeds. Production users report testing costs as low as two dollars per day.

Pricing

Free and open-source (MIT); AI model API costs vary by provider

Platforms

JavaScript/TypeScript, npm, Playwright/Puppeteer, Android, iOS

Categories

Tags

Use Cases

Browser Use logo

Browser Use

AI agent framework for web browser automation

Browser Use is an open-source AI agent framework with 99K+ GitHub stars enabling LLMs to control web browsers via natural language. Y Combinator-backed, it lets agents navigate sites, fill forms, extract data, and complete multi-step tasks autonomously. Built on Playwright with vision-based element detection, multi-tab management, cookie persistence, and self-correcting actions. Supports OpenAI, Anthropic, and local models with a simple Python API for building custom browser agents.

Open Source
Stagehand logo

Stagehand

AI-powered web browser automation with Playwright

Stagehand is an open-source browser-agent SDK from Browserbase that combines deterministic browser automation with AI primitives such as act(), extract(), observe(), and agent(). Instead of relying only on brittle selectors, developers can use natural-language actions, Zod-backed structured extraction, page observation, action caching, and Browserbase cloud-browser infrastructure for production web automation.

Open Source
Playwright logo

Playwright

Reliable end-to-end testing

Cross-browser E2E testing framework by Microsoft supporting Chromium, Firefox, and WebKit with one API. Features auto-waiting, tracing with timeline/screenshots/DOM snapshots, codegen for recording tests, and parallel execution. Component testing for React, Vue, Svelte. Built-in API testing, network mocking, and mobile emulation. Known for reliability and speed vs Selenium/Cypress. 70K+ GitHub stars, rapidly becoming the E2E standard.

Open Source

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

MCPJam logo

MCPJam Inspector

Test and debug MCP servers before they ship

Open-source platform for inspecting, debugging and regression-testing MCP servers, MCP Apps and ChatGPT apps, with OAuth and protocol conformance for local and CI workflows.

freemiumOpen SourceTelemetry
React Scan logo

React Scan

Automatically detect and fix slow React re-renders

Open-source tool that highlights unnecessary and slow React re-renders directly in your app — as a browser extension, CLI, or drop-in package, with no code changes required.

Open Source
MCP for Unity logo

MCP for Unity

Open-source MCP bridge between AI assistants and the Unity Editor

MCP for Unity is CoplayDev’s MIT-licensed bridge between MCP-compatible AI assistants and the Unity Editor. It exposes tools for assets, scenes, GameObjects, scripts, tests, profiling, and build-oriented workflows. The community project supports Unity 2021.3 LTS through 6.x and is explicitly not affiliated with Unity Technologies.

Open Source
XcodeBuildMCP logo

XcodeBuildMCP

Sentry-maintained MCP server and CLI for Xcode builds, simulators, and tests

XcodeBuildMCP is a Sentry-maintained, MIT-licensed MCP server and CLI for agent-assisted iOS and macOS development. It lets MCP-compatible coding agents run Xcode build and test workflows, manage simulators, inspect failures, and work through Homebrew, npm, or on-demand client configuration, with documented Sentry telemetry controls for teams that need an opt-out.

Open SourceTelemetry
iFixAi logo

iFixAi

Open-source diagnostic for AI operational misalignment

iFixAi is an Apache-2.0 diagnostic tool for scoring AI agents and models against operational-misalignment risks such as hallucination, manipulation, sabotage, sandbagging, and oversight evasion.

Open Source
Inspect AI parent UK AISI mark

Inspect AI

UK AI Security Institute framework for LLM safety evaluations

Inspect AI is an MIT-licensed framework from the UK AI Security Institute for running large language model evaluations, including tool use, multi-turn dialogue, model-graded scoring, and reusable evaluation tasks.

Open Source

Comparisons

FAQ

What is Midscene.js?

Midscene.js is an open-source UI automation framework from ByteDance's Web Infra team that uses vision-based AI models to understand and interact with interfaces. It replaces fragile CSS selectors with natural language descriptions, supporting web browsers via Playwright and Puppeteer, Android via ADB, and iOS via WebDriverAgent from a unified JavaScript SDK.

Is Midscene.js free?

Yes — Midscene.js is open source and free to use. Free and open-source (MIT); AI model API costs vary by provider

Is Midscene.js open source?

Yes — Midscene.js is open source.

What are the best Midscene.js alternatives?

The top editor-verified Midscene.js alternatives are Browser Use, Stagehand, Playwright.