Repoburg
Login

Integrations

Repoburg is built to be extensible and can be integrated with various external tools and services through its local HTTP and WebSocket APIs.

Connecting External Tools

The Repoburg backend, managed by the daemon, exposes a local HTTP server for all its core functionalities. Additionally, it runs a WebSocket server that broadcasts events, allowing for real-time communication.

This opens up possibilities for building custom integrations, such as:

  • Browser extensions
  • Editor plugins (e.g., for VS Code, JetBrains IDEs)
  • Custom scripts to automate workflows

Example: AI Studio PowerTools Userscript

A practical example of 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.

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

Features of the Userscript

  • Cmd + \: Automatically copies the latest response from AI Studio and submits it directly to your active Repoburg session. This completely automates the copy-paste part of the "Manual LLM" workflow.

  • Cmd + ': Pastes the content from your clipboard into the AI Studio prompt box, submits it, and scrolls to the bottom, ready for the response. This is useful when Repoburg generates a new prompt and you want to send it to AI Studio.

  • 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, it broadcasts the prompt on the llm-input-generated event. This is used in two key scenarios:

    1. Manual LLM Mode: When you click "Prepare," the full context is sent via WebSocket.
    2. Auto Context Fetch: When this feature is enabled and an AI requests more context, the new, updated prompt is automatically sent.

    The userscript listens for this event and automatically pastes the prompt into AI Studio for you, creating a seamless round-trip experience.

  • Notifications: Provides desktop notifications for key events, like successful submission to Repoburg or connection status changes.

How it Works

The userscript makes HTTP POST requests to http://localhost:3000/llm-responses/submit-external (the port may vary), which is an endpoint on your local repoburg-backend instance designed to accept raw LLM responses from external sources. It also establishes a WebSocket connection to the backend server (e.g., ws://localhost:3000).

This example illustrates how you can connect any tool to your local Repoburg instance to create a seamless and powerful development workflow. You can find the example userscript in the userscripts directory of the Repoburg repository.