Skip to content
Agentside
Esc
↑↓navigate↵open⌘Jpreview
On this page

Framework guides

Mount Agentside in any framework that hands you a fetch Request and lets you return a Response.

Agentside needs two things from a framework: the incoming Request and a way to render the regular page as a Response. Every integration is a variation of the same line.

const response = await twins.handle(request, () => renderPage(request));

Keep the agentside() call in its own module so the routes, cache and variants are created once per process.

Was this page helpful?