Back to projects
AI
WebLens AI
Agentic website intelligence: give it any URL and it investigates the site, builds a hybrid RAG index and answers with citations
Next.js 14FastAPIPythonBM25Vector embeddingsServer-Sent EventsDocker
Overview
WebLens AI is an agent, not a scraper wrapper. An orchestrator picks deterministic tools to crawl, classify and profile a website, then lets you chat with it with grounded citations.
Problem
Most 'AI website' tools scrape one page and summarise it, with no safety against SSRF or prompt injection hidden in page content.
Solution
Controlled autonomy (the LLM chooses tools like search_website, crawl_page and get_profile), SSRF guards with DNS pre-resolution and private-IP blocking, data isolation against injection, and hybrid BM25 plus dense retrieval.
Architecture
- 1Next.js 14 dashboard with a live run stream over SSE
- 2FastAPI backend with an SSRF and DNS pre-resolution guard
- 3Agent orchestrator with deterministic tools
- 4Hybrid retrieval (Okapi BM25 + embeddings) with cited chat
Technical Challenges
- Showing live progress without leaking the model's internal reasoning.
Results
- 21/21 unit and integration tests covering SSRF, crawling, retrieval and the agent loop.