coreason-navigator
coreason-navigator is the "Eyes and Hands" of the CoReason platform for the World Wide Web. It bridges the gap between modern AI agents and legacy web interfaces using State-of-the-Art (SOTA) "Computer Use" techniques.
Features
- Visual Navigation: Agents use a headless browser (Playwright) to "see" and interact with webpages just like a human, bypassing the need for fragile API integrations.
- Vision-Language Model (VLM) Integration: Uses screenshots and Accessibility Trees (AX Tree) to ground LLM intent into precise screen coordinates.
- Robust Orchestration: Handles dynamic content, session persistence, and stealth techniques (e.g., User-Agent rotation) to avoid detection.
- Set-of-Marks (SoM): Overlays numeric tags on interactive elements to improve VLM accuracy.
- Content Extraction: Converts noisy webpages into clean Markdown for LLM consumption.
- Safety First: Includes rate limiting, domain allowlisting, and PII input protection.
Installation
pip install coreason-navigator
Or install from source:
git clone https://github.com/CoReason-AI/coreason_navigator.git
cd coreason_navigator
pip install .
You will also need to install Playwright browsers:
playwright install chromium
Usage
Here is a simple example of how to use the PlaywrightNavigator:
import asyncio
from coreason_navigator.driver import PlaywrightNavigator
from coreason_navigator.types import GotoAction, ClickAction
async def main():
# Initialize the navigator (headless by default)
navigator = PlaywrightNavigator(headless=True)
try:
# Launch the browser
await navigator.launch()
# Navigate to a URL
print("Navigating to example.com...")
state = await navigator.navigate("https://example.com")
print(f"Title: {state.title}")
# Take a screenshot (base64 encoded)
# print(state.screenshot_base64[:50] + "...")
# Extract content
content = await navigator.extract_content(format="markdown")
print("Page Content Summary:")
print(content[:200])
finally:
# Always close resources
await navigator.close()
if __name__ == "__main__":
asyncio.run(main())
Architecture
- Observe: Captures screenshot and Accessibility Tree.
- Orient: Maps user intent to screen coordinates using VLM.
- Decide: Formulates browser actions (Click, Type, Scroll).
- Act: Executes actions via Playwright.
License
This software is proprietary and dual-licensed. Licensed under the Prosperity Public License 3.0. Commercial use beyond a 30-day trial requires a separate license.
Metadata
Release files for coreason-navigator 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| coreason_navigator-0.2.1.tar.gz | 21.3 kB | With provenance | Details for coreason_navigator-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| coreason_navigator-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for coreason_navigator-0.2.1-py3-none-any.whl |
Total release size: 50.4 kB
Security for coreason-navigator 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.