Authorization notice. Vitre is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA Kotlin Multiplatform developer who needs one fact from a third-party page shown inside their app.
The problemReading a page inside a WebView usually means one-off evaluateJavascript calls that race each other and the UI.
The outcomeA workflow that returns a named variable such as a headline and its URL in a Completed event.
What you need first
- Kotlin 2.3.10 Multiplatform project (Android minSdk 24, iOS 15.0+, or desktop with JetBrains Runtime and JCEF 21)
- Maven Central access, which is the only setup needed for the published artifacts
- Compose Multiplatform if you want the optional vitre-compose UI layer
Steps
- Add vitre-core to commonMain dependencies from Maven Central as dev.ggoggam.vitre:vitre-core:0.2.0.
- Declare a workflow with navigate, then waitFor on the element that means the page is ready.
- Add extract steps for the text you need, and use Source.Attribute("href") for link targets.
- Mount a WebView, take its controller, and call WorkflowEngine(controller).run(workflow).collect.
- Read event.variables in the WorkflowEvent.Completed branch.
Prompt for your agent
In the Kotlin project at <project-path>, add dev.ggoggam.vitre:vitre-core:0.2.0 from Maven Central and write a workflow that navigates to <target-url>, waits for <ready-selector>, and extracts <field-selector> into a variable. Expected output: the extracted value printed from WorkflowEvent.Completed. Verify that the Completed event contains a non-empty value for that variable.
Caveat. Vitre targets embedded WebViews on Android, iOS and desktop, and the README states that web is out of scope as a target.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ggoggam/vitre and "Read a value from a page your app does not own"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer