Repoburg
Login

Integrations

Repoburg is built to be extensible and can be integrated with various external tools. There are three primary methods for integration:

  1. The Visual Editor: A powerful, in-context way to make changes to your frontend application by selecting components directly from your UI. For details, see the Visual Editor documentation.
  2. Direct API/WebSocket Integration: This is suitable for simpler, often one-way, integrations where an external tool pushes data into Repoburg.
  3. Model Context Protocol (MCP): A more advanced, bidirectional protocol that allows the AI to discover and execute functions on external tool servers. For details, see the MCP Integrations documentation.

This page focuses on the direct integration method, using the AI Studio PowerTools userscript as an example.

Example: AI Studio PowerTools Userscript

A practical example of deep integration is the AI Studio PowerTools userscript. While not an official part of the Repoburg project, it serves as an excellent demonstration of what's possible by connecting to Repoburg's local APIs.

The userscript runs in your browser on Google's AI Studio pages and provides powerful features to bridge the gap between AI Studio and your local Repoburg instance.

Core Feature: Automatic Conversation Sync

The userscript's primary feature is its ability to automatically keep your local Repoburg session perfectly in sync with your conversation in AI Studio.

  • Network Interception: Instead of relying on clipboard events, the script now uses a more robust network interceptor. It watches the network requests that the AI Studio web app makes to its own backend.
  • Full Conversation Sync: When it detects a change (like a new user prompt or a generated AI response), it intelligently parses the entire conversation structure from the network data. This complete, structured data is then sent to a new endpoint on your local Repoburg backend (/llm-responses/sync-conversation).
  • Seamless Workflow: Your local session now becomes a mirror of your AI Studio chat. The backend processes the latest AI response from the synced data to generate a plan, making the "Manual LLM" workflow almost entirely hands-free. This feature can be toggled via the "Enable Network Interceptor" option in the userscript's settings menu.

Other Features of the Userscript

  • WebSocket Connection: The userscript connects to the Repoburg backend's WebSocket server. When Repoburg generates a prompt that needs to be sent to an LLM (e.g., during a request_context loop), it broadcasts this prompt. The userscript listens for this event and automatically pastes the prompt into AI Studio for you, creating a seamless round-trip experience.
  • Manual Hotkeys: For situations where you might disable the network interceptor or need manual control:
    • Cmd + \: A manual fallback to automatically copy the latest response from AI Studio and submit it to your active Repoburg session.
    • Cmd + ': Pastes the content from your clipboard into the AI Studio prompt box, submits it, and scrolls to the bottom, ready for the response.
  • Notifications: Provides desktop notifications for key events, like successful submission to Repoburg or connection status changes.

This powerful integration transforms an external tool like AI Studio into a natural extension of the Repoburg ecosystem, automating data transfer and letting you focus on the development task. The userscript can be installed from the Integrations page in the Repoburg application.