Skip to content

sid-vj/thenavigationlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@thias/navigation

A navigation layer designed to turn any website into a chat-first interface. This package provides robust abstractions for observing route changes, executing navigation steps safely, maintaining a product graph, and taking page snapshots for AI agents.

Features

  • RouteObserver: Safely monitor pushState/replaceState and popstate events.
  • SafetyLayer: Validate URLs and actions before execution.
  • GraphManager: Maintain and query a graph of known application states.
  • NavigationExecutor: Perform safe navigation operations and interact with the DOM.
  • LinkCrawler: Find and extract interactable elements on the page.

Installation

npm install @thias/navigation

Usage

import { NavigationExecutor, GraphManager, RouteObserver } from '@thias/navigation';

// Initialization example
const graphManager = new GraphManager();
// ...

License

MIT

About

Turn any website into a chat-first interface. This TypeScript navigation layer maps routes and states, extracts context from interactable elements, validates AI actions before they reach the DOM, and stays synced with browser navigation. Lightweight and secure

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors