What do you want to do?
4 use cases
-
Fetch a web page as Markdown for an AI agent
Turn any public page into clean Markdown text that an agent can read and reason over.
View prompt
Using the repo lexmount/moli, install the prebuilt Moli binary and run `moli fetch --dump markdown --wait-until done <target-url>`. Output the Markdown of the page. Verify that the main body text of the page appears and is not just a blank shell.
-
Get a compact semantic tree of a page for a model
Export a short structured text outline of a page, sized for model context windows.
View prompt
Using the repo lexmount/moli, run `moli fetch --dump semantic_tree_text --wait-selector body <target-url>`. Return the semantic tree text. Verify that headings and links from the page appear in the output.
-
Capture a screenshot or PDF of a web page
Save a PNG or PDF of a rendered page for review, reports, or visual checks.
View prompt
Using the repo lexmount/moli, run `moli fetch --layout --dump screenshot <target-url> > page.png`. Save the PNG and report its file size. Verify that the file opens as an image showing the page.
-
Drive Moli from Playwright over CDP
Run a local Moli server and control it from an existing Playwright script.
View prompt
Using the repo lexmount/moli, start the server with `moli serve` and connect Playwright to http://127.0.0.1:9222 with connectOverCDP. Navigate to <target-url> and print the body innerText. Verify that the printed text matches the visible text of the page.
How to use Moli
- Check you have what it needs: A computer running Linux, macOS, or Windows; Terminal access (PowerShell on Windows); Permission to download and run the Moli installer from GitHub.
- Open lexmount/moli on GitHub and read the README and license.
- Install the Moli binary with
curl --proto '=https' --tlsv1.2 -fsSL https://github.com/lexmount/moli/releases/latest/download/moli-installer.sh | shon Linux or macOS, or run the PowerShell installer from the README on Windows. (inferred, check the README) - Run
moli fetch --dump markdown --wait-until done https://example.comto render the page as Markdown. (inferred, check the README) - Replace the example URL with your target and redirect output to a file if your agent reads from disk.
These steps come from our top use case, Fetch a web page as Markdown for an AI agent, which also has a copy-paste agent prompt.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forBuilt for developers and AI agent builders who need page content or browser automation without running a full Chromium install.
- Why it is hot
- LanguageRust
- Sourcegithub.com/lexmount/moli · Back to Hot repos
Requirements
- A computer running Linux, macOS, or Windows
- Terminal access (PowerShell on Windows)
- Permission to download and run the Moli installer from GitHub
- A URL to fetch or test
Maintain Moli? Add the Featured on Deduped badge
Paste this into your README:
[](https://dedupedai.com/use-cases/lexmount-moli/?ref=badge)
Questions about Moli
What is Moli?
Moli is an open-source headless browser written in Rust that AI agents use to fetch pages, extract content, and automate browser tasks. It is an open-source project on GitHub: https://github.com/lexmount/moli.
Who is Moli for?
Built for developers and AI agent builders who need page content or browser automation without running a full Chromium install.
What can I do with Moli?
4 use cases so far, for example: Fetch a web page as Markdown for an AI agent; Get a compact semantic tree of a page for a model; Capture a screenshot or PDF of a web page. Each has steps and a copy-paste agent prompt.
What do I need to run Moli?
A computer running Linux, macOS, or Windows; Terminal access (PowerShell on Windows); Permission to download and run the Moli installer from GitHub; A URL to fetch or test.
What are alternatives to Moli?
Other hot AI repos in Research: Scientific Agent Skills, Speaker Mem R1, DSH Council, Evo Bot, AI Engineering Course.
Is Moli safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.