Skip to content

togo-framework/ai-playwright

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

togo

togo-framework/ai-playwright

marketplace pkg.go.dev MIT

Part of the togo framework.

Install

togo install togo-framework/ai-playwright

ai-playwright

A togo AI data-source plugin — render JS-heavy pages with a headless Chromium (Playwright) and return text/HTML, so ai-rag ingest and agents can read client-rendered sites.

togo install togo-framework/ai-playwright

Install the browser once at runtime: go run github.com/playwright-community/playwright-go/cmd/playwright install chromium.

Use

  • Go: aiplaywright.FromKernel(k).Render(ctx, "https://example.com")Result{Title,Text,HTML}
  • REST: POST /api/ai/playwright {"url":"…"}

Part of the togo AI kit. MIT.


Premium sponsors

ID8 Media  ·  One Studio

Support togo — become a sponsor.

Packages

 
 
 

Contributors

Languages