midscene icon indicating copy to clipboard operation
midscene copied to clipboard

[Feature] Use midscene in other environment

Open ducan-ne opened this issue 1 year ago • 5 comments

Currently it seems like midscene depend heavily on nodejs apis (I guess it's about cache), it'd be awesome to bring nodejs uses to an adapter so we can use this library in different environments (for example cloudflare worker, browser, deno deploy) Technically pptr or playwright can work in browser: https://pptr.dev/guides/running-puppeteer-in-extensions

ducan-ne avatar Aug 09 '24 05:08 ducan-ne

cloudflare worker should not be able to implement libraries such as puppeteer or playwirght, so it will not be able to drive the browser and the midscene capabilities will not be available

zhoushaw avatar Aug 09 '24 23:08 zhoushaw

@zhoushaw cloudflare worker supports puppeteer about 1 year ago and they have plan to support playwright soon https://github.com/cloudflare/puppeteer

for reference: https://developers.cloudflare.com/browser-rendering/

ducan-ne avatar Aug 11 '24 04:08 ducan-ne

@ducan-ne browser extention is on my wishlist

SunPeter avatar Aug 22 '24 07:08 SunPeter

@yuyutaotao I just noticed that Midscene now has a Chrome Extension. Does this mean we might be able to resolve this issue? It would also be awesome to enable custom caching, as in the browser environment we can leverage IndexedDB to cache AI output.

ducan-ne avatar Jan 08 '25 18:01 ducan-ne

Related: #967

quanru avatar Aug 02 '25 10:08 quanru